Enum Class States
- All Implemented Interfaces:
Serializable
,Comparable<States>
,Constable
Execution state machine states.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionArchive job outputs and logs.Claim the job for execution.Clean job directory post-execution.Configure the agent based on server-provided values.Configure the execution based on command-line arguments.Create the job directory.Create the job script (a.k.a.Determine the job final status to publish to server.Final stage.Download dependencies.Perform agent/server handshake.Initialize the agent.Launch the job process.Dump execution error summary in the log.Obtain the job specification.Trigger a job directory manifest refresh after job process terminated.Trigger a job directory manifest refresh after the job has launched.Trigger a job directory manifest refresh after job setup completed.Initial state, NOOP, before execution to start.Relocate the agent log inside the job directory.Reserve the job id.Final update to the job status.Update the job status to INIT.Update the job status to RUNNING.Shutdown execution state machine.Start file stream service.Start heartbeat service.Start kill service.Stop the file stream service.Stop the heartbeat service.Stop the kill service.Wait for job completion. -
Field Summary
-
Method Summary
-
Enum Constant Details
-
READY
Initial state, NOOP, before execution to start. -
INITIALIZE_AGENT
Initialize the agent. -
HANDSHAKE
Perform agent/server handshake. -
CONFIGURE_AGENT
Configure the agent based on server-provided values. -
CONFIGURE_EXECUTION
Configure the execution based on command-line arguments. -
RESERVE_JOB_ID
Reserve the job id. -
OBTAIN_JOB_SPECIFICATION
Obtain the job specification. -
CLAIM_JOB
Claim the job for execution. -
START_HEARTBEAT_SERVICE
Start heartbeat service. -
START_KILL_SERVICE
Start kill service. -
CREATE_JOB_DIRECTORY
Create the job directory. -
RELOCATE_LOG
Relocate the agent log inside the job directory. -
START_FILE_STREAM_SERVICE
Start file stream service. -
SET_STATUS_INIT
Update the job status to INIT. -
CREATE_JOB_SCRIPT
Create the job script (a.k.a. 'run' file). -
DOWNLOAD_DEPENDENCIES
Download dependencies. -
LAUNCH_JOB
Launch the job process. -
SET_STATUS_RUNNING
Update the job status to RUNNING. -
WAIT_JOB_COMPLETION
Wait for job completion. -
SET_STATUS_FINAL
Final update to the job status. -
STOP_KILL_SERVICE
Stop the kill service. -
LOG_EXECUTION_ERRORS
Dump execution error summary in the log. -
ARCHIVE
Archive job outputs and logs. -
STOP_HEARTBEAT_SERVICE
Stop the heartbeat service. -
STOP_FILES_STREAM_SERVICE
Stop the file stream service. -
CLEAN
Clean job directory post-execution. -
SHUTDOWN
Shutdown execution state machine. -
DONE
Final stage. -
DETERMINE_FINAL_STATUS
Determine the job final status to publish to server. -
POST_LAUNCH_MANIFEST_REFRESH
Trigger a job directory manifest refresh after the job has launched. -
POST_SETUP_MANIFEST_REFRESH
Trigger a job directory manifest refresh after job setup completed. -
POST_EXECUTION_MANIFEST_REFRESH
Trigger a job directory manifest refresh after job process terminated.
-
-
Field Details
-
INITIAL_STATE
Initial pseudo-state. -
FINAL_STATE
Final pseudo-state.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-