|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The scheduler service for the WCM.
Copyright 2004 SAP AG
| Field Summary | |
static java.lang.String |
SCHEDULER_SERVICE
identifier for Scheduler-Service |
| Method Summary | |
ISchedulerEntry |
addSchedulerEntry(ISchedulerEntry entry)
Deprecated. since EP6.0SP1: new scheduler tasks are already added to the scheduler |
ISchedulerEntry |
createSchedulerEntry(java.lang.String entryID,
int priority,
ISchedulerTask task,
ISchedulerTimeTable timetable,
ISystemList systemList,
java.util.Properties properties)
Register an ISchedulerTask to the scheduler as a new
ISchedulerEntry. |
ISchedulerEntry |
createSchedulerEntry(java.lang.String entryID,
int priority,
ISchedulerTask task,
ISchedulerTimeTable timetable,
java.util.Properties properties)
Register an ISchedulerTask to the scheduler as a new ISchedulerEntry.
|
ISequence |
createSequence(java.lang.String id)
Creates and registers a new task sequence. |
ISchedulerTimeTable |
createTimeTable()
Create an (empty) time table. |
ISchedulerTime |
createTimeWildcard()
Get a scheduler time for the current time. |
ISchedulerEntry |
deleteSchedulerEntry(ISchedulerEntry entry)
Deregister an ISchedulerEntry from the scheduler. |
ISequence |
deleteSequence(ISequence sequence)
Removes a sequence from the scheduler |
ISchedulerEntryList |
getAllSchedulerEntries()
Deprecated. since KM 5.0 SP6. Returns an empty list. |
ISchedulerEntry[] |
getLocalSchedulerEntries()
Returns all scheduler entries to be performed on system.
|
ISchedulerEntry[] |
getSchedulerEntries()
Returns all scheduler entries of the cluster. |
ISchedulerEntry |
getSchedulerEntry(java.lang.String entryID)
Get an ISchedulerEntry by ID. |
ISchedulerEntryFactory |
getSchedulerEntryFactory()
Deprecated. since KM5.0SP6 |
ISequence |
getSequence(java.lang.String id)
Returns a registered sequence or null if the sequence does not exist. |
ISequence[] |
getSequences()
Returns all registered sequences. |
ISequence[] |
getSequences(ISchedulerEntry entry)
Returns all sequences that contain the entry or an empty array if
the entry does not belong to a sequence or the entry is not registered on the the scheduler service. |
ISchedulerEntry |
resumeSchedulerEntryTask(ISchedulerEntry entry)
Resume an ISchedulerEntry (activate it from suspended). |
ISchedulerEntry |
suspendSchedulerEntryTask(ISchedulerEntry entry)
Suspend an ISchedulerEntry (inactivate it). |
ISchedulerEntry |
updateSchedulerEntry(ISchedulerEntry entry)
Deprecated. since EP6.0SP1 |
| Methods inherited from interface com.sapportals.wcm.service.IService |
getDescription, getDescription, getID |
| Field Detail |
public static final java.lang.String SCHEDULER_SERVICE
| Method Detail |
public ISchedulerEntry createSchedulerEntry(java.lang.String entryID,
int priority,
ISchedulerTask task,
ISchedulerTimeTable timetable,
java.util.Properties properties)
throws WcmException
ISchedulerTask to the scheduler as a new ISchedulerEntry.
The returned scheudler entry will only be performed on the local system by default.entryID - a String with an alphanumerical unique id for the scheduler entry.priority - an int with the priority of the task
(0 is highest priority, negative values are mapped to
0, the higher the int value, the lower the
priority)task - a ISchedulerTask with the task to execute.timetable - a ISchedulerTimeTable with the timetable for
this task.properties - some Properties for this task.ISchedulerEntry with the newly created task entry.WcmException - if the scheduler entry could not be created (already exists or other error).
public ISchedulerEntry createSchedulerEntry(java.lang.String entryID,
int priority,
ISchedulerTask task,
ISchedulerTimeTable timetable,
ISystemList systemList,
java.util.Properties properties)
throws WcmException
ISchedulerTask to the scheduler as a new
ISchedulerEntry.entryID - a String with the alphanumerical unique id for the scheduler entry.priority - an int with the priority of the task
(0 is highest priority, negative values are mapped to
0, the higher the int value, the lower the
priority)task - a ISchedulerTask with the task to execute.timetable - a ISchedulerTimeTable with the timetable for
this task.properties - some Properties for this task.systemList - A list of systems to run onISchedulerEntry with the newly created task entry.WcmException - if the scheduler entry could not be created (already exists or other error).
public ISchedulerEntry getSchedulerEntry(java.lang.String entryID)
throws WcmException
ISchedulerEntry by ID.entryID - a String with the unique id of the entry to search for.ISchedulerEntry with the entry for the given ID
or null if not found.WcmException - if the scheduler entry could not be retrieved.
public ISchedulerEntry deleteSchedulerEntry(ISchedulerEntry entry)
throws WcmException
ISchedulerEntry from the scheduler.entry - a ISchedulerEntry with the entry to delete.ISchedulerEntry,
null if not found.WcmException - if the entry could not be deleted.
public ISchedulerEntry suspendSchedulerEntryTask(ISchedulerEntry entry)
throws WcmException
ISchedulerEntry (inactivate it).entry - the ISchedulerEntry to suspend.ISchedulerEntry with the suspended entry,
null if the entry's ID could not be found.WcmException - if the scheduler entry could not be suspended.
public ISchedulerEntry resumeSchedulerEntryTask(ISchedulerEntry entry)
throws WcmException
ISchedulerEntry (activate it from suspended).entry - the ISchedulerEntry to resume.ISchedulerEntry with the resumed entry,
null if the entry's ID could not be found.WcmException - if the scheduler entry could not be resumed.
public ISchedulerEntry[] getLocalSchedulerEntries()
throws WcmException
system.
If no local scheduler entries exist an empty array will returned.
public ISchedulerEntry[] getSchedulerEntries()
throws WcmException
getLocalSchedulerEntries().
If no scheduler entries exist an empty array will returned.
public ISequence createSequence(java.lang.String id)
throws WcmException
id - a String with the unique id of the sequence to create.ISchedulerEntry with the entry for the given IDWcmException - if the sequence could not be created.
public ISequence getSequence(java.lang.String id)
throws WcmException
null if the sequence does not exist.id - a String with the unique id of the sequence to search for.ISchedulerEntry with the entry for the given IDWcmException - if the sequence could not be retrieved.
public ISequence[] getSequences()
throws WcmException
public ISequence deleteSequence(ISequence sequence)
throws WcmException
sequence - The sequence to removenull if the sequnence was not registered.WcmException - if the sequence could not be deleted.
public ISequence[] getSequences(ISchedulerEntry entry)
throws WcmException
entry or an empty array if
the entry does not belong to a sequence or the entry is not registered on the the scheduler service.entry - The entry for which to look up the sequencesentry or an empty array if
the entry does not belong to a sequence or the entry is not registered on the the scheduler service.WcmException - if the sequences could not be retrieved.
public ISchedulerTimeTable createTimeTable()
throws WcmException
ISchedulerTimeTable.WcmException - if the time table cannot be created.
public ISchedulerTime createTimeWildcard()
throws WcmException
ISchedulerTime.WcmException - if the time cannot be created.public ISchedulerEntryFactory getSchedulerEntryFactory()
ISchedulerEntry
objects without registering them.
public ISchedulerEntry updateSchedulerEntry(ISchedulerEntry entry)
throws WcmException
ISchedulerEntry in the scheduler's list.entry - a ISchedulerEntry with new attributes.ISchedulerEntry with the update attributes or
null if the entry's ID could not be found.WcmException - if the scheduler entry could not be updated.
public ISchedulerEntry addSchedulerEntry(ISchedulerEntry entry)
throws WcmException
entry - The feature to be added to the SchedulerEntry attributeWcmException - Description of the Exception
public ISchedulerEntryList getAllSchedulerEntries()
throws WcmException
ISchedulerEntryList with all known scheduler entries.WcmException - if the list of scheduler entries could not be retrieved.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||