Enum Class States
- All Implemented Interfaces:
- Serializable,- Comparable<States>,- Constable
Execution state machine states.
- Since:
- 4.0.0
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryFields
- 
Method Summary
- 
Enum Constant Details- 
READYInitial state, NOOP, before execution to start.
- 
INITIALIZE_AGENTInitialize the agent.
- 
HANDSHAKEPerform agent/server handshake.
- 
CONFIGURE_AGENTConfigure the agent based on server-provided values.
- 
CONFIGURE_EXECUTIONConfigure the execution based on command-line arguments.
- 
RESERVE_JOB_IDReserve the job id.
- 
OBTAIN_JOB_SPECIFICATIONObtain the job specification.
- 
CLAIM_JOBClaim the job for execution.
- 
START_HEARTBEAT_SERVICEStart heartbeat service.
- 
START_KILL_SERVICEStart kill service.
- 
CREATE_JOB_DIRECTORYCreate the job directory.
- 
RELOCATE_LOGRelocate the agent log inside the job directory.
- 
START_FILE_STREAM_SERVICEStart file stream service.
- 
SET_STATUS_INITUpdate the job status to INIT.
- 
CREATE_JOB_SCRIPTCreate the job script (a.k.a. 'run' file).
- 
DOWNLOAD_DEPENDENCIESDownload dependencies.
- 
LAUNCH_JOBLaunch the job process.
- 
SET_STATUS_RUNNINGUpdate the job status to RUNNING.
- 
WAIT_JOB_COMPLETIONWait for job completion.
- 
SET_STATUS_FINALFinal update to the job status.
- 
STOP_KILL_SERVICEStop the kill service.
- 
LOG_EXECUTION_ERRORSDump execution error summary in the log.
- 
ARCHIVEArchive job outputs and logs.
- 
STOP_HEARTBEAT_SERVICEStop the heartbeat service.
- 
STOP_FILES_STREAM_SERVICEStop the file stream service.
- 
CLEANClean job directory post-execution.
- 
SHUTDOWNShutdown execution state machine.
- 
DONEFinal stage.
- 
DETERMINE_FINAL_STATUSDetermine the job final status to publish to server.
- 
POST_LAUNCH_MANIFEST_REFRESHTrigger a job directory manifest refresh after the job has launched.
- 
POST_SETUP_MANIFEST_REFRESHTrigger a job directory manifest refresh after job setup completed.
- 
POST_EXECUTION_MANIFEST_REFRESHTrigger a job directory manifest refresh after job process terminated.
 
- 
- 
Field Details- 
INITIAL_STATEInitial pseudo-state.
- 
FINAL_STATEFinal pseudo-state.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-