com.ibm.websphere.batch
Class BatchDataStreamMgr
- java.lang.Object
-
- com.ibm.websphere.batch.BatchDataStreamMgr
-
public class BatchDataStreamMgr extends java.lang.Object
This api enables a Batch Step EJB to retrieve a handle to a Batch Data Stream at runtime.
-
-
Constructor Summary
Constructors Modifier Constructor and Description protected
BatchDataStreamMgr()
-
Method Summary
Methods Modifier and Type Method and Description java.lang.Object
clone()
static BatchDataStream
getBatchDataStream(com.ibm.ws.longrun.CGJob job, java.lang.String logicalname, java.lang.String jobidStepid)
static BatchDataStream
getBatchDataStream(java.lang.String logicalname, java.lang.String jobidStepid)
Returns a BatchDataStream object for the Batch Data Stream identified by its logical name and the id of the job and step with which it is associated.
-
-
-
Method Detail
-
getBatchDataStream
public static BatchDataStream getBatchDataStream(java.lang.String logicalname, java.lang.String jobidStepid) throws BatchContainerDataStreamException
Returns a BatchDataStream object for the Batch Data Stream identified by its logical name and the id of the job and step with which it is associated. The id is composed of the jobid and stepid, separated by a forward slash. The helper class JobStepID whose constructor accepts a jobid and stepid creates an id in the required format. This method is called by a Batch Step EJB to get a handle to the Batch Data Stream implementation and to read/write data to that stream.- Parameters:
logicalname
- logical name of the Batch Data StreamjobidStepid
- id composed of the jobid and stepid, separated by a forward slash (e.g. PostingsSampleEar:181/Step1)- Returns:
- The BatchDataStream implementation for the Batch Data Stream identified by the the logical name and jobid stepid combination.
- Throws:
BatchContainerDataStreamException
- if an error is encountered retrieving the BatchDataStream object
-
getBatchDataStream
public static BatchDataStream getBatchDataStream(com.ibm.ws.longrun.CGJob job, java.lang.String logicalname, java.lang.String jobidStepid) throws BatchContainerDataStreamException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
-