IBM WebSphere Application ServerTM
Release 7

com.ibm.websphere.batch
Class BatchDataStreamMgr

java.lang.Object
  extended by 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
protected BatchDataStreamMgr()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchDataStreamMgr

protected BatchDataStreamMgr()
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 Stream
jobidStepid - 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
Throws:
BatchContainerDataStreamException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

IBM WebSphere Application ServerTM
Release 7