Class ForkedJvmInfo
- java.lang.Object
-
- com.carrotsearch.ant.tasks.junit4.ForkedJvmInfo
-
public final class ForkedJvmInfo extends java.lang.Object
Static slave information.
-
-
Field Summary
Fields Modifier and Type Field Description private BootstrapEvent
bootstrapEvent
Bootstrap event.(package private) long
end
Timestamps for diagnostics.(package private) java.lang.Throwable
executionError
Execution error if anything bad happened on the slave.int
id
Unique sequential slave identifier.(package private) java.lang.String
slaveCommandLine
Complete slave command line invocation string.int
slaves
The number of executed slaves, total.(package private) long
start
Timestamps for diagnostics.(package private) java.util.ArrayList<java.lang.String>
testSuites
Execute 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 void
decodeStreams(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.Charset
getCharset()
Return theCharset
used to encode stream bytes from the slave.java.lang.String
getCommandLine()
Command line string used to invoke the slave.(package private) long
getExecutionTime()
Slave execution time.java.lang.String
getJvmName()
JVM name (slave).java.lang.String
getPidString()
PID string of the forked JVM.java.util.Map<java.lang.String,java.lang.String>
getSystemProperties()
System properties on the slave.void
serialize(JsonWriter w)
(package private) void
setBootstrapEvent(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 theCharset
used 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 bothWriter
arguments 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
-
-