Class ForkedJvmInfo
java.lang.Object
com.carrotsearch.ant.tasks.junit4.ForkedJvmInfo
Static slave information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BootstrapEvent
Bootstrap event.(package private) long
Timestamps for diagnostics.(package private) Throwable
Execution error if anything bad happened on the slave.final int
Unique sequential slave identifier.(package private) String
Complete slave command line invocation string.final int
The number of executed slaves, total.(package private) long
Timestamps for diagnostics.Execute these test suites on this slave. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decodeStreams
(List<IEvent> events, Writer sysout, Writer syserr) Filter through events looking for sysouts and syserrs and decode them into a character streams.Return theCharset
used to encode stream bytes from the slave.Command line string used to invoke the slave.(package private) long
Slave execution time.JVM name (slave).PID string of the forked JVM.System properties on the slave.void
(package private) void
Set 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
Execute these test suites on this slave. -
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
Return theCharset
used to encode stream bytes from the slave. -
getSystemProperties
System properties on the slave. -
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 bothWriter
arguments are the same object the streams will be combined.- Throws:
IOException
-
serialize
- Throws:
IOException
-