java.lang.Object
java.lang.Enum<States>
com.netflix.genie.agent.execution.statemachine.States
All Implemented Interfaces:
Serializable, Comparable<States>, Constable

public enum States extends Enum<States>
Execution state machine states.
Since:
4.0.0
  • Enum Constant Details

    • READY

      public static final States READY
      Initial state, NOOP, before execution to start.
    • INITIALIZE_AGENT

      public static final States INITIALIZE_AGENT
      Initialize the agent.
    • HANDSHAKE

      public static final States HANDSHAKE
      Perform agent/server handshake.
    • CONFIGURE_AGENT

      public static final States CONFIGURE_AGENT
      Configure the agent based on server-provided values.
    • CONFIGURE_EXECUTION

      public static final States CONFIGURE_EXECUTION
      Configure the execution based on command-line arguments.
    • RESERVE_JOB_ID

      public static final States RESERVE_JOB_ID
      Reserve the job id.
    • OBTAIN_JOB_SPECIFICATION

      public static final States OBTAIN_JOB_SPECIFICATION
      Obtain the job specification.
    • CLAIM_JOB

      public static final States CLAIM_JOB
      Claim the job for execution.
    • START_HEARTBEAT_SERVICE

      public static final States START_HEARTBEAT_SERVICE
      Start heartbeat service.
    • START_KILL_SERVICE

      public static final States START_KILL_SERVICE
      Start kill service.
    • CREATE_JOB_DIRECTORY

      public static final States CREATE_JOB_DIRECTORY
      Create the job directory.
    • RELOCATE_LOG

      public static final States RELOCATE_LOG
      Relocate the agent log inside the job directory.
    • START_FILE_STREAM_SERVICE

      public static final States START_FILE_STREAM_SERVICE
      Start file stream service.
    • SET_STATUS_INIT

      public static final States SET_STATUS_INIT
      Update the job status to INIT.
    • CREATE_JOB_SCRIPT

      public static final States CREATE_JOB_SCRIPT
      Create the job script (a.k.a. 'run' file).
    • DOWNLOAD_DEPENDENCIES

      public static final States DOWNLOAD_DEPENDENCIES
      Download dependencies.
    • LAUNCH_JOB

      public static final States LAUNCH_JOB
      Launch the job process.
    • SET_STATUS_RUNNING

      public static final States SET_STATUS_RUNNING
      Update the job status to RUNNING.
    • WAIT_JOB_COMPLETION

      public static final States WAIT_JOB_COMPLETION
      Wait for job completion.
    • SET_STATUS_FINAL

      public static final States SET_STATUS_FINAL
      Final update to the job status.
    • STOP_KILL_SERVICE

      public static final States STOP_KILL_SERVICE
      Stop the kill service.
    • LOG_EXECUTION_ERRORS

      public static final States LOG_EXECUTION_ERRORS
      Dump execution error summary in the log.
    • ARCHIVE

      public static final States ARCHIVE
      Archive job outputs and logs.
    • STOP_HEARTBEAT_SERVICE

      public static final States STOP_HEARTBEAT_SERVICE
      Stop the heartbeat service.
    • STOP_FILES_STREAM_SERVICE

      public static final States STOP_FILES_STREAM_SERVICE
      Stop the file stream service.
    • CLEAN

      public static final States CLEAN
      Clean job directory post-execution.
    • SHUTDOWN

      public static final States SHUTDOWN
      Shutdown execution state machine.
    • DONE

      public static final States DONE
      Final stage.
    • DETERMINE_FINAL_STATUS

      public static final States DETERMINE_FINAL_STATUS
      Determine the job final status to publish to server.
    • POST_LAUNCH_MANIFEST_REFRESH

      public static final States POST_LAUNCH_MANIFEST_REFRESH
      Trigger a job directory manifest refresh after the job has launched.
    • POST_SETUP_MANIFEST_REFRESH

      public static final States POST_SETUP_MANIFEST_REFRESH
      Trigger a job directory manifest refresh after job setup completed.
    • POST_EXECUTION_MANIFEST_REFRESH

      public static final States POST_EXECUTION_MANIFEST_REFRESH
      Trigger a job directory manifest refresh after job process terminated.
  • Field Details

    • INITIAL_STATE

      public static final States INITIAL_STATE
      Initial pseudo-state.
    • FINAL_STATE

      public static final States FINAL_STATE
      Final pseudo-state.
  • Method Details

    • values

      public static States[] 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

      public static States valueOf(String name)
      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 name
      NullPointerException - if the argument is null