com.ibm.ftt.jes.util.core
Interface IJESJobUtilExtension

All Superinterfaces:
IJESJobUtil
All Known Implementing Classes:
JesJobUtil

public interface IJESJobUtilExtension
extends IJESJobUtil

Job submission interface. Implementations of this interface can be used to submit jobs to the Job Entry Subsystem, and query their status.


Field Summary
 
Fields inherited from interface com.ibm.ftt.jes.util.core.IJESJobUtil
COPY_RIGHT
 
Method Summary
 InputStream getContents(String jobId)
          Return the contents of the spool data sets associated with the specified job.
 InputStream getContents(String jobId, String stepnameDdname)
          Return the contents of the spool data set associated with the specified stepname/ddname and job.
 String getContentString(String jobId)
          The same as IJESJobUtilExtension.getContents(String) except returns a String.
 String getContentString(String jobId, String stepnameDdname)
          The same as IJESJobUtilExtension.getContents(String, String) except returns a String.
 
Methods inherited from interface com.ibm.ftt.jes.util.core.IJESJobUtil
getJobContents, getJobContents, getJobDDNames, getJobReturnCode, hasJobFinishedExecuting, isConnected, submit
 

Method Detail

getContents

InputStream getContents(String jobId)
                        throws OperationFailedException
Return the contents of the spool data sets associated with the specified job. The job is identified by the job id which is returned by submit().

The same as IJESJobUtil.getJobContents(String) except contents are returned in the default workbench encoding.

Parameters:
jobId - the job id whose contents are to be returned
Returns:
the contents of the JES job spool data sets, or null if job contents are not available
Throws:
OperationFailedException - if the job associated with job id cannot be found or if the job has not finished executing

getContents

InputStream getContents(String jobId,
                        String stepnameDdname)
                        throws OperationFailedException
Return the contents of the spool data set associated with the specified stepname/ddname and job.

The job is identified by the job id which is returned by submit().

The stepname/ddname is of the form STEPNAME.DDNAME, or simply DDNAME if no stepname applies. This is the same form as returned by IJESJobUtil.getJobDDNames(String).

The same as IJESJobUtil.getJobContents(String, String) except contents are returned in the default workbench encoding.

Parameters:
jobId - the job id which identifies the JES job whose contents are to be returned
stepnameDdname - the stepname/ddname
Returns:
the contents of the JES job spool data set, or null if job output is not available
Throws:
OperationFailedException - if the job associated with jobId cannot be found or if the job has not finished executing

getContentString

String getContentString(String jobId)
                        throws OperationFailedException
The same as IJESJobUtilExtension.getContents(String) except returns a String.

Parameters:
jobId -
Returns:
the content, or null if contents are not available
Throws:
OperationFailedException

getContentString

String getContentString(String jobId,
                        String stepnameDdname)
                        throws OperationFailedException
The same as IJESJobUtilExtension.getContents(String, String) except returns a String.

Parameters:
jobId -
stepnameDdname -
Returns:
the content, or null if contents are not available
Throws:
OperationFailedException