|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.scheduler.runtime.Job
public class Job
This object represents a job. A job is an instance of a job definition and runs once. It is considered a new job if the job is restarted.
| Constructor Summary | |
|---|---|
Job()
Deprecated. Please use Job(JobID, JobDefinitionID, SchedulerID, String, JobStatus, Date, Date, Date, String, short, String, JobID, String, boolean, int, SchedulerTaskID) instead |
|
Job(JobID id,
JobDefinitionID defID,
SchedulerID schedID,
String name,
JobStatus status,
Date startDate,
Date endDate,
Date submitTime,
String node,
short returnCode,
String userID,
JobID parent,
String vendorData,
boolean cancelRequest,
int retentionPeriod)
Deprecated. Please use Job(JobID, JobDefinitionID, SchedulerID, String, JobStatus, Date, Date, Date, String, short, String, JobID, String, boolean, int, SchedulerTaskID) instead |
|
Job(JobID id,
JobDefinitionID defID,
SchedulerID schedID,
String name,
JobStatus status,
Date startDate,
Date endDate,
Date submitTime,
String node,
short returnCode,
String userID,
JobID parent,
String vendorData,
boolean cancelRequest,
int retentionPeriod,
SchedulerTaskID schedTaskID)
Create a new job object from the parameters provided. |
|
Job(JobID id,
JobDefinitionID defID,
SchedulerID schedID,
String name,
JobStatus status,
Date startDate,
Date endDate,
Date submitTime,
String node,
short returnCode,
String userID,
JobID parent,
String vendorData,
boolean cancelRequest,
int retentionPeriod,
SchedulerTaskID schedTaskID,
long cpuTime,
long memoryAllocation)
Create a new job object from the parameters provided. |
|
| Method Summary | |
|---|---|
boolean |
getCancelRequest()
|
long |
getCPUTime()
Returns the CPU time required to run this job. |
Date |
getEndDate()
Returns the date when this job finished |
JobID |
getId()
Get the job id (unique identifier). |
JobDefinitionID |
getJobDefinitionId()
|
JobStatus |
getJobStatus()
Get the status. |
long |
getMemoryAllocation()
Returns the overall memory allocated by this job. |
String |
getName()
Get the name of the job definition. |
String |
getNode()
Get the node which executes or has execute this job |
JobID |
getParent()
Get the parent job, or null if it has no parent. |
int |
getRetentionPeriod()
|
short |
getReturnCode()
Get the return code of this job. |
SchedulerID |
getScheduler()
Returns the name of the scheduler which controls this job. |
SchedulerTaskID |
getSchedulerTaskId()
|
Date |
getStartDate()
Returns the start date of this job. |
Date |
getSubmitDate()
date when this job was submitted |
String |
getUser()
User id which is used to run this job |
String |
getVendorData()
|
void |
setCancelRequest(boolean value)
Deprecated. use the constructor |
void |
setEndDate(Date end)
Deprecated. use the constructor |
void |
setId(JobID id)
Deprecated. use the constructor |
void |
setJobDefinitionId(JobDefinitionID id)
Deprecated. use the constructor |
void |
setJobStatus(JobStatus jobStatus)
Deprecated. use the constructor |
void |
setName(String name)
Deprecated. use the constructor |
void |
setNode(String node)
Deprecated. use the constructor |
void |
setParent(JobID parent)
Deprecated. use the constructor |
void |
setReturnCode(short returnCode)
Deprecated. use the constructor |
void |
setScheduler(SchedulerID scheduler)
Deprecated. use the constructor |
void |
setStartDate(Date startDate)
Deprecated. use the constructor |
void |
setSubmitDate(Date date)
Deprecated. use the constructor |
void |
setUser(String userId)
Deprecated. use the constructor |
void |
setVendorData(String value)
Deprecated. use the constructor |
String |
toFormattedString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Job(JobID id,
JobDefinitionID defID,
SchedulerID schedID,
String name,
JobStatus status,
Date startDate,
Date endDate,
Date submitTime,
String node,
short returnCode,
String userID,
JobID parent,
String vendorData,
boolean cancelRequest,
int retentionPeriod)
Job(JobID, JobDefinitionID, SchedulerID, String, JobStatus, Date, Date, Date, String, short, String, JobID, String, boolean, int, SchedulerTaskID) instead
public Job(JobID id,
JobDefinitionID defID,
SchedulerID schedID,
String name,
JobStatus status,
Date startDate,
Date endDate,
Date submitTime,
String node,
short returnCode,
String userID,
JobID parent,
String vendorData,
boolean cancelRequest,
int retentionPeriod,
SchedulerTaskID schedTaskID)
id - id of the jobdefID - id of the job definitionschedID - id of the scheduler that triggered this jobname - name of this jobstatus - current status of the jobstartDate - date when the job was startedendDate - date when the job endedsubmitTime - date when the job was submittednode - node where this job is runningreturnCode - return code of the jobuserID - user which was used to run this jobparent - parent job (if any)vendorData - vendor specific datacancelRequest - indicates whether there is a cancel request for this jobretentionPeriod - time this record will be kept after the job has endedschedTaskID - task id from which this job was scheduled
public Job(JobID id,
JobDefinitionID defID,
SchedulerID schedID,
String name,
JobStatus status,
Date startDate,
Date endDate,
Date submitTime,
String node,
short returnCode,
String userID,
JobID parent,
String vendorData,
boolean cancelRequest,
int retentionPeriod,
SchedulerTaskID schedTaskID,
long cpuTime,
long memoryAllocation)
id - id of the jobdefID - id of the job definitionschedID - id of the scheduler that triggered this jobname - name of this jobstatus - current status of the jobstartDate - date when the job was startedendDate - date when the job endedsubmitTime - date when the job was submittednode - node where this job is runningreturnCode - return code of the jobuserID - user which was used to run this jobparent - parent job (if any)vendorData - vendor specific datacancelRequest - indicates whether there is a cancel request for this jobretentionPeriod - time this record will be kept after the job has endedschedTaskID - task id from which this job was scheduledcpuTime - CPU time for this jobmemoryAllocation - memory allocated by this jobpublic Job()
Job(JobID, JobDefinitionID, SchedulerID, String, JobStatus, Date, Date, Date, String, short, String, JobID, String, boolean, int, SchedulerTaskID) instead
| Method Detail |
|---|
public JobID getId()
public void setId(JobID id)
public JobStatus getJobStatus()
public void setJobStatus(JobStatus jobStatus)
public String getNode()
public void setNode(String node)
public JobID getParent()
public void setParent(JobID parent)
public short getReturnCode()
public void setReturnCode(short returnCode)
public SchedulerID getScheduler()
public void setScheduler(SchedulerID scheduler)
public Date getStartDate()
public void setStartDate(Date startDate)
public Date getEndDate()
public void setEndDate(Date end)
public Date getSubmitDate()
public void setSubmitDate(Date date)
public String getUser()
public void setUser(String userId)
public JobDefinitionID getJobDefinitionId()
public void setJobDefinitionId(JobDefinitionID id)
public String getName()
public void setName(String name)
public String getVendorData()
public void setVendorData(String value)
public void setCancelRequest(boolean value)
public boolean getCancelRequest()
public int getRetentionPeriod()
public SchedulerTaskID getSchedulerTaskId()
public long getCPUTime()
public long getMemoryAllocation()
public String toFormattedString()
| Access Rights |
|---|
| SC | DC |
|---|---|
[sap.com] ENGFACADE
|
[sap.com] tc/je/scheduler/api
|
|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||