public enum MasterProcessCommand extends java.lang.Enum<MasterProcessCommand>
Enum Constant and Description |
---|
BYE_ACK |
NOOP
To tell a forked process that the master process is still alive.
|
RUN_CLASS |
SHUTDOWN |
SKIP_SINCE_NEXT_TEST |
TEST_SET_FINISHED |
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
dataType |
private int |
id |
Modifier and Type | Method and Description |
---|---|
static Command |
decode(java.io.DataInputStream is) |
byte[] |
encode() |
byte[] |
encode(java.lang.String data) |
(package private) byte[] |
fromDataType(java.lang.String data) |
java.lang.Class<?> |
getDataType() |
int |
getId() |
boolean |
hasDataType() |
(package private) static MasterProcessCommand |
resolve(int id) |
(package private) static void |
setCommandAndDataLength(int command,
int dataLength,
byte... encoded) |
(package private) java.lang.String |
toDataTypeAsString(byte... data) |
static MasterProcessCommand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MasterProcessCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MasterProcessCommand RUN_CLASS
public static final MasterProcessCommand TEST_SET_FINISHED
public static final MasterProcessCommand SKIP_SINCE_NEXT_TEST
public static final MasterProcessCommand SHUTDOWN
public static final MasterProcessCommand NOOP
public static final MasterProcessCommand BYE_ACK
public static MasterProcessCommand[] values()
for (MasterProcessCommand c : MasterProcessCommand.values()) System.out.println(c);
public static MasterProcessCommand valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public java.lang.Class<?> getDataType()
public boolean hasDataType()
public byte[] encode(java.lang.String data)
public byte[] encode()
public static Command decode(java.io.DataInputStream is) throws java.io.IOException
java.io.IOException
java.lang.String toDataTypeAsString(byte... data)
byte[] fromDataType(java.lang.String data)
static MasterProcessCommand resolve(int id)
static void setCommandAndDataLength(int command, int dataLength, byte... encoded)