|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.ftt.jes.util.core.JesJobUtil
public class JesJobUtil
Utility class for submitting jobs to JES.
| Field Summary | |
|---|---|
static String |
COPY_RIGHT
|
| Constructor Summary | |
|---|---|
JesJobUtil(IOSImage systemImage)
Creates a JesJobUtil instance for the specified system. |
|
| 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 ddName)
The same as IJESJobUtilExtension.getContents(String, String)
except returns a String. |
InputStream |
getJobContents(String jobId)
Return the contents of the spool data sets associated with the specified job. |
InputStream |
getJobContents(String jobId,
String ddName)
Return the contents of the spool data set associated with the specified stepname/ddname and job. |
List<String> |
getJobDDNames(String jobId)
Return a list containing the stepnames/ddnames identifying the spool data sets associated with a specific JES job. |
String |
getJobReturnCode(String jobId)
Get the return code for the job identified by jobId. |
boolean |
hasJobFinishedExecuting(String jobId)
Determines whether the job with the specified job id has finished execution. |
boolean |
isConnected()
Determines whether the system associated with this IJESJobUtil
instance is connected. |
String |
submit(Object resource)
Submits the specified resource to the system associated with this IJESJobUtil instance. |
| Field Detail |
|---|
public static final String COPY_RIGHT
| Constructor Detail |
|---|
public JesJobUtil(IOSImage systemImage)
systemImage - system associated with this utility instance| Method Detail |
|---|
public boolean isConnected()
IJESJobUtilIJESJobUtil
instance is connected.
isConnected in interface IJESJobUtiltrue if connected, false otherwisepublic boolean hasJobFinishedExecuting(String jobId)
IJESJobUtil
hasJobFinishedExecuting in interface IJESJobUtiljobId - the job id to check
true if the job has finished,
false if still running
public String submit(Object resource)
throws Exception
IJESJobUtilIJESJobUtil instance. The contents of the resource should be
JCL.
submit in interface IJESJobUtilresource - the resource object to be submitted; the resource can be a
data set member or a workstation file
null if the job id returned by the server is not
valid
Exception - if job submit fails
public InputStream getJobContents(String jobId)
throws OperationFailedException
IJESJobUtil
getJobContents in interface IJESJobUtiljobId - the job id whose contents are to be returned
OperationFailedException - if the job associated with job id cannot be found or if the
job has not finished executing
public InputStream getJobContents(String jobId,
String ddName)
throws OperationFailedException
IJESJobUtilThe 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).
getJobContents in interface IJESJobUtiljobId - the job id which identifies the JES job whose contents are to
be returnedddName - the stepname/ddname
OperationFailedException - if the job associated with jobId cannot be found or if the
job has not finished executing
public List<String> getJobDDNames(String jobId)
throws OperationFailedException
IJESJobUtilThe job is identified by the job id which is returned by submit().
The stepnames/ddnames are of the form STEPNAME.DDNAME, or simply DDNAME if no stepname applies.
getJobDDNames in interface IJESJobUtiljobId - the job id which identifies the JES job whose spool
data set DDNames are to be returned
OperationFailedException - if the job associated with jobId cannot be found or if the
job has not finished executing
public String getJobReturnCode(String jobId)
throws OperationFailedException
IJESJobUtil
U0000 = all OK
U0004 = minor errors or problems
U0008 = significant errors or problems
U0012 = major errors or problems, the results (e.g. files
or reports produced) should not be trusted.
U0016 = very serious problems, do not use the results!
getJobReturnCode in interface IJESJobUtiljobId - the Job Id whose return code is to be returned
OperationFailedException - if the job associated with jobId cannot be found or if the
job has not finished executing
public String getContentString(String jobId)
throws OperationFailedException
IJESJobUtilExtensionIJESJobUtilExtension.getContents(String) except returns
a String.
getContentString in interface IJESJobUtilExtensionOperationFailedException
public String getContentString(String jobId,
String ddName)
throws OperationFailedException
IJESJobUtilExtensionIJESJobUtilExtension.getContents(String, String)
except returns a String.
getContentString in interface IJESJobUtilExtensionOperationFailedException
public InputStream getContents(String jobId)
throws OperationFailedException
IJESJobUtilExtension
The same as IJESJobUtil.getJobContents(String) except contents
are returned in the default workbench encoding.
getContents in interface IJESJobUtilExtensionjobId - the job id whose contents are to be returned
OperationFailedException - if the job associated with job id cannot be found or if the
job has not finished executing
public InputStream getContents(String jobId,
String stepnameDdname)
throws OperationFailedException
IJESJobUtilExtensionThe 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.
getContents in interface IJESJobUtilExtensionjobId - the job id which identifies the JES job whose contents are to
be returnedstepnameDdname - the stepname/ddname
OperationFailedException - if the job associated with jobId cannot be found or if the
job has not finished executing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||