org.bitrepository.audittrails.preserver
Class AuditPreservationEventHandler

java.lang.Object
  extended by org.bitrepository.audittrails.preserver.AuditPreservationEventHandler
All Implemented Interfaces:
EventHandler

public class AuditPreservationEventHandler
extends Object
implements EventHandler

The event handler for the preservation of audit trail data. When the PutFile operation has completed, then the store will be updated with the results. It is not necessary to wait until all the components are complete. Just the first. This eventhandler can only be used for handling the PutFile operation of a single AuditTrail package.


Constructor Summary
AuditPreservationEventHandler(Map<String,Long> preservationSequenceNumber, AuditTrailStore store, String collectionID)
          Constructor.
 
Method Summary
 void handleEvent(OperationEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditPreservationEventHandler

public AuditPreservationEventHandler(Map<String,Long> preservationSequenceNumber,
                                     AuditTrailStore store,
                                     String collectionID)
Constructor.

Parameters:
preservationSequenceNumber - The map between the contributor ids and their respective sequence number.
store - The store which should be updated with these sequence numbers.
collectionID - The ID of the collection that needs to have it's sequence number updated.
Method Detail

handleEvent

public void handleEvent(OperationEvent event)
Specified by:
handleEvent in interface EventHandler


Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.