SAP NetWeaver '04

com.sapportals.wcm.service.scheduler
Interface ISchedulerService

[contained in: com.sap.netweaver.bc.sf.service.par - bc.sf.service.scheduler_api.jar]
All Superinterfaces:
IService

public interface ISchedulerService
extends IService

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

SCHEDULER_SERVICE

public static final java.lang.String SCHEDULER_SERVICE
identifier for Scheduler-Service
Method Detail

createSchedulerEntry

public ISchedulerEntry createSchedulerEntry(java.lang.String entryID,
                                            int priority,
                                            ISchedulerTask task,
                                            ISchedulerTimeTable timetable,
                                            java.util.Properties properties)
                                     throws WcmException
Register an ISchedulerTask to the scheduler as a new ISchedulerEntry. The returned scheudler entry will only be performed on the local system by default.
Parameters:
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.
Returns:
a ISchedulerEntry with the newly created task entry.
Throws:
WcmException - if the scheduler entry could not be created (already exists or other error).

createSchedulerEntry

public ISchedulerEntry createSchedulerEntry(java.lang.String entryID,
                                            int priority,
                                            ISchedulerTask task,
                                            ISchedulerTimeTable timetable,
                                            ISystemList systemList,
                                            java.util.Properties properties)
                                     throws WcmException
Register an ISchedulerTask to the scheduler as a new ISchedulerEntry.
Parameters:
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 on
Returns:
a ISchedulerEntry with the newly created task entry.
Throws:
WcmException - if the scheduler entry could not be created (already exists or other error).

getSchedulerEntry

public ISchedulerEntry getSchedulerEntry(java.lang.String entryID)
                                  throws WcmException
Get an ISchedulerEntry by ID.
Parameters:
entryID - a String with the unique id of the entry to search for.
Returns:
a ISchedulerEntry with the entry for the given ID or null if not found.
Throws:
WcmException - if the scheduler entry could not be retrieved.

deleteSchedulerEntry

public ISchedulerEntry deleteSchedulerEntry(ISchedulerEntry entry)
                                     throws WcmException
Deregister an ISchedulerEntry from the scheduler.
Parameters:
entry - a ISchedulerEntry with the entry to delete.
Returns:
the deleted ISchedulerEntry, null if not found.
Throws:
WcmException - if the entry could not be deleted.

suspendSchedulerEntryTask

public ISchedulerEntry suspendSchedulerEntryTask(ISchedulerEntry entry)
                                          throws WcmException
Suspend an ISchedulerEntry (inactivate it).
Parameters:
entry - the ISchedulerEntry to suspend.
Returns:
the ISchedulerEntry with the suspended entry, null if the entry's ID could not be found.
Throws:
WcmException - if the scheduler entry could not be suspended.

resumeSchedulerEntryTask

public ISchedulerEntry resumeSchedulerEntryTask(ISchedulerEntry entry)
                                         throws WcmException
Resume an ISchedulerEntry (activate it from suspended).
Parameters:
entry - the ISchedulerEntry to resume.
Returns:
the ISchedulerEntry with the resumed entry, null if the entry's ID could not be found.
Throws:
WcmException - if the scheduler entry could not be resumed.

getLocalSchedulerEntries

public ISchedulerEntry[] getLocalSchedulerEntries()
                                           throws WcmException
Returns all scheduler entries to be performed on system. If no local scheduler entries exist an empty array will returned.
Returns:
The local scheduler entries.

getSchedulerEntries

public ISchedulerEntry[] getSchedulerEntries()
                                      throws WcmException
Returns all scheduler entries of the cluster. If cluster mode is disabled, this method is equivalent to getLocalSchedulerEntries(). If no scheduler entries exist an empty array will returned.
Returns:
The scheduler entries

createSequence

public ISequence createSequence(java.lang.String id)
                         throws WcmException
Creates and registers a new task sequence.
Parameters:
id - a String with the unique id of the sequence to create.
Returns:
a ISchedulerEntry with the entry for the given ID
Throws:
WcmException - if the sequence could not be created.

getSequence

public ISequence getSequence(java.lang.String id)
                      throws WcmException
Returns a registered sequence or null if the sequence does not exist.
Parameters:
id - a String with the unique id of the sequence to search for.
Returns:
a ISchedulerEntry with the entry for the given ID
Throws:
WcmException - if the sequence could not be retrieved.

getSequences

public ISequence[] getSequences()
                         throws WcmException
Returns all registered sequences.
Returns:
an array of all sequences registered on the scheduler service

deleteSequence

public ISequence deleteSequence(ISequence sequence)
                         throws WcmException
Removes a sequence from the scheduler
Parameters:
sequence - The sequence to remove
Returns:
The removed sequence or null if the sequnence was not registered.
Throws:
WcmException - if the sequence could not be deleted.

getSequences

public ISequence[] getSequences(ISchedulerEntry entry)
                         throws WcmException
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.
Parameters:
entry - The entry for which to look up the sequences
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.
Throws:
WcmException - if the sequences could not be retrieved.

createTimeTable

public ISchedulerTimeTable createTimeTable()
                                    throws WcmException
Create an (empty) time table.
Returns:
an empty ISchedulerTimeTable.
Throws:
WcmException - if the time table cannot be created.

createTimeWildcard

public ISchedulerTime createTimeWildcard()
                                  throws WcmException
Get a scheduler time for the current time.
Returns:
an ISchedulerTime.
Throws:
WcmException - if the time cannot be created.

getSchedulerEntryFactory

public ISchedulerEntryFactory getSchedulerEntryFactory()
Deprecated. since KM5.0SP6

Returns a factory implementation to create new ISchedulerEntry objects without registering them.
Returns:
The schedulerEntryFactory value

updateSchedulerEntry

public ISchedulerEntry updateSchedulerEntry(ISchedulerEntry entry)
                                     throws WcmException
Deprecated. since EP6.0SP1

Update an ISchedulerEntry in the scheduler's list.
Parameters:
entry - a ISchedulerEntry with new attributes.
Returns:
the ISchedulerEntry with the update attributes or null if the entry's ID could not be found.
Throws:
WcmException - if the scheduler entry could not be updated.

addSchedulerEntry

public ISchedulerEntry addSchedulerEntry(ISchedulerEntry entry)
                                  throws WcmException
Deprecated. since EP6.0SP1: new scheduler tasks are already added to the scheduler

Adds a scheduler entry to the scheduler.
Parameters:
entry - The feature to be added to the SchedulerEntry attribute
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

getAllSchedulerEntries

public ISchedulerEntryList getAllSchedulerEntries()
                                           throws WcmException
Deprecated. since KM 5.0 SP6. Returns an empty list.

Get a list of all scheduler entries to be performed on this system.
Returns:
a ISchedulerEntryList with all known scheduler entries.
Throws:
WcmException - if the list of scheduler entries could not be retrieved.

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.