com.protomatter.pas.cronmanager
Class PASCronManagerImpl
java.lang.Object
|
+--com.protomatter.pas.cronmanager.PASCronManagerImpl
- All Implemented Interfaces:
- PASCronManager, PASStartup
- public class PASCronManagerImpl
- extends java.lang.Object
- implements PASStartup, PASCronManager
The default implementation of the PASCronManager interface.
Reads the following startup options:
- numThreads
-
The number of worker threads to use for event processing. The
default is 5, which should be adequate, unless you are planning on
many, many cron entries. Remember that all these threads have to
do is scan the cron entries and submit events to the
PASEventManager for processing.
- See Also:
PASCronManager
Method Summary |
void |
addCronEntry(CronEntry entry)
Add an entry to the master list of cron entries. |
java.util.Vector |
listCronEntries()
Get the system's list of cron entries. |
void |
removeCronEntry(CronEntry entry)
Remove an entry from the master list of cron entries. |
java.lang.String |
startup(java.lang.String myName,
java.util.Properties pasProps,
java.util.Properties myProps,
javax.naming.Context context)
Start this thing up. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PASCronManagerImpl
public PASCronManagerImpl()
- Default constructor.
startup
public java.lang.String startup(java.lang.String myName,
java.util.Properties pasProps,
java.util.Properties myProps,
javax.naming.Context context)
throws StartupException
- Description copied from interface:
PASStartup
- Start this thing up.
- Specified by:
startup
in interface PASStartup
- See Also:
PASStartup
addCronEntry
public void addCronEntry(CronEntry entry)
- Description copied from interface:
PASCronManager
- Add an entry to the master list of cron entries.
- Specified by:
addCronEntry
in interface PASCronManager
- See Also:
PASCronManager
removeCronEntry
public void removeCronEntry(CronEntry entry)
- Description copied from interface:
PASCronManager
- Remove an entry from the master list of cron entries.
- Specified by:
removeCronEntry
in interface PASCronManager
- See Also:
PASCronManager
listCronEntries
public java.util.Vector listCronEntries()
- Description copied from interface:
PASCronManager
- Get the system's list of cron entries.
- Specified by:
listCronEntries
in interface PASCronManager
- See Also:
PASCronManager