com.ibm.jbatch.container.context.impl
Class StepContextImpl

java.lang.Object
  extended by com.ibm.jbatch.container.context.impl.StepContextImpl
All Implemented Interfaces:
StepContext

public class StepContextImpl
extends Object
implements StepContext


Constructor Summary
StepContextImpl(String stepId)
           
 
Method Summary
 void addMetric(Metric.MetricType metricType, long value)
           
 String getBatchletProcessRetVal()
           
 BatchStatus getBatchStatus()
           
 Timestamp getEndTimeTS()
           
 Exception getException()
           
 String getExitStatus()
           
 MetricImpl getMetric(Metric.MetricType metricType)
           
 Metric[] getMetrics()
           
 Serializable getPersistentUserData()
           
 Properties getProperties()
           
 Timestamp getStartTimeTS()
           
 long getStepExecutionId()
           
 String getStepName()
           
 Object getTransientUserData()
           
 void setBatchletProcessRetVal(String batchletProcessRetVal)
           
 void setBatchStatus(BatchStatus status)
           
 void setEndTime(Timestamp endTS)
           
 void setException(Exception exception)
           
 void setExitStatus(String status)
           
 void setPersistentUserData(Serializable data)
           
 void setStartTime(Timestamp startTS)
           
 void setStepExecutionId(long stepExecutionId)
           
 void setTransientUserData(Object data)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StepContextImpl

public StepContextImpl(String stepId)
Method Detail

getBatchStatus

public BatchStatus getBatchStatus()
Specified by:
getBatchStatus in interface StepContext

getException

public Exception getException()
Specified by:
getException in interface StepContext

setException

public void setException(Exception exception)

getExitStatus

public String getExitStatus()
Specified by:
getExitStatus in interface StepContext

getStepName

public String getStepName()
Specified by:
getStepName in interface StepContext

getMetrics

public Metric[] getMetrics()
Specified by:
getMetrics in interface StepContext

getMetric

public MetricImpl getMetric(Metric.MetricType metricType)

addMetric

public void addMetric(Metric.MetricType metricType,
                      long value)

getPersistentUserData

public Serializable getPersistentUserData()
Specified by:
getPersistentUserData in interface StepContext

getProperties

public Properties getProperties()
Specified by:
getProperties in interface StepContext

getTransientUserData

public Object getTransientUserData()
Specified by:
getTransientUserData in interface StepContext

setExitStatus

public void setExitStatus(String status)
Specified by:
setExitStatus in interface StepContext

setBatchStatus

public void setBatchStatus(BatchStatus status)

setPersistentUserData

public void setPersistentUserData(Serializable data)
Specified by:
setPersistentUserData in interface StepContext

setTransientUserData

public void setTransientUserData(Object data)
Specified by:
setTransientUserData in interface StepContext

toString

public String toString()
Overrides:
toString in class Object

getStepExecutionId

public long getStepExecutionId()
Specified by:
getStepExecutionId in interface StepContext

setStepExecutionId

public void setStepExecutionId(long stepExecutionId)

setStartTime

public void setStartTime(Timestamp startTS)

setEndTime

public void setEndTime(Timestamp endTS)

getStartTimeTS

public Timestamp getStartTimeTS()

getEndTimeTS

public Timestamp getEndTimeTS()

getBatchletProcessRetVal

public String getBatchletProcessRetVal()

setBatchletProcessRetVal

public void setBatchletProcessRetVal(String batchletProcessRetVal)


Copyright © 2013. All Rights Reserved.