Class ForkedJvmInfo
java.lang.Object
com.carrotsearch.ant.tasks.junit4.ForkedJvmInfo
Static slave information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BootstrapEventBootstrap event.(package private) longTimestamps for diagnostics.(package private) ThrowableExecution error if anything bad happened on the slave.final intUnique sequential slave identifier.(package private) StringComplete slave command line invocation string.final intThe number of executed slaves, total.(package private) longTimestamps for diagnostics.Execute these test suites on this slave. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecodeStreams(List<IEvent> events, Writer sysout, Writer syserr) Filter through events looking for sysouts and syserrs and decode them into a character streams.Return theCharsetused to encode stream bytes from the slave.Command line string used to invoke the slave.(package private) longSlave execution time.JVM name (slave).PID string of the forked JVM.System properties on the slave.void(package private) voidSet the bootstrap event associated with this slave.
-
Field Details
-
id
public final int idUnique sequential slave identifier. -
slaves
public final int slavesThe number of executed slaves, total. -
bootstrapEvent
Bootstrap event. -
start
long startTimestamps for diagnostics. -
end
long endTimestamps for diagnostics. -
testSuites
-
slaveCommandLine
String slaveCommandLineComplete slave command line invocation string. -
executionError
Throwable executionErrorExecution error if anything bad happened on the slave.
-
-
Constructor Details
-
ForkedJvmInfo
public ForkedJvmInfo(int id, int slaves)
-
-
Method Details
-
getCharset
-
getSystemProperties
-
getPidString
PID string of the forked JVM. May not be available or may come in an unknown format (Java 8 will have real PID support, supposedly). -
getCommandLine
Command line string used to invoke the slave. -
getJvmName
JVM name (slave). -
getExecutionTime
long getExecutionTime()Slave execution time. -
setBootstrapEvent
Set the bootstrap event associated with this slave. -
decodeStreams
Filter through events looking for sysouts and syserrs and decode them into a character streams. If bothWriterarguments are the same object the streams will be combined.- Throws:
IOException
-
serialize
- Throws:
IOException
-