Enum MasterProcessCommand
- java.lang.Object
-
- java.lang.Enum<MasterProcessCommand>
-
- org.apache.maven.surefire.api.booter.MasterProcessCommand
-
- All Implemented Interfaces:
Serializable
,Comparable<MasterProcessCommand>
public enum MasterProcessCommand extends Enum<MasterProcessCommand>
Commands which are sent from plugin to the forked jvm.- Since:
- 2.19
- Author:
- Tibor Digana (tibor17)
-
-
Enum Constant Summary
Enum Constants Enum Constant 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
-
Field Summary
Fields Modifier and Type Field Description static Map<AbstractStreamDecoder.Segment,MasterProcessCommand>
COMMAND_TYPES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getDataType()
byte[]
getOpcodeBinary()
int
getOpcodeLength()
boolean
hasDataType()
String
toString()
static MasterProcessCommand
valueOf(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.
-
-
-
Enum Constant Detail
-
RUN_CLASS
public static final MasterProcessCommand RUN_CLASS
-
TEST_SET_FINISHED
public static final MasterProcessCommand TEST_SET_FINISHED
-
SKIP_SINCE_NEXT_TEST
public static final MasterProcessCommand SKIP_SINCE_NEXT_TEST
-
SHUTDOWN
public static final MasterProcessCommand SHUTDOWN
-
NOOP
public static final MasterProcessCommand NOOP
To tell a forked process that the master process is still alive. Repeated after 10 seconds.
-
BYE_ACK
public static final MasterProcessCommand BYE_ACK
-
-
Field Detail
-
COMMAND_TYPES
public static final Map<AbstractStreamDecoder.Segment,MasterProcessCommand> COMMAND_TYPES
-
-
Method Detail
-
values
public static MasterProcessCommand[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MasterProcessCommand c : MasterProcessCommand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MasterProcessCommand valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getOpcodeBinary
public byte[] getOpcodeBinary()
-
getOpcodeLength
public int getOpcodeLength()
-
getDataType
public Class<?> getDataType()
-
hasDataType
public boolean hasDataType()
-
toString
public String toString()
- Overrides:
toString
in classEnum<MasterProcessCommand>
-
-