Class ForkedJvmInfo
- java.lang.Object
-
- com.carrotsearch.ant.tasks.junit4.ForkedJvmInfo
-
public final class ForkedJvmInfo extends java.lang.ObjectStatic slave information.
-
-
Field Summary
Fields Modifier and Type Field Description private BootstrapEventbootstrapEventBootstrap event.(package private) longendTimestamps for diagnostics.(package private) java.lang.ThrowableexecutionErrorExecution error if anything bad happened on the slave.intidUnique sequential slave identifier.(package private) java.lang.StringslaveCommandLineComplete slave command line invocation string.intslavesThe number of executed slaves, total.(package private) longstartTimestamps for diagnostics.(package private) java.util.ArrayList<java.lang.String>testSuitesExecute these test suites on this slave.
-
Constructor Summary
Constructors Constructor Description ForkedJvmInfo(int id, int slaves)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecodeStreams(java.util.List<IEvent> events, java.io.Writer sysout, java.io.Writer syserr)Filter through events looking for sysouts and syserrs and decode them into a character streams.java.nio.charset.CharsetgetCharset()Return theCharsetused to encode stream bytes from the slave.java.lang.StringgetCommandLine()Command line string used to invoke the slave.(package private) longgetExecutionTime()Slave execution time.java.lang.StringgetJvmName()JVM name (slave).java.lang.StringgetPidString()PID string of the forked JVM.java.util.Map<java.lang.String,java.lang.String>getSystemProperties()System properties on the slave.voidserialize(JsonWriter w)(package private) voidsetBootstrapEvent(BootstrapEvent e)Set the bootstrap event associated with this slave.
-
-
-
Field Detail
-
id
public final int id
Unique sequential slave identifier.
-
slaves
public final int slaves
The number of executed slaves, total.
-
bootstrapEvent
private BootstrapEvent bootstrapEvent
Bootstrap event.
-
start
long start
Timestamps for diagnostics.
-
end
long end
Timestamps for diagnostics.
-
testSuites
java.util.ArrayList<java.lang.String> testSuites
Execute these test suites on this slave.
-
slaveCommandLine
java.lang.String slaveCommandLine
Complete slave command line invocation string.
-
executionError
java.lang.Throwable executionError
Execution error if anything bad happened on the slave.
-
-
Method Detail
-
getCharset
public java.nio.charset.Charset getCharset()
Return theCharsetused to encode stream bytes from the slave.
-
getSystemProperties
public java.util.Map<java.lang.String,java.lang.String> getSystemProperties()
System properties on the slave.
-
getPidString
public java.lang.String 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
public java.lang.String getCommandLine()
Command line string used to invoke the slave.
-
getJvmName
public java.lang.String getJvmName()
JVM name (slave).
-
getExecutionTime
long getExecutionTime()
Slave execution time.
-
setBootstrapEvent
void setBootstrapEvent(BootstrapEvent e)
Set the bootstrap event associated with this slave.
-
decodeStreams
public void decodeStreams(java.util.List<IEvent> events, java.io.Writer sysout, java.io.Writer syserr) throws java.io.IOException
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:
java.io.IOException
-
serialize
public void serialize(JsonWriter w) throws java.io.IOException
- Throws:
java.io.IOException
-
-