org.prevayler.implementation
Class PrevalentSystemGuard<P>

java.lang.Object
  extended by org.prevayler.implementation.PrevalentSystemGuard<P>
All Implemented Interfaces:
TransactionSubscriber

public class PrevalentSystemGuard<P>
extends Object
implements TransactionSubscriber


Constructor Summary
PrevalentSystemGuard(P prevalentSystem, long systemVersion, Serializer journalSerializer)
           
 
Method Summary
 PrevalentSystemGuard<P> deepCopy(long systemVersion, Serializer snapshotSerializer)
           
<R> R
executeQuery(Query<? super P,R> sensitiveQuery, Clock clock)
           
 P prevalentSystem()
           
 void receive(TransactionTimestamp transactionTimestamp)
           
 void subscribeTo(TransactionPublisher publisher)
           
 File takeSnapshot(GenericSnapshotManager<P> snapshotManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrevalentSystemGuard

public PrevalentSystemGuard(P prevalentSystem,
                            long systemVersion,
                            Serializer journalSerializer)
Method Detail

prevalentSystem

public P prevalentSystem()

subscribeTo

public void subscribeTo(TransactionPublisher publisher)
                 throws IOException,
                        ClassNotFoundException
Throws:
IOException
ClassNotFoundException

receive

public void receive(TransactionTimestamp transactionTimestamp)
Specified by:
receive in interface TransactionSubscriber

executeQuery

public <R> R executeQuery(Query<? super P,R> sensitiveQuery,
                          Clock clock)
               throws Exception
Throws:
Exception

takeSnapshot

public File takeSnapshot(GenericSnapshotManager<P> snapshotManager)
                  throws Exception
Throws:
Exception

deepCopy

public PrevalentSystemGuard<P> deepCopy(long systemVersion,
                                        Serializer snapshotSerializer)
                                 throws Exception
Throws:
Exception


Copyright © 2001-2013. All Rights Reserved.