Class BootstrapEvent
- java.lang.Object
-
- com.carrotsearch.ant.tasks.junit4.events.AbstractEvent
-
- com.carrotsearch.ant.tasks.junit4.events.BootstrapEvent
-
- All Implemented Interfaces:
IEvent,RemoteEvent
public class BootstrapEvent extends AbstractEvent
Initial message sent from the slave to the master (if forked locally).
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringdefaultCharsetprivate static java.util.List<java.lang.String>GUARANTEED_PROPERTIESprivate java.lang.StringpidStringprivate java.util.Map<java.lang.String,java.lang.String>systemProperties
-
Constructor Summary
Constructors Constructor Description BootstrapEvent()Preinitialization with local machine's configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Map<java.lang.String,java.lang.String>collectSystemProperties()voiddeserialize(JsonReader reader)java.lang.StringgetDefaultCharsetName()Default charset on the slave.java.lang.StringgetPidString()Returns a PID string or anything that approximates it and would help in dumping a stack trace externally, for example.java.util.Map<java.lang.String,java.lang.String>getSystemProperties()System properties on the slave.voidserialize(JsonWriter writer)-
Methods inherited from class com.carrotsearch.ant.tasks.junit4.events.AbstractEvent
expectProperty, getType, readBinaryProperty, readBoolean, readLongProperty, readStringOrNullProperty, readStringProperty, writeBinaryProperty, writeDescription
-
-
-
-
Field Detail
-
GUARANTEED_PROPERTIES
private static final java.util.List<java.lang.String> GUARANTEED_PROPERTIES
-
defaultCharset
private java.lang.String defaultCharset
-
systemProperties
private java.util.Map<java.lang.String,java.lang.String> systemProperties
-
pidString
private java.lang.String pidString
-
-
Method Detail
-
collectSystemProperties
private java.util.Map<java.lang.String,java.lang.String> collectSystemProperties()
-
getDefaultCharsetName
public java.lang.String getDefaultCharsetName()
Default charset on 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()
Returns a PID string or anything that approximates it and would help in dumping a stack trace externally, for example.
-
serialize
public void serialize(JsonWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
deserialize
public void deserialize(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
-