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