Class JobContextImpl

  • All Implemented Interfaces:
    jakarta.batch.runtime.context.JobContext

    public class JobContextImpl
    extends Object
    implements jakarta.batch.runtime.context.JobContext
    • Constructor Detail

      • JobContextImpl

        public JobContextImpl​(ModelNavigator<com.ibm.jbatch.jsl.model.JSLJob> navigator,
                              com.ibm.jbatch.jsl.model.JSLProperties jslProperties)
    • Method Detail

      • getNavigator

        public ModelNavigator<com.ibm.jbatch.jsl.model.JSLJob> getNavigator()
      • getExitStatus

        public String getExitStatus()
        Specified by:
        getExitStatus in interface jakarta.batch.runtime.context.JobContext
      • setExitStatus

        public void setExitStatus​(String exitStatus)
        Specified by:
        setExitStatus in interface jakarta.batch.runtime.context.JobContext
      • getJobName

        public String getJobName()
        Specified by:
        getJobName in interface jakarta.batch.runtime.context.JobContext
      • getBatchStatus

        public jakarta.batch.runtime.BatchStatus getBatchStatus()
        Specified by:
        getBatchStatus in interface jakarta.batch.runtime.context.JobContext
      • setBatchStatus

        public void setBatchStatus​(jakarta.batch.runtime.BatchStatus batchStatus)
      • getTransientUserData

        public Object getTransientUserData()
        Specified by:
        getTransientUserData in interface jakarta.batch.runtime.context.JobContext
      • getJSLProperties

        public Properties getJSLProperties()
      • getProperties

        public Properties getProperties()
        Specified by:
        getProperties in interface jakarta.batch.runtime.context.JobContext
      • setTransientUserData

        public void setTransientUserData​(Object data)
        Specified by:
        setTransientUserData in interface jakarta.batch.runtime.context.JobContext
      • getExecutionId

        public long getExecutionId()
        Specified by:
        getExecutionId in interface jakarta.batch.runtime.context.JobContext
      • getInstanceId

        public long getInstanceId()
        Specified by:
        getInstanceId in interface jakarta.batch.runtime.context.JobContext
      • setExecutionId

        public void setExecutionId​(long executionId)
      • setInstanceId

        public void setInstanceId​(long instanceId)
      • getRestartOn

        public String getRestartOn()
      • setRestartOn

        public void setRestartOn​(String restartOn)
      • addTopLevelContextProperties

        public com.ibm.jbatch.jsl.model.JSLProperties addTopLevelContextProperties​(com.ibm.jbatch.jsl.model.JSLProperties properties)
        Intended to be called in building split-flow and partition level contexts. This will propagate the top-level info returned by the JobContext API. Note that by calling the getters first to get the value used to set, e.g. in this line: jobName.setValue(getJobName()); we allow for chaining together multiple levels of delegation. This could be useful for a split-flow within a split-flow, for example.