Package com.compuware.api.topaz.jes
Interface IJob
-
public interface IJobA job in the Job Entry Subsystem (JES).The state of this job is a snapshot from the time it was retrieved from the host. In order to retrieve the current state of this job, it will need to be re-retrieved from the host.
Examples:
To retrieve a list of jobs matching a job name filter and/or an owner filter:IJESCommandProvider commandProvider = ... String jobNameFilter = ... String ownerFilter = ... // jobs will be empty if no jobs match the filters List<IJob> jobs = commandProvider.findJobs(jobNameFilter, ownerFilter);
To retrieve a list of jobs matching a job name filter and/or an owner filter with a JES limit:IJESCommandProvider commandProvider = ... String jobNameFilter = ... String ownerFilter = ... int jesLimit = ... // jobs will be empty if no jobs match the filters // the number of returned jobs will be limited by jesLimit List<IJob> jobs = commandProvider.findJobs(jobNameFilter, ownerFilter, jesLimit);To retrieve a list of jobs matching a job name filter and/or an owner filter on a specific JES queue:IJESCommandProvider commandProvider = ... String jobNameFilter = ... String ownerFilter = ... int jesLimit = ... boolean includePrintQueue = ... boolean includeExecutionQueue = ... // jobs will be empty if no jobs match the filters and JES queue // the number of returned jobs will be limited by jesLimit List<IJob> jobs = commandProvider.findJobs(jobNameFilter, ownerFilter, jesLimit, includePrintQueue, includeExecutionQueue);For examples on how to obtain anIJESCommandProviderseeIJESCommandProvider.
For examples on how to retrieve a job'sISysoutDataDefinitions seeISysoutDataDefinition.- Since:
- 2.2.0
- Version:
- 2.2.0
- See Also:
IJESCommandProvider,ISysoutDataDefinition- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ISysoutDataDefinition>fetchSysoutDataDefinitions()Retrieves the current list of sysout data definitions (DDs) for this job.StringgetActiveSystem()Returns the active system name for this jobStringgetAsidx()Retrieves the ASID of the job.DategetEndDate()Returns the date on which this job stopped executing.ExecutionStatusgetExecutionStatus()Returns the execution status of this job.StringgetID()Returns the ID of this job.IZOSHostConnectiongetIZOSHostConnection()Returns the IZOSHostConnection associated with this jobJESQueuegetJESQueue()Returns the JES queue of this job.StringgetJobClass()Returns the job class of this job.JobInfogetJobInfo()Returns a job information object that uniquely identifies this job.StringgetName()Returns the name of this job.StringgetOwner()Returns the owner of this job.StringgetProgrammerName()Returns the programmer name of this job, as specified in the job card.intgetQueuePosition()Returns the position of this job in the JES queue.StringgetReturnCode()Returns the return code of this job.DategetStartDate()Returns the date on which this job started executing.DategetSubmitDate()Returns the date on which this job was submitted.StringgetSystemName()Returns the name of the system this job executed or is executing on.booleanisBlockedByDuplicate()Returns the this job is blocked from execution by another job, executing with the same name.booleanisHeld()Returns the this job is being held.
-
-
-
Method Detail
-
getJobInfo
JobInfo getJobInfo()
Returns a job information object that uniquely identifies this job.This
JobInfoobject can be used in other methods as a "handle" to this job.- Returns:
- the job info
- Since:
- 2.2.0
-
getName
String getName()
Returns the name of this job.- Returns:
- the job name
- Since:
- 2.2.0
-
getID
String getID()
Returns the ID of this job.- Returns:
- the job ID
- Since:
- 2.2.0
-
getOwner
String getOwner()
Returns the owner of this job.- Returns:
- the owner
- Since:
- 2.2.0
-
getReturnCode
String getReturnCode()
Returns the return code of this job.- Returns:
- the return code
- Since:
- 2.2.0
-
getJobClass
String getJobClass()
Returns the job class of this job.- Returns:
- the job class
- Since:
- 2.2.0
-
getJESQueue
JESQueue getJESQueue()
Returns the JES queue of this job.- Returns:
- the JES queue
- Since:
- 2.2.0
-
getExecutionStatus
ExecutionStatus getExecutionStatus()
Returns the execution status of this job.- Returns:
- the execution status
- Since:
- 2.2.0
- See Also:
ExecutionStatus
-
isHeld
boolean isHeld()
Returns the this job is being held.This method returns
trueboth for jobs being held from execution and for jobs being held from output.- Returns:
trueif this job is being held, otherwisefalse- Since:
- 2.2.0
-
isBlockedByDuplicate
boolean isBlockedByDuplicate()
Returns the this job is blocked from execution by another job, executing with the same name.- Returns:
trueif this job is blocked, otherwisefalse- Since:
- 2.2.0
-
getSystemName
String getSystemName()
Returns the name of the system this job executed or is executing on.This method will return
nullif the job has not executed yet.- Returns:
- the system name or
nullif the job has not executed yet. - Since:
- 2.2.0
-
getActiveSystem
String getActiveSystem()
Returns the active system name for this jobThis method will return
nullif the job has not executed yet.- Returns:
- the active system name or
null - Since:
- 2.3.0
-
getQueuePosition
int getQueuePosition()
Returns the position of this job in the JES queue.- Returns:
- the queue position
- Since:
- 2.2.0
-
getProgrammerName
String getProgrammerName()
Returns the programmer name of this job, as specified in the job card.- Returns:
- the programmer name
- Since:
- 2.2.0
-
getSubmitDate
Date getSubmitDate()
Returns the date on which this job was submitted.- Returns:
- the submit date
- Since:
- 2.2.0
-
getStartDate
Date getStartDate()
Returns the date on which this job started executing.This method will return
nullif the job has not started yet.- Returns:
- the start date, or
nullif the job has not started yet - Since:
- 2.2.0
-
getEndDate
Date getEndDate()
Returns the date on which this job stopped executing.This method will return
nullif the job has not ended yet.- Returns:
- the end date, or
nullif the job has not ended yet - Since:
- 2.2.0
-
getAsidx
String getAsidx()
Retrieves the ASID of the job. This may be null.- Returns:
- the
Stringasid or null.
-
getIZOSHostConnection
IZOSHostConnection getIZOSHostConnection()
Returns the IZOSHostConnection associated with this job- Returns:
- the
IZOSHostConnection - Since:
- 2.2.0
-
fetchSysoutDataDefinitions
List<ISysoutDataDefinition> fetchSysoutDataDefinitions()
Retrieves the current list of sysout data definitions (DDs) for this job.- Returns:
- the sysout data definitions
- Throws:
ZOSSystemException- if a z/OS system error occursZOSAbendException- if a z/OS ABEND occurs- Since:
- 2.2.0
-
-