Class Command
- java.lang.Object
-
- org.apache.maven.surefire.api.booter.Command
-
public final class Command extends Object
Encapsulates data and command sent from master to forked process.- Since:
- 2.19
- Author:
- Tibor Digana (tibor17)
-
-
Field Summary
Fields Modifier and Type Field Description static Command
BYE_ACK
static Command
NOOP
static Command
SKIP_SINCE_NEXT_TEST
static Command
TEST_SET_FINISHED
-
Constructor Summary
Constructors Constructor Description Command(MasterProcessCommand command)
Command(MasterProcessCommand command, String data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
MasterProcessCommand
getCommandType()
String
getData()
int
hashCode()
static Command
toRunClass(String runClass)
static Command
toShutdown(Shutdown shutdownType)
Shutdown
toShutdownData()
-
-
-
Constructor Detail
-
Command
public Command(MasterProcessCommand command, String data)
-
Command
public Command(MasterProcessCommand command)
-
-
Method Detail
-
getCommandType
public MasterProcessCommand getCommandType()
-
getData
public String getData()
-
toShutdownData
public Shutdown toShutdownData()
- Returns:
Shutdown
orShutdown.DEFAULT
ifgetData()
is null or blank string- Throws:
IllegalArgumentException
- if string datagetData()
is not applicable to enumShutdown
-
-