com.rhi.architecture.batch
Class NullAuditAgent

java.lang.Object
  extended bycom.rhi.architecture.batch.AuditAgent
      extended bycom.rhi.architecture.batch.NullAuditAgent

public class NullAuditAgent
extends AuditAgent

Empty implementation to facilitate ease of use when developing new PARC applications. This is probably only useful for testing.

Author:
pete mckinstry

Constructor Summary
NullAuditAgent()
          Constructor for NullAuditAgent.
 
Method Summary
 void auditCollection(java.util.Collection c, Transaction t)
          Audit the given collection.
 void commitAudits()
          Mark complete & close the current audit record.
 void createAudits(java.util.Collection c)
          Create an appropriate audit /control record.
 void init(java.util.Properties p)
          Initialization Logic
 
Methods inherited from class com.rhi.architecture.batch.AuditAgent
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullAuditAgent

public NullAuditAgent()
Constructor for NullAuditAgent.

Method Detail

init

public void init(java.util.Properties p)
          throws InitializationException
Description copied from class: AuditAgent
Initialization Logic

Specified by:
init in class AuditAgent
Parameters:
p -
Throws:
InitializationException
See Also:
AuditAgent.init(java.util.Properties)

createAudits

public void createAudits(java.util.Collection c)
                  throws AuditException
Description copied from class: AuditAgent
Create an appropriate audit /control record. This method should create a record w/ only a unprocessed count > 0. The auditCollection method will be called as records are passed through the pipeline & this method will modify the counts; subtracting from the unprocesed, and adding to the errored, valid, or duplicate counts.

Specified by:
createAudits in class AuditAgent
Parameters:
c - the collection to be audited.
Throws:
AuditException
See Also:
AuditAgent.createAudits(java.util.Collection)

auditCollection

public void auditCollection(java.util.Collection c,
                            Transaction t)
                     throws AuditException
Description copied from class: AuditAgent
Audit the given collection. This method should subtract the given collection.size() from the un- processed count for this audit set & add the collection.size() in some manner to the processed columns (valid,errored,duplicate,other)

Specified by:
auditCollection in class AuditAgent
Parameters:
c - the Collection to be audited.
t - the transaction that should be used to persist any results.
Throws:
AuditException
See Also:
AuditAgent.auditCollection(java.util.Collection, com.rhi.architecture.xa.Transaction)

commitAudits

public void commitAudits()
                  throws AuditException
Description copied from class: AuditAgent
Mark complete & close the current audit record. This method may or may not do anything.

Specified by:
commitAudits in class AuditAgent
Throws:
AuditException
See Also:
AuditAgent.commitAudits()


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