com.arjuna.ats.arjuna.objectstore
Interface TxLog

All Superinterfaces:
BaseStore
All Known Subinterfaces:
ObjectStoreAPI, ParticipantStore, RecoveryStore
All Known Implementing Classes:
ObjectStore, ParticipantStoreProxy, RecoveryStoreProxy, TxLogProxy

public interface TxLog
extends BaseStore

All transaction logs MUST implement this interface.

Since:
JTS 1.0.
Version:
$Id: ObjectStore.java 2342 2006-03-30 13:06:17Z $
Author:
Mark Little (mark@arjuna.com)

Method Summary
 boolean remove_committed(Uid u, String tn)
          Remove the object's committed state.
 void sync()
          Some object store implementations may be running with automatic sync disabled.
 boolean write_committed(Uid u, String tn, OutputObjectState buff)
          Write a new copy of the object's committed state.
 
Methods inherited from interface com.arjuna.ats.arjuna.objectstore.BaseStore
getStoreName, start, stop
 

Method Detail

remove_committed

boolean remove_committed(Uid u,
                         String tn)
                         throws ObjectStoreException
Remove the object's committed state.

Parameters:
u - The object to work on.
tn - The type of the object to work on.
Returns:
true if no errors occurred, false otherwise.
Throws:
ObjectStoreException

write_committed

boolean write_committed(Uid u,
                        String tn,
                        OutputObjectState buff)
                        throws ObjectStoreException
Write a new copy of the object's committed state.

Parameters:
u - The object to work on.
tn - The type of the object to work on.
buff - The state to write.
Returns:
true if no errors occurred, false otherwise.
Throws:
ObjectStoreException

sync

void sync()
          throws SyncFailedException,
                 ObjectStoreException
Some object store implementations may be running with automatic sync disabled. Calling this method will ensure that any states are flushed to disk.

Throws:
SyncFailedException
ObjectStoreException


Copyright © 2011. All Rights Reserved.