org.prevayler.implementation.snapshot
Class GenericSnapshotManager<P>

java.lang.Object
  extended by org.prevayler.implementation.snapshot.GenericSnapshotManager<P>
Direct Known Subclasses:
NullSnapshotManager

public class GenericSnapshotManager<P>
extends Object


Constructor Summary
GenericSnapshotManager(Map snapshotSerializers, String primarySnapshotSuffix, P newPrevalentSystem, PrevaylerDirectory directory, Serializer journalSerializer)
           
 
Method Summary
 Serializer primarySerializer()
           
 PrevalentSystemGuard<P> recoveredPrevalentSystem()
           
 File writeSnapshot(P prevalentSystem, long version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericSnapshotManager

public GenericSnapshotManager(Map snapshotSerializers,
                              String primarySnapshotSuffix,
                              P newPrevalentSystem,
                              PrevaylerDirectory directory,
                              Serializer journalSerializer)
                       throws Exception
Throws:
Exception
Method Detail

primarySerializer

public Serializer primarySerializer()

recoveredPrevalentSystem

public PrevalentSystemGuard<P> recoveredPrevalentSystem()

writeSnapshot

public File writeSnapshot(P prevalentSystem,
                          long version)
                   throws Exception
Throws:
Exception


Copyright © 2001-2013. All Rights Reserved.