|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openeai.OpenEaiObject
org.openeai.afa.ScheduledCommandImpl
public class ScheduledCommandImpl
This is the parent class of all ScheduledCommands. These commands are Java components that are used to execute specific business logic associated to a given Schedule. It provides convenience methods for its decendants.
Schedule,
ScheduledCommand| Field Summary | |
|---|---|
static org.apache.log4j.Category |
logger
|
| Constructor Summary | |
|---|---|
ScheduledCommandImpl(CommandConfig cConfig)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
addAppConfig(AppConfig aConfig)
|
protected Error |
buildError(java.lang.String errType,
java.lang.String errNumber,
java.lang.String errDescription)
Builds a single Error object that can be added to the ArrayList of errors (or for any other reason) to pass to the publishSyncError method. |
AppConfig |
getAppConfig()
Get AppConfig associated to this command. |
protected java.util.Vector |
getAppConfigs()
|
protected org.jdom.Element |
getControlArea(org.jdom.Element root)
This method looks at the document and returns the appropriate ControlArea. |
protected boolean |
getInboundXmlValidation()
Get inbound xml validation. |
java.util.HashMap |
getMsgComponents()
Returns the HashMap that is a list of Messaging Components (gateways) that this command needs to know about. |
protected boolean |
getOutboundXmlValidation()
Get outbound xml validation. |
PubSubProducer |
getSyncErrorPublisher()
Get SyncErrorPublisher associated to this command. |
protected java.lang.String |
getSyncErrorSyncPrimedDocumentUri()
Returns the SyncErrorSync primed document that will be used if this ScheduledCommand needs to publish a Sync-Error-Sync messages if errors occur during the execution of the command. |
protected void |
publishSyncError(java.lang.String action,
java.util.List errors)
This method is used to publish a Sync-Error-Sync message when/if the ScheduledCommand has any errors during processing (during the 'execute' method). |
protected void |
publishSyncError(java.lang.String action,
java.util.List errors,
java.lang.Throwable e)
This method is used to publish a Sync-Error-Sync message when/if the ScheduledCommand has any errors during processing (during the 'execute' method). |
protected void |
setAppConfig(AppConfig aConfig)
Set AppConfig associated to this command. |
protected void |
setInboundXmlValidation(boolean validate)
Set inbound xml validation. |
void |
setMsgComponents(java.util.HashMap components)
Sets the HashMap that is a list of Messaging Components (gateways) that this command needs to know about. |
protected void |
setOutboundXmlValidation(boolean validate)
Set outbound xml validation. |
protected void |
setSyncErrorSyncPrimedDocumentUri(java.lang.String uri)
Sets the SyncErrorSync primed document that will be used if this ScheduledCommand needs to publish a Sync-Error-Sync messages if errors occur during the execution of the command. |
void |
shutdown()
|
| Methods inherited from class org.openeai.OpenEaiObject |
|---|
getAppName, getDebug, getFromAddr, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static org.apache.log4j.Category logger
| Constructor Detail |
|---|
public ScheduledCommandImpl(CommandConfig cConfig)
throws java.lang.InstantiationException
java.lang.InstantiationException| Method Detail |
|---|
protected void setInboundXmlValidation(boolean validate)
validate - booleanprotected boolean getInboundXmlValidation()
protected void setOutboundXmlValidation(boolean validate)
validate - protected boolean getOutboundXmlValidation()
public final PubSubProducer getSyncErrorPublisher()
protected void setAppConfig(AppConfig aConfig)
aConfig - public final AppConfig getAppConfig()
protected java.lang.String getSyncErrorSyncPrimedDocumentUri()
protected void setSyncErrorSyncPrimedDocumentUri(java.lang.String uri)
uri - String the document URI to the primed Sync-Error-Sync document
protected void publishSyncError(java.lang.String action,
java.util.List errors,
java.lang.Throwable e)
action - String the action being performed. If a 'null' action is passed in, 'Unknown' is used. This
will cause the Sync-Error-Sync document being published to be invalid because the list of actions
is constrained in SctSegments.
errors - java.util.List an ArrayList of org.openeai.moa.objects.Error objects that have
been built with the appropriate error number, error type and error descriptions.
e - Throwable an exception that has occurred in the ScheduledCommand. This exception will be added
to the list of errors passed in.
protected void publishSyncError(java.lang.String action,
java.util.List errors)
action - String the action being performed. If a 'null' action is passed in, 'Unknown' is used. This
will cause the Sync-Error-Sync document being published to be invalid because the list of actions
is constrained in SctSegments.
java.util.List - a List of org.openeai.moa.objects.Error objects that have
been built with the appropriate error number, error type and error descriptions.
protected Error buildError(java.lang.String errType,
java.lang.String errNumber,
java.lang.String errDescription)
errType - String error Type ('application' or 'system')errNumber - String error NumbererrDescription - String error Description
protected org.jdom.Element getControlArea(org.jdom.Element root)
root - org.jdom.Element the root element of the document
protected void addAppConfig(AppConfig aConfig)
protected java.util.Vector getAppConfigs()
public final void setMsgComponents(java.util.HashMap components)
components - HashMap a HashMap containing AppConfigs for end points of intrest to this command.
public final java.util.HashMap getMsgComponents()
public void shutdown()
throws ScheduledCommandException
ScheduledCommandException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||