|
SAP NetWeaver 7.4 (SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.scheduler.api.SchedulerTask
public class SchedulerTask
| Field Summary | |
|---|---|
protected String |
m_runAsUser
|
protected String |
m_schedulingUser
|
protected short |
m_taskSource
|
protected TaskStatus |
m_taskStatus
|
static short |
TASK_SOURCE_SCHEDULER_API
|
static short |
TASK_SOURCE_ZERO_ADMIN
|
protected Date |
timeSubmitted
|
| Constructor Summary | |
|---|---|
SchedulerTask(SchedulerTaskID taskId,
JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons)
Deprecated. - please use create-method instead Constructs a new |
|
SchedulerTask(SchedulerTaskID taskId,
JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons,
Filter[] filters,
int retentionPeriod)
Deprecated. - please use create-method instead Constrcuts a new |
|
SchedulerTask(SchedulerTaskID taskId,
JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons,
Filter[] filters,
int retentionPeriod,
String name,
String description,
String customData)
Deprecated. - please use create-method instead Constrcuts a new |
|
SchedulerTask(SchedulerTaskID taskId,
JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons,
String name,
String description)
Deprecated. - please use create-method instead Constrcuts a new |
|
SchedulerTask(SchedulerTaskID taskId,
JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons,
String name,
String description,
String customData)
Deprecated. - please use create-method instead Constrcuts a new |
|
| Method Summary | |
|---|---|
boolean |
compareSchedulerTask(SchedulerTask task)
Compares a SchedulerTask with this. |
static SchedulerTask |
createSchedulerTask(JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons,
Filter[] filters,
int retentionPeriod,
String name,
String description,
String customData)
Creates a new |
CronEntry[] |
getCronEntries()
|
String |
getCustomData()
|
String |
getDescription()
|
Filter[] |
getFilters()
Obtains the filters associated with this scheduler task. |
JobDefinitionID |
getJobDefinitionId()
Obtains the id of the job definition whose instances are triggered by this scheduler task |
JobParameter[] |
getJobParameters()
Obtains the parameters of this scheduler task. |
String |
getName()
|
RecurringEntry[] |
getRecurringEntries()
|
int |
getRetentionPeriod()
Obtains the retention period in days. |
String |
getRunAsUser()
|
String |
getSchedulingUser()
|
SchedulerTaskID |
getTaskId()
Obtains the id of this scheduler task |
short |
getTaskSource()
|
String |
getTaskSourceDescription()
|
TaskStatus |
getTaskStatus()
|
Date |
getTimeSubmitted()
|
void |
setSubmittedTime(Date timeSubmitted)
|
String |
toFormattedString()
Returns this SchedulerTask in a formatted way |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short TASK_SOURCE_SCHEDULER_API
public static final short TASK_SOURCE_ZERO_ADMIN
protected short m_taskSource
protected TaskStatus m_taskStatus
protected String m_schedulingUser
protected String m_runAsUser
protected Date timeSubmitted
| Constructor Detail |
|---|
public SchedulerTask(SchedulerTaskID taskId,
JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons)
taskId - -
id of this scheduler task. Can not be null.jobDefinitionId - -
Id of the job definition whose instances will be triggered by
this jobParameters - -
Parameters of the job. These should match the job parameter
definition in the job definition. The passed parameters are
not validated by this constructor. I.e. arbitrary
recs - -
recurring entriescrons - -
cron entries
NullPointerException - -
if
public SchedulerTask(SchedulerTaskID taskId,
JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons,
Filter[] filters,
int retentionPeriod)
taskId - -
Id of this scheduler task. Can not be null.jobDefinitionId - -
id of the job definition whose instances will be triggered by
this jobParameters - -
Parameters of the job. These should match the job parameter
definition in the job definition. The passed parameters are
not validated by this constructor. I.e. arbitrary
recs - -
recurring entriescrons - -
cron entriesfilters - -
A list of filters to filter out specific job expirations. Can
be null. If the passed parameter is not null then a copy of
the array is stored in the retentionPeriod - -
Number of days to keep the job log records after each job
execution. -2 means the default from the job definition -1
means infinity i.e. job log records are never deleted.
NullPointerException - -
thrown if IllegalArgumentException - -
thrown if
public SchedulerTask(SchedulerTaskID taskId,
JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons,
String name,
String description)
taskId - -
Id of this scheduler task. Can not be null.jobDefinitionId - -
id of the job definition whose instances will be triggered by
this jobParameters - -
Parameters of the job. These should match the job parameter
definition in the job definition. The passed parameters are
not validated by this constructor. I.e. arbitrary
recs - -
recurring entriescrons - -
cron entriesname - -
Name for this scheduler task. If not set, the name will be
taken from the job definitiondescription - -
Description for this task, e.g. "General backup job running
every Friday, do not skip". It can be null.
NullPointerException - -
thrown if IllegalArgumentException - -
thrown if
public SchedulerTask(SchedulerTaskID taskId,
JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons,
String name,
String description,
String customData)
taskId - -
Id of this scheduler task. Can not be null.jobDefinitionId - -
id of the job definition whose instances will be triggered by
this jobParameters - -
Parameters of the job. These should match the job parameter
definition in the job definition. The passed parameters are
not validated by this constructor. I.e. arbitrary
recs - -
recurring entriescrons - -
cron entriesname - -
Name for this scheduler task. If not set, the name will be
taken from the job definitiondescription - -
Description for this task, e.g. "General backup job running
every Friday, do not skip". It can be null.customData - -
String, can be used by an application to store application
dependent context data. Ignored by the job scheduler. It can
be null.
NullPointerException - -
thrown if IllegalArgumentException - -
thrown if
public SchedulerTask(SchedulerTaskID taskId,
JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons,
Filter[] filters,
int retentionPeriod,
String name,
String description,
String customData)
taskId - -
Id of this scheduler task. Can not be null.jobDefinitionId - -
id of the job definition whose instances will be triggered by
this jobParameters - -
Parameters of the job. These should match the job parameter
definition in the job definition. The passed parameters are
not validated by this constructor. I.e. arbitrary
recs - -
recurring entriescrons - -
cron entriesfilters - -
A list of filters to filter out specific job expirations. Can
be null. If the passed parameter is not null then a copy of
the array is stored in the retentionPeriod - -
Number of days to keep the job log records after each job
execution. -2 means the default from the job definition -1
means infinity i.e. job log records are never deleted.name - -
Name for this scheduler task. If not set, the name will be
taken from the job definitiondescription - -
Description for this task, e.g. "General backup job running
every Friday, do not skip". It can be null.customData - -
String, can be used by an application to store application
dependent context data. Ignored by the job scheduler. It can
be null.
NullPointerException - -
thrown if IllegalArgumentException - -
thrown if | Method Detail |
|---|
public static SchedulerTask createSchedulerTask(JobDefinitionID jobDefinitionId,
JobParameter[] jobParameters,
RecurringEntry[] recs,
CronEntry[] crons,
Filter[] filters,
int retentionPeriod,
String name,
String description,
String customData)
jobDefinitionId - -
id of the job definition whose instances will be triggered by
this jobParameters - -
Parameters of the job. These should match the job parameter
definition in the job definition. The passed parameters are
not validated by this constructor. I.e. arbitrary
recs - -
recurring entriescrons - -
cron entriesfilters - -
A list of filters to filter out specific job expirations. Can
be null. If the passed parameter is not null then a copy of
the array is stored in the retentionPeriod - -
Number of days to keep the job log records after each job
execution. -2 means the default from the job definition -1
means infinity i.e. job log records are never deleted.name - -
Name for this scheduler task. If not set, the name will be
taken from the job definitiondescription - -
Description for this task, e.g. "General backup job running
every Friday, do not skip". It can be null.customData - -
String, can be used by an application to store application
dependent context data. Ignored by the job scheduler. It can
be null.
NullPointerException - -
thrown if IllegalArgumentException - -
thrown if public int getRetentionPeriod()
public SchedulerTaskID getTaskId()
public JobDefinitionID getJobDefinitionId()
public JobParameter[] getJobParameters()
public Filter[] getFilters()
public RecurringEntry[] getRecurringEntries()
public CronEntry[] getCronEntries()
public String getCustomData()
public String getDescription()
public String getName()
public short getTaskSource()
public String getTaskSourceDescription()
public TaskStatus getTaskStatus()
public String getSchedulingUser()
public String getRunAsUser()
public Date getTimeSubmitted()
public void setSubmittedTime(Date timeSubmitted)
public boolean compareSchedulerTask(SchedulerTask task)
task - the SchedulerTask to compare
public String toFormattedString()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] ENGFACADE
|
[sap.com] tc/je/scheduler/api
|
api
|
BC-JAS
|
|
SAP NetWeaver 7.4 (SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||