public final class Command extends Object
| Modifier and Type | Field and Description |
|---|---|
static Command |
NOOP |
static Command |
SKIP_SINCE_NEXT_TEST |
static Command |
TEST_SET_FINISHED |
| Constructor and Description |
|---|
Command(MasterProcessCommand command) |
Command(MasterProcessCommand command,
String data) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
MasterProcessCommand |
getCommandType() |
String |
getData() |
int |
hashCode() |
boolean |
isType(MasterProcessCommand command) |
static Command |
toRunClass(String runClass) |
static Command |
toShutdown(Shutdown shutdownType) |
Shutdown |
toShutdownData() |
public static final Command TEST_SET_FINISHED
public static final Command SKIP_SINCE_NEXT_TEST
public static final Command NOOP
public Command(MasterProcessCommand command, String data)
public Command(MasterProcessCommand command)
public MasterProcessCommand getCommandType()
public String getData()
public Shutdown toShutdownData()
Shutdown or Shutdown.DEFAULT if getData() is null or blank stringIllegalArgumentException - if string data getData() is not applicable to enum Shutdownpublic boolean isType(MasterProcessCommand command)
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.