Protomatter Classes v1.1.6

com.protomatter.pas.cron
Class PASCronManagerStartup

java.lang.Object
  |
  +--com.protomatter.pas.cron.PASCronManagerStartup
All Implemented Interfaces:
PASStartup

public class PASCronManagerStartup
extends java.lang.Object
implements PASStartup

A startup class for registering cron events via the PAS properties file. This startup class looks through the PAS properties file for entries that look like this:

  pas.cron.SYMBOLICNAME=\
     topics=TOPIC1;TOPIC2;...;TOPICN,\
     message=some text,\
     year=year-list,\
     month=month-list,\
     day=day-list,\
     weekday=weekday-list,\
     hour=hour-list,\
     minute=minute-list
  

And registers corresponding CronEntry objects with the PASCronManager.

The specified lists from above are:

The value of each of those lists can also be an asterisk (*), which tells the cron system to disregard the given list when determining if a cron entry applies to a specific time -- for instance setting the year-list to * would cause the system to not take the current year into consideration. If a given list is not specified at all, it's the same as specifying it and giving it a value of *.

When it comes time for the cron entry to be run, a PASEvent with the message as it's payload will be submitted to the PASEventManager's event topic tree, where interested objects can do something based on the event.

See Also:
PASCronManager, CronEntry, PASEvent

Constructor Summary
PASCronManagerStartup()
          Default constructor.
 
Method Summary
 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
 

Constructor Detail

PASCronManagerStartup

public PASCronManagerStartup()
Default constructor.
Method Detail

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

Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6