|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.batch.AuditAgent
Audit Agent is responsible for performing all audits for a specific concrete application. All auditing is deferred to this class.
Constructor Summary | |
protected |
AuditAgent()
private constructor - use the getInstance factory method to build an audit agent. |
Method Summary | |
abstract void |
auditCollection(java.util.Collection c,
Transaction t)
Audit the given collection. |
abstract void |
commitAudits()
Mark complete & close the current audit record. |
abstract void |
createAudits(java.util.Collection c)
Create an appropriate audit /control record. |
static AuditAgent |
getInstance(java.lang.String className)
Factory method allowing the framework to load any audit agent as long as it's in the classpath. |
abstract void |
init(java.util.Properties p)
Initialization Logic |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AuditAgent()
Method Detail |
public abstract void init(java.util.Properties p) throws InitializationException
p
- config properties for audit agent.
InitializationException
public abstract void createAudits(java.util.Collection c) throws AuditException
c
- the collection that will be audited. (all source records)
AuditException
- - thrown if the audits can't be created.public abstract void auditCollection(java.util.Collection c, Transaction t) throws AuditException
c
- - records to be audited.t
- - the transaction to use when auditing.
AuditException
- thrown if the collection audit fails.public abstract void commitAudits() throws AuditException
AuditException
- thrown if the commit fails.public static AuditAgent getInstance(java.lang.String className) throws InitializationException
className
- - fully qualified class name for a concrete audit
agent class.
InitializationException
- - failure creating audit agent.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |