Class TransactionalComponentBase<X>
- java.lang.Object
-
- org.apache.jena.dboe.transaction.txn.TransactionalComponentLifecycle<X>
-
- org.apache.jena.dboe.transaction.txn.TransactionalComponentBase<X>
-
- All Implemented Interfaces:
TransactionalComponent
public class TransactionalComponentBase<X> extends TransactionalComponentLifecycle<X>
A transaction component that does nothing - can be used as a helper for management tasks hooked into the transaction component lifecycle but which are not stateful across restarts.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jena.dboe.transaction.txn.TransactionalComponentLifecycle
TransactionalComponentLifecycle.ComponentState<X>
-
-
Constructor Summary
Constructors Constructor Description TransactionalComponentBase(ComponentId id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanStart()Indicate that no recovery is being done (the journal thinks everything was completed last time)voidfinishRecovery()End of the recovery phasevoidrecover(java.nio.ByteBuffer ref)Notification thatrefwas really committed and is being recovered.voidstartRecovery()-
Methods inherited from class org.apache.jena.dboe.transaction.txn.TransactionalComponentLifecycle
abort, attach, begin, commit, commitEnd, commitPrepare, complete, detach, getComponentId, getComponentState, promote, setComponentState, shutdown
-
-
-
-
Constructor Detail
-
TransactionalComponentBase
public TransactionalComponentBase(ComponentId id)
-
-
Method Detail
-
startRecovery
public void startRecovery()
- Specified by:
startRecoveryin interfaceTransactionalComponent- Specified by:
startRecoveryin classTransactionalComponentLifecycle<X>
-
recover
public void recover(java.nio.ByteBuffer ref)
Description copied from interface:TransactionalComponentNotification thatrefwas really committed and is being recovered.- Specified by:
recoverin interfaceTransactionalComponent- Specified by:
recoverin classTransactionalComponentLifecycle<X>- Parameters:
ref- Same bytes as were written during prepare originally.
-
finishRecovery
public void finishRecovery()
Description copied from interface:TransactionalComponentEnd of the recovery phase- Specified by:
finishRecoveryin interfaceTransactionalComponent- Specified by:
finishRecoveryin classTransactionalComponentLifecycle<X>
-
cleanStart
public void cleanStart()
Description copied from interface:TransactionalComponentIndicate that no recovery is being done (the journal thinks everything was completed last time)
-
-