com.rhi.architecture.parc
Class PBApplication

java.lang.Object
  extended bycom.rhi.architecture.batch.AbstractApplication
      extended bycom.rhi.architecture.batch.BatchApplication
          extended bycom.rhi.architecture.parc.PBApplication
All Implemented Interfaces:
Application

public class PBApplication
extends BatchApplication

Process Based Application. Designed to support running multiple processes w/in the same application. These processes may fo

Since:
1.0
Author:
Pete McKinstry

Field Summary
static java.lang.String CYCLE_STATS
          the logger name to use when outputing performance statistics.
 
Fields inherited from interface com.rhi.architecture.batch.Application
FATAL_EXCEPTION, SUCCESS, SUCCESS_WITH_EXCEPTION
 
Constructor Summary
PBApplication()
          default constructor
 
Method Summary
protected  void doCleanup()
          Perform any cleanup required before the application exits.
protected  void doInit()
          Configure the InterfaceApplication w/ the appropriate framework implementation classes.
protected  boolean isAuditEnabled()
          returns false because the Process instances will handle their own audit responsibilities w/o help from the application.
static void main(java.lang.String[] args)
          Main() - calls execute in framework classes.
 void run()
          Defer execution to strategy.
 
Methods inherited from class com.rhi.architecture.batch.BatchApplication
cleanup, getAuditAgent, getProperties, init
 
Methods inherited from class com.rhi.architecture.batch.AbstractApplication
execute, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CYCLE_STATS

public static final java.lang.String CYCLE_STATS
the logger name to use when outputing performance statistics.

See Also:
Constant Field Values
Constructor Detail

PBApplication

public PBApplication()
default constructor

Since:
1.0
Method Detail

run

public void run()
         throws ApplicationException
Defer execution to strategy.

Specified by:
run in class AbstractApplication
Throws:
ApplicationException
Since:
1.0

doInit

protected void doInit()
               throws InitializationException
Configure the InterfaceApplication w/ the appropriate framework implementation classes. (strategy, inputadapter, outputadapter). Be very selective about what goes in this method. It is called after some of the other batch architecture is initialized; specifically, the super classes, and audit agent. If you re-configure or add new elements here, those classes will not see them.

Specified by:
doInit in class BatchApplication
Throws:
InitializationException
Since:
1.0.

doCleanup

protected void doCleanup()
Perform any cleanup required before the application exits.

Specified by:
doCleanup in class BatchApplication
Since:
1.0

main

public static void main(java.lang.String[] args)
Main() - calls execute in framework classes.

Since:
1.0

isAuditEnabled

protected boolean isAuditEnabled()
returns false because the Process instances will handle their own audit responsibilities w/o help from the application.

Overrides:
isAuditEnabled in class BatchApplication
Returns:
boolean - false
Since:
2.0


Copyright © 2002-2004 Robert Half International. All Rights Reserved.