Package org.hobbit.core
Class Commands
- java.lang.Object
-
- org.hobbit.core.Commands
-
public final class Commands extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static byteBENCHMARK_FINISHED_SIGNALstatic byteBENCHMARK_READY_SIGNALThe signal sent by the benchmark controller to indicate that the benchmark is ready.static byteDATA_GENERATION_FINISHEDstatic byteDATA_GENERATOR_READY_SIGNALThe signal sent by the data generator to indicate that it is ready.static byteDATA_GENERATOR_START_SIGNALstatic byteDOCKER_CONTAINER_STARTCommand used to ask a docker managing component to start a certain container.static byteDOCKER_CONTAINER_STOPCommand used to ask a docker managing component to stop a certain container.static byteDOCKER_CONTAINER_TERMINATEDstatic byteEVAL_MODULE_FINISHED_SIGNALstatic byteEVAL_MODULE_READY_SIGNALThe signal sent by the evaluation module to indicate that it is ready.static byteEVAL_STORAGE_READY_SIGNALThe signal sent by the evaluation storage to indicate that it is ready.static byteEVAL_STORAGE_TERMINATEprivate static com.google.common.collect.ImmutableMap<Byte,String>ID_TO_COMMAND_NAME_MAPstatic byteREQUEST_SYSTEM_RESOURCES_USAGEstatic byteSTART_BENCHMARK_SIGNALstatic byteSYSTEM_READY_SIGNALThe signal sent by the benchmarked system to indicate that the system is ready.static byteTASK_GENERATION_FINISHEDstatic byteTASK_GENERATOR_READY_SIGNALThe signal sent by the task generator to indicate that it is ready.static byteTASK_GENERATOR_START_SIGNAL
-
Constructor Summary
Constructors Modifier Constructor Description privateCommands()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static com.google.common.collect.ImmutableMap<Byte,String>generateMap()static StringtoString(byte command)Returns the name of the command if it is defined inside theCommandsclass or its id as String.
-
-
-
Field Detail
-
SYSTEM_READY_SIGNAL
public static final byte SYSTEM_READY_SIGNAL
The signal sent by the benchmarked system to indicate that the system is ready.- See Also:
- Constant Field Values
-
BENCHMARK_READY_SIGNAL
public static final byte BENCHMARK_READY_SIGNAL
The signal sent by the benchmark controller to indicate that the benchmark is ready.- See Also:
- Constant Field Values
-
DATA_GENERATOR_READY_SIGNAL
public static final byte DATA_GENERATOR_READY_SIGNAL
The signal sent by the data generator to indicate that it is ready.- See Also:
- Constant Field Values
-
TASK_GENERATOR_READY_SIGNAL
public static final byte TASK_GENERATOR_READY_SIGNAL
The signal sent by the task generator to indicate that it is ready.- See Also:
- Constant Field Values
-
EVAL_STORAGE_READY_SIGNAL
public static final byte EVAL_STORAGE_READY_SIGNAL
The signal sent by the evaluation storage to indicate that it is ready.- See Also:
- Constant Field Values
-
EVAL_MODULE_READY_SIGNAL
public static final byte EVAL_MODULE_READY_SIGNAL
The signal sent by the evaluation module to indicate that it is ready.- See Also:
- Constant Field Values
-
DATA_GENERATOR_START_SIGNAL
public static final byte DATA_GENERATOR_START_SIGNAL
- See Also:
- Constant Field Values
-
TASK_GENERATOR_START_SIGNAL
public static final byte TASK_GENERATOR_START_SIGNAL
- See Also:
- Constant Field Values
-
EVAL_MODULE_FINISHED_SIGNAL
public static final byte EVAL_MODULE_FINISHED_SIGNAL
- See Also:
- Constant Field Values
-
EVAL_STORAGE_TERMINATE
public static final byte EVAL_STORAGE_TERMINATE
- See Also:
- Constant Field Values
-
BENCHMARK_FINISHED_SIGNAL
public static final byte BENCHMARK_FINISHED_SIGNAL
- See Also:
- Constant Field Values
-
DOCKER_CONTAINER_START
public static final byte DOCKER_CONTAINER_START
Command used to ask a docker managing component to start a certain container.The command is followed by a String containing the following JSON data:
{
"image": "image-to-run",
"type": "system|benchmark",
"parent":"parent-container-id"
}- See Also:
- Constant Field Values
-
DOCKER_CONTAINER_STOP
public static final byte DOCKER_CONTAINER_STOP
Command used to ask a docker managing component to stop a certain container.The command is followed by a String containing the following JSON data:
{
"containerId": "container-to-stop"
}- See Also:
- Constant Field Values
-
DATA_GENERATION_FINISHED
public static final byte DATA_GENERATION_FINISHED
- See Also:
- Constant Field Values
-
TASK_GENERATION_FINISHED
public static final byte TASK_GENERATION_FINISHED
- See Also:
- Constant Field Values
-
DOCKER_CONTAINER_TERMINATED
public static final byte DOCKER_CONTAINER_TERMINATED
- See Also:
- Constant Field Values
-
START_BENCHMARK_SIGNAL
public static final byte START_BENCHMARK_SIGNAL
- See Also:
- Constant Field Values
-
REQUEST_SYSTEM_RESOURCES_USAGE
public static final byte REQUEST_SYSTEM_RESOURCES_USAGE
- See Also:
- Constant Field Values
-
-