Class JobContextImpl
- java.lang.Object
-
- com.ibm.jbatch.container.context.impl.JobContextImpl
-
- All Implemented Interfaces:
jakarta.batch.runtime.context.JobContext
public class JobContextImpl extends Object implements jakarta.batch.runtime.context.JobContext
-
-
Field Summary
Fields Modifier and Type Field Description protected StringrestartOnstatic StringTOP_LEVEL_EXECUTION_ID_PROPstatic StringTOP_LEVEL_INSTANCE_ID_PROPstatic StringTOP_LEVEL_JOB_NAME_PROP
-
Constructor Summary
Constructors Constructor Description JobContextImpl(ModelNavigator<com.ibm.jbatch.jsl.model.JSLJob> navigator, com.ibm.jbatch.jsl.model.JSLProperties jslProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.jbatch.jsl.model.JSLPropertiesaddTopLevelContextProperties(com.ibm.jbatch.jsl.model.JSLProperties properties)Intended to be called in building split-flow and partition level contexts.jakarta.batch.runtime.BatchStatusgetBatchStatus()longgetExecutionId()StringgetExitStatus()longgetInstanceId()StringgetJobName()PropertiesgetJSLProperties()ModelNavigator<com.ibm.jbatch.jsl.model.JSLJob>getNavigator()PropertiesgetProperties()StringgetRestartOn()ObjectgetTransientUserData()voidsetBatchStatus(jakarta.batch.runtime.BatchStatus batchStatus)voidsetExecutionId(long executionId)voidsetExitStatus(String exitStatus)voidsetInstanceId(long instanceId)voidsetRestartOn(String restartOn)voidsetTransientUserData(Object data)StringtoString()
-
-
-
Field Detail
-
restartOn
protected String restartOn
-
TOP_LEVEL_JOB_NAME_PROP
public static final String TOP_LEVEL_JOB_NAME_PROP
- See Also:
- Constant Field Values
-
TOP_LEVEL_INSTANCE_ID_PROP
public static final String TOP_LEVEL_INSTANCE_ID_PROP
- See Also:
- Constant Field Values
-
TOP_LEVEL_EXECUTION_ID_PROP
public static final String TOP_LEVEL_EXECUTION_ID_PROP
- See Also:
- Constant Field Values
-
-
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:
getExitStatusin interfacejakarta.batch.runtime.context.JobContext
-
setExitStatus
public void setExitStatus(String exitStatus)
- Specified by:
setExitStatusin interfacejakarta.batch.runtime.context.JobContext
-
getJobName
public String getJobName()
- Specified by:
getJobNamein interfacejakarta.batch.runtime.context.JobContext
-
getBatchStatus
public jakarta.batch.runtime.BatchStatus getBatchStatus()
- Specified by:
getBatchStatusin interfacejakarta.batch.runtime.context.JobContext
-
setBatchStatus
public void setBatchStatus(jakarta.batch.runtime.BatchStatus batchStatus)
-
getTransientUserData
public Object getTransientUserData()
- Specified by:
getTransientUserDatain interfacejakarta.batch.runtime.context.JobContext
-
getJSLProperties
public Properties getJSLProperties()
-
getProperties
public Properties getProperties()
- Specified by:
getPropertiesin interfacejakarta.batch.runtime.context.JobContext
-
setTransientUserData
public void setTransientUserData(Object data)
- Specified by:
setTransientUserDatain interfacejakarta.batch.runtime.context.JobContext
-
getExecutionId
public long getExecutionId()
- Specified by:
getExecutionIdin interfacejakarta.batch.runtime.context.JobContext
-
getInstanceId
public long getInstanceId()
- Specified by:
getInstanceIdin interfacejakarta.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.
-
-