com.ibm.batch.container.context.impl
Class StepContextImpl<T,P extends Externalizable>

java.lang.Object
  extended by com.ibm.batch.container.context.impl.StepContextImpl<T,P>
All Implemented Interfaces:
Externalizable, Serializable, BatchContext<T>, StepContext<T,P>

public class StepContextImpl<T,P extends Externalizable>
extends Object
implements StepContext<T,P>

See Also:
Serialized Form

Constructor Summary
StepContextImpl(String stepId)
           
 
Method Summary
 void addMetric(MetricImpl.Counter counter, long value)
           
 List<FlowContext<T>> getBatchContexts()
           
 String getBatchStatus()
           
 Exception getException()
           
 String getExitStatus()
           
 String getId()
           
 MetricImpl getMetric(MetricImpl.Counter counter)
           
 Metric[] getMetrics()
           
 P getPersistentUserData()
           
 Properties getProperties()
           
 long getStepExecutionId()
           
 T getTransientUserData()
           
 void readExternal(ObjectInput in)
           
 void setBatchStatus(String status)
           
 void setExitStatus(String status)
           
 void setPersistentUserData(P data)
           
 void setStepExecutionId(long stepExecutionId)
           
 void setTransientUserData(T data)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
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 String getBatchStatus()
Specified by:
getBatchStatus in interface BatchContext<T>

getException

public Exception getException()
Specified by:
getException in interface StepContext<T,P extends Externalizable>

getExitStatus

public String getExitStatus()
Specified by:
getExitStatus in interface BatchContext<T>
Specified by:
getExitStatus in interface StepContext<T,P extends Externalizable>

getId

public String getId()
Specified by:
getId in interface BatchContext<T>

getMetrics

public Metric[] getMetrics()
Specified by:
getMetrics in interface StepContext<T,P extends Externalizable>

getMetric

public MetricImpl getMetric(MetricImpl.Counter counter)

addMetric

public void addMetric(MetricImpl.Counter counter,
                      long value)

getPersistentUserData

public P getPersistentUserData()
Specified by:
getPersistentUserData in interface StepContext<T,P extends Externalizable>

getProperties

public Properties getProperties()
Specified by:
getProperties in interface StepContext<T,P extends Externalizable>

getTransientUserData

public T getTransientUserData()
Specified by:
getTransientUserData in interface BatchContext<T>

setExitStatus

public void setExitStatus(String status)
Specified by:
setExitStatus in interface BatchContext<T>
Specified by:
setExitStatus in interface StepContext<T,P extends Externalizable>

setBatchStatus

public void setBatchStatus(String status)

setPersistentUserData

public void setPersistentUserData(P data)
Specified by:
setPersistentUserData in interface StepContext<T,P extends Externalizable>

setTransientUserData

public void setTransientUserData(T data)
Specified by:
setTransientUserData in interface BatchContext<T>

toString

public String toString()
Overrides:
toString in class Object

getStepExecutionId

public long getStepExecutionId()
Specified by:
getStepExecutionId in interface StepContext<T,P extends Externalizable>

getBatchContexts

public List<FlowContext<T>> getBatchContexts()
Specified by:
getBatchContexts in interface BatchContext<T>

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

setStepExecutionId

public void setStepExecutionId(long stepExecutionId)


Copyright © 2013. All Rights Reserved.