|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.batch.AbstractApplication
com.rhi.architecture.batch.BatchApplication
A BatchApplication adds audit and configuration capabilities
to the standard application. It requires the following
properties to be set:
AuditAgent - This should be assigned to a
concrete AuditAgent class that should be used to perform auditing of the
batch process. ConfigMixin# - Any number of ConfigMixin's can be
loaded by the BatchApplication. However they need to follow these guidelines:
1) implement the ConfigMixin interface, 2) be listed in the order required,
where ConfigMixin0 is loaded first, and each increasing number is loaded in
order until a number is missing at which point all Mixin's are assumed to be
loaded, and the initialization process continues.
Field Summary |
Fields inherited from interface com.rhi.architecture.batch.Application |
FATAL_EXCEPTION, SUCCESS, SUCCESS_WITH_EXCEPTION |
Constructor Summary | |
BatchApplication()
default constructor |
Method Summary | |
void |
cleanup()
Perform any cleanup required by the application framework. |
protected abstract void |
doCleanup()
The doCleanup() method is expected to be overriden by concrete application classes to perform any required cleanup facilitating a graceful application shutdown. |
protected abstract void |
doInit()
The doInit() method is expected to be overriden by concrete application classes to perform any required initialization. |
AuditAgent |
getAuditAgent()
Return the audit agent to be used to perform audits. |
protected java.util.Properties |
getProperties()
Return the configuration information for this application as a Properties object. |
protected void |
init(java.lang.String[] args)
Perform BatchApplication initialization. |
protected boolean |
isAuditEnabled()
returns true if the batch application should initialize the audit agent class. |
Methods inherited from class com.rhi.architecture.batch.AbstractApplication |
execute, log, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BatchApplication()
Method Detail |
public final AuditAgent getAuditAgent()
protected final void init(java.lang.String[] args) throws InitializationException
init
in class AbstractApplication
args
- the commandline arguments. usually used for configuration
options.
InitializationException
- thrown when their is a problem configuring
the applicationprotected java.util.Properties getProperties()
public final void cleanup()
doCleanup()
abstract method to allow concrete application classes to
shutdown gracefully.
cleanup
in class AbstractApplication
protected abstract void doInit() throws InitializationException
InitializationException
- thrown if a problem occuring in the init
method of a sub-class.protected abstract void doCleanup()
protected boolean isAuditEnabled()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |