com.ibm.websphere.batch

Class BatchDataStreamMgr

  1. java.lang.Object
  2. extended bycom.ibm.websphere.batch.BatchDataStreamMgr

  1. public class BatchDataStreamMgr
  2. extends java.lang.Object
This api enables a Batch Step EJB to retrieve a handle to a Batch Data Stream at runtime.

Constructor Summary

Modifier Constructor and Description
  1. protected
BatchDataStreamMgr()

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
clone()
  1. static
  2. BatchDataStream
getBatchDataStream(com.ibm.ws.longrun.CGJob job,java.lang.String logicalname,java.lang.String jobidStepid)
  1. static
  2. 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

  1. protected BatchDataStreamMgr()

Method Detail

getBatchDataStream

  1. public static BatchDataStream getBatchDataStream( java.lang.String logicalname,
  2. java.lang.String jobidStepid)
  3. 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

  1. public static BatchDataStream getBatchDataStream( com.ibm.ws.longrun.CGJob job,
  2. java.lang.String logicalname,
  3. java.lang.String jobidStepid)
  4. throws BatchContainerDataStreamException
Throws:

clone

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