public class TaurusJob extends java.lang.Object implements ITaurusJob
ITaurusJob.| Constructor and Description |
|---|
TaurusJob(java.lang.String pJobID)
Basic constructor.
|
TaurusJob(java.lang.String pJobID,
java.lang.String pCacheID)
Constructor for loading a job from cache.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
cancel(org.eclipse.core.runtime.IProgressMonitor pMon)
Cancels a running job.
|
boolean |
endedWithError()
Gets whether the job has finished with errors.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActionLabel()
Gets the label of the action which scheduled the job.
|
java.lang.String |
getCacheID()
Gets the cache ID of the job.
|
java.lang.String |
getCompletionCode()
Gets the job completion code (CC)
|
java.lang.String |
getCompletionInfo()
Gets the job completion info
|
java.io.InputStream |
getContents(org.eclipse.core.runtime.IProgressMonitor pMon)
Deprecated.
|
java.util.Date |
getCreationTimeStamp()
Gets the local (OS) time from when the job was created.
|
java.util.Date |
getEndTime()
Gets the job's end time.
|
IExecutionContext |
getExecutionContext()
Gets the execution context of the job.
|
java.util.Date |
getExecutionTime()
Gets the job's execution time.
|
java.lang.String |
getFullDsn()
Gets the job name and ID.
|
java.util.Date |
getInputTime()
Gets the job's input time.
|
java.lang.String |
getJobClass()
Gets the job class.
|
java.lang.String |
getJobID()
Gets the job ID.
|
java.lang.String |
getJobOutput(org.eclipse.core.runtime.IProgressMonitor pMon)
Gets the job output.
|
java.lang.String |
getName()
Gets the job name.
|
java.lang.String |
getOutParmDSN()
Gets the output parameter file name which the job will use to write down
output parameters when finished.
|
java.lang.String |
getOwner()
Gets the job owner user ID.
|
JobPhase |
getPhase()
Gets the job phase.
|
int |
getPosition()
Gets the job position.
|
int |
getPriority()
Gets the job priority.
|
IResource |
getResource()
Gets the resource where the job was executed from.
|
java.lang.String |
getReturnCode()
Gets the return code of the finished job.
|
EJobState |
getState()
Gets the job state.
|
ISystemImage |
getSystemImage()
Gets the system image to which the job belongs.
|
ToolDescriptor |
getToolDescr()
Gets the tool descriptor which caused the job execution.
|
java.lang.String |
getType()
Gets the JES job type.
|
int |
hashCode() |
boolean |
isFinished() |
void |
setActionLabel(java.lang.String pLabel)
Sets the action label of the job.
|
void |
setCacheID(java.lang.String pID)
Deprecated.
|
void |
setClass(java.lang.String pClass)
Sets the job class.
|
void |
setCompletionCode(java.lang.String pCC)
Sets the completion code
|
void |
setCompletionInfo(java.lang.String pCompletionInfo)
Sets the completion info (CC info)
|
void |
setCreationTimeStamp(java.util.Date pTimeStamp)
Sets the creation time stamp.
|
void |
setExecutionContext(IExecutionContext pContext)
Sets the execution context of the job.
|
void |
setJobID(java.lang.String pJobID)
Sets the job ID.
|
void |
setName(java.lang.String pName)
Sets the job name.
|
void |
setOutParmDSN(java.lang.String pOutputParmDSN)
Sets the output parameter file name which the job will use to write down
output parameters when finished.
|
void |
setOwner(java.lang.String pOwner)
Sets the job owner user ID.
|
void |
setPhase(JobPhase pPhase)
Sets the job phase.
|
void |
setPos(int pPos)
Sets the job position.
|
void |
setPriority(int pPriority)
Sets the job priority.
|
void |
setResource(IResource pResource)
Sets the resource where the job was executed from.
|
void |
setReturnCode(java.lang.String pCode)
Sets the return code of the job.
|
void |
setState(EJobState pStatus)
Sets the job state.
|
void |
setToolDescr(ToolDescriptor pDescr)
Sets the tool descriptor which caused the job execution.
|
void |
setType(java.lang.String pType)
Sets the job type.
|
void |
waitForJob()
Starts an eclipse background job waiting for the end of a TAURUS job
executing on the corresponding remote system.
|
public TaurusJob(java.lang.String pJobID)
pJobID - the ID of the actual jobpublic TaurusJob(java.lang.String pJobID,
java.lang.String pCacheID)
pJobID - the ID of the actual jobpCacheID - the cache IDpublic void waitForJob()
throws TaurusCoreException
ITaurusJobwaitForJob in interface ITaurusJobTaurusCoreException - if an exception occurs while waiting for the job to finishpublic java.lang.String getJobID()
IJobpublic IResource getResource()
ITaurusJobgetResource in interface ITaurusJobnullpublic void setResource(IResource pResource)
ITaurusJobsetResource in interface ITaurusJobpResource - the new context resourcepublic ToolDescriptor getToolDescr()
ITaurusJobgetToolDescr in interface ITaurusJobpublic void setToolDescr(ToolDescriptor pDescr)
ITaurusJobsetToolDescr in interface ITaurusJobpDescr - the new tool descriptorpublic void setState(EJobState pStatus)
IJobpublic java.lang.String getReturnCode()
ITaurusJobgetReturnCode in interface ITaurusJobnull if the job has never
finished properly or the return code has not been setpublic void setReturnCode(java.lang.String pCode)
ITaurusJobsetReturnCode in interface ITaurusJobpCode - the new return codepublic java.lang.String getCacheID()
ITaurusJobgetCacheID in interface ITaurusJob@Deprecated public void setCacheID(java.lang.String pID)
ITaurusJobsetCacheID in interface ITaurusJobpID - the new cache IDpublic java.lang.String getActionLabel()
ITaurusJobgetActionLabel in interface ITaurusJobpublic void setActionLabel(java.lang.String pLabel)
ITaurusJobsetActionLabel in interface ITaurusJobpLabel - the new action labelpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic IExecutionContext getExecutionContext()
ITaurusJobgetExecutionContext in interface ITaurusJobpublic void setExecutionContext(IExecutionContext pContext)
ITaurusJobsetExecutionContext in interface ITaurusJobpContext - the new execution contextpublic java.lang.String getOutParmDSN()
ITaurusJobgetOutParmDSN in interface ITaurusJobpublic void setOutParmDSN(java.lang.String pOutputParmDSN)
ITaurusJobsetOutParmDSN in interface ITaurusJobpOutputParmDSN - the new output parameter file namepublic ISystemImage getSystemImage()
IJobgetSystemImage in interface IJobpublic java.lang.String getName()
IJobpublic java.lang.String getFullDsn()
IJobgetFullDsn in interface IJobpublic java.lang.String getOwner()
IJobpublic java.lang.String getType()
IJobpublic java.lang.String getJobClass()
IJobgetJobClass in interface IJobpublic java.lang.String getCompletionCode()
IJobgetCompletionCode in interface IJobpublic java.lang.String getCompletionInfo()
IJobgetCompletionInfo in interface IJobpublic int getPriority()
IJobgetPriority in interface IJobpublic int getPosition()
IJobgetPosition in interface IJobpublic void setOwner(java.lang.String pOwner)
IJobpublic void setType(java.lang.String pType)
IJobpublic void setClass(java.lang.String pClass)
IJobpublic void setPriority(int pPriority)
IJobsetPriority in interface IJobpPriority - the priority to setpublic void setPos(int pPos)
IJobpublic void setPhase(JobPhase pPhase)
IJobpublic boolean endedWithError()
IJobendedWithError in interface IJobtrue if the job has finished with errors,
false if it hasn't finished, or finished without
errorspublic boolean isFinished()
isFinished in interface IJobtrue if the job is finished (possibly with errors)public java.lang.String cancel(org.eclipse.core.runtime.IProgressMonitor pMon)
throws java.lang.Exception
IJob@Deprecated
public java.io.InputStream getContents(org.eclipse.core.runtime.IProgressMonitor pMon)
throws java.lang.Exception
IJobgetContents in interface IJobpMon - progress monitorjava.lang.Exception - if getting the job output failedpublic void setCompletionCode(java.lang.String pCC)
IJobsetCompletionCode in interface IJobpCC - the completion code to setpublic void setCompletionInfo(java.lang.String pCompletionInfo)
IJobsetCompletionInfo in interface IJobpCompletionInfo - the completion info to setpublic void setName(java.lang.String pName)
IJobpublic void setJobID(java.lang.String pJobID)
IJobsetJobID in interface ITaurusJobsetJobID in interface IJobpJobID - the job ID to setpublic void setCreationTimeStamp(java.util.Date pTimeStamp)
ITaurusJobsetCreationTimeStamp in interface ITaurusJobpTimeStamp - the new local time stampITaurusJob.getCreationTimeStamp()public java.util.Date getCreationTimeStamp()
ITaurusJobgetCreationTimeStamp in interface ITaurusJobpublic java.lang.String getJobOutput(org.eclipse.core.runtime.IProgressMonitor pMon)
throws java.io.IOException
IJobgetJobOutput in interface IJobpMon - progress monitorjava.io.IOException - if getting the job output failedpublic java.util.Date getInputTime()
IJobgetInputTime in interface IJobnull if if wasn't set or returned by the serverpublic java.util.Date getExecutionTime()
IJobgetExecutionTime in interface IJobnull if if wasn't set or returned by the serverpublic java.util.Date getEndTime()
IJobgetEndTime in interface IJobnull if if wasn't set or returned by the serverCopyright © 2015 Micro Focus GmbH. All rights reserved.