|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.openeai.OpenEaiObject
|
+--org.openeai.config.EnterpriseConfigurationObjectImpl
|
+--org.openeai.config.ScheduleConfig
A ScheduleConfig is a wrapper class that takes information stored in an OpenEAI Deployment document (Schedule Element) and stores it in a Java object. Then the configuration object is passed to the constructor of the OpenEAI Schedule objects and they are able to configure themselves with the information found in the config object.
Configuration Parameters:
These are the configuration parameters specified by the Schedule Element in the Deployment document. NOTE: Like all other OpenEAI configuration objects, there is a "container" level associated to Schedule elements. Many Elements and attributes are required at the container level and may be optionally overridden at this level. This is to avoid having to enter redundant information in the Deployment document if all (or most) Schedule objects being configured should use the same configuration information. Therefore, many of the Schedule configuration parameters are optional at this level but required at the "container" level. Where this is the case, it will be indicated by an "*".
| Name | Required | Description |
|---|---|---|
| name | yes | Name of the Schedule being configured. This should be unique. |
| isImmediate (true | false) | no* | This flag indicates weather or not the ScheduledCommands associated to this Schedule should be executed immediately when the ScheduledApp awakes from its sleepInterval rather than using a "RunTime" to determine when the Schedule should be processed. If this is true, when the ScheduledApp wakes up, it will execute all ScheduledCommands associated to this Schedule. If it is false, the ScheduledApp will determine when/if the ScheduledCommands associated to this Schedule should be executed based on the Runtime associated to the Schedule. |
| runMechanism (Thread | SubProcess) | no* | This parameter indicates how the ScheduledCommands associated to this Schedule should be executed. If "Thread" is specified, the ScheduledCommands will be executed by adding them to the ThreadPool associated to the ScheduledApp. NOTE: Currently, only a runMechansim of "Thread" is supported. In the future, if "SubProcess" is specified a new VM will be started and the ScheduledCommand will be executed in that SubProcess. |
| ObjectClass | yes | Name of the Java object that will be instantiated with this Config class (currently, org.openeai.afa.Schedule) |
| RunTime | no | If the 'isImmediate' parameter is false, this Element specifies on what day(s) and
at what time(s) the ScheduledCommands associated to this Schedule should be executed.
If isImmediate is true, this information is ignored. Days are specified as follows:
|
| Commands | yes | Provides configuration information for the ScheduledCommands associated to this Schedule. The ScheduledCommands use these CommandConfig objects to initialize themselves so they're ready to be executed when this Schedule is met. |
Schedule,
ScheduleRuntime,
ScheduledCommand,
CommandConfig,
ScheduledAppConfig| Field Summary |
| Fields inherited from class org.openeai.OpenEaiObject |
logger |
| Constructor Summary | |
ScheduleConfig()
This is the constructor used by AppConfig to instantiate the config object. |
|
ScheduleConfig(org.jdom.Element configElement)
|
|
| Method Summary | |
void |
addCommandConfig(java.lang.String name,
CommandConfig cConfig)
This method adds a ScheduledCommand's configuration object to the list of CommandConfigs that this Schedule needs to initialize all the ScheduledCommands that it must execute. |
java.lang.String |
getClassName()
Ths method returns the class name that will be the Schedule implementation. |
CommandConfig |
getCommandConfig(java.lang.String name)
Returns a CommandConfig object for the specified ScheduledCommand name. |
java.util.HashMap |
getCommandConfigs()
This method returns a list of all CommandConfig objects associated to this Schedule. |
org.jdom.Element |
getDefaultParms()
Returns the default paramaters associated to this Schedule as specified in the "Schedules" Configuration Element (the container) in the application's config document. |
java.lang.String |
getName()
This method returns the name that will be associated to the Schedule as specified in the deployment document. |
java.util.ArrayList |
getScheduleRuntimes()
Returns the list of ScheduleRuntime objects that will be associated to the Schedule being configured with this configuration object. |
void |
init(org.jdom.Element configElement)
Implements the init(Element) method that all EnterpriseConfiguration objects must implement. |
boolean |
isImmediate()
Returns a flag indicating whether or not the Schedule being configured will be an "immediate" schedule. |
void |
setClassName(java.lang.String className)
Ths method sets the class name that will be the Schedule implementation. |
void |
setDefaultParms(org.jdom.Element eDefaultParms)
Sets the default paramaters associated to this Schedule as specified in the "Schedules" Configuration Element (the container) in the application's config document. |
void |
setName(java.lang.String name)
This method sets the name that will be associated to the Schedule as specified in the deployment document. |
| Methods inherited from class org.openeai.config.EnterpriseConfigurationObjectImpl |
addProperty, getAppName, getConfigDoc, getConfigElementByAttributeValue, getElementByAttributeValue, getType, getValidation, setAppName, setConfigDoc, setType, setValidation |
| Methods inherited from class org.openeai.OpenEaiObject |
addLog4jProperty, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openeai.config.EnterpriseConfigurationObject |
getAppName, getProperties, setAppName |
| Constructor Detail |
public ScheduleConfig()
public ScheduleConfig(org.jdom.Element configElement)
throws EnterpriseConfigurationObjectException
| Method Detail |
public void setDefaultParms(org.jdom.Element eDefaultParms)
These default parameters are built from the "container" level configuration component in the config document (Schedules). This is to allow "default" configuration information to be specified for all Schedules that exist within this container. If needed a particular Schedule can override these default parameters. Otherwise the default parameters are used. This way, duplicate configuration information does not have to be specified for each Schedule.
public org.jdom.Element getDefaultParms()
These default parameters are built from the "container" level configuration component in the config document (Schedules). This is to allow "default" configuration information to be specified for all Schedules that exist within this container. If needed a particular Schedule can override these default parameters. Otherwise the default parameters are used. This way, duplicate configuration information does not have to be specified for each Schedule.
public void setName(java.lang.String name)
setName in class EnterpriseConfigurationObjectImplpublic java.lang.String getName()
getName in class EnterpriseConfigurationObjectImplpublic void setClassName(java.lang.String className)
public java.lang.String getClassName()
public java.util.HashMap getCommandConfigs()
Schedule,
ScheduledCommand
public void addCommandConfig(java.lang.String name,
CommandConfig cConfig)
ScheduledCommand,
CommandConfig,
Schedulepublic CommandConfig getCommandConfig(java.lang.String name)
public java.util.ArrayList getScheduleRuntimes()
Schedule,
ScheduleRuntimepublic boolean isImmediate()
Schedule
public void init(org.jdom.Element configElement)
throws EnterpriseConfigurationObjectException
init in interface EnterpriseConfigurationObjectEnterpriseConfigurationObjectException - if errors occur processing the configuration Element.Schedule,
ScheduledApp
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||