org.bitrepository.audittrails.preserver
Class LocalAuditTrailPreserver

java.lang.Object
  extended by org.bitrepository.audittrails.preserver.LocalAuditTrailPreserver
All Implemented Interfaces:
AuditTrailPreserver

public class LocalAuditTrailPreserver
extends Object
implements AuditTrailPreserver

Handles the preservation of audit trails to a collection defined for the local repository. This means, that each set of audit trails will be preserved within its own collection.


Constructor Summary
LocalAuditTrailPreserver(Settings settings, AuditTrailStore store, PutFileClient client, FileExchange exchange)
          Constructor.
 
Method Summary
 void close()
          Stop the preservation of audit trails.
 void preserveRepositoryAuditTrails()
          Method for performing the preservation of the unpreserved audit trails, around the scheduled preservation.
 void start()
          Start the preservation of audit trails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalAuditTrailPreserver

public LocalAuditTrailPreserver(Settings settings,
                                AuditTrailStore store,
                                PutFileClient client,
                                FileExchange exchange)
Constructor.

Parameters:
settings - The preservationSettings for the audit trail service.
store - The storage of the audit trails, which should be preserved.
client - The PutFileClient for putting the audit trail packages to the collection.
Method Detail

start

public void start()
Description copied from interface: AuditTrailPreserver
Start the preservation of audit trails.

Specified by:
start in interface AuditTrailPreserver

close

public void close()
Description copied from interface: AuditTrailPreserver
Stop the preservation of audit trails.

Specified by:
close in interface AuditTrailPreserver

preserveRepositoryAuditTrails

public void preserveRepositoryAuditTrails()
Description copied from interface: AuditTrailPreserver
Method for performing the preservation of the unpreserved audit trails, around the scheduled preservation.

Specified by:
preserveRepositoryAuditTrails in interface AuditTrailPreserver


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