|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteTransactionLogger
This abstraction performs RPCs and works on a TransactionLogger located on a remote node.
Method Summary | |
---|---|
List<WriteCommand> |
drain()
Drains the transaction log and returns a list of what has been drained. |
List<WriteCommand> |
drainAndLock(Address lockFor)
Similar to drain() except that relevant locks are acquired so that no more commands are added to the
transaction log during this process, and transaction logging is disabled after draining. |
Collection<PrepareCommand> |
getPendingPrepares()
Drains pending prepares. |
boolean |
shouldDrainWithoutLock()
Tests whether the drain() method can be called without a lock. |
void |
unlockAndDisable(Address lockedFor)
Unlocks and disables the transaction logger. |
Method Detail |
---|
List<WriteCommand> drain()
List<WriteCommand> drainAndLock(Address lockFor)
drain()
except that relevant locks are acquired so that no more commands are added to the
transaction log during this process, and transaction logging is disabled after draining.
boolean shouldDrainWithoutLock()
Collection<PrepareCommand> getPendingPrepares()
void unlockAndDisable(Address lockedFor)
#drainAndLock()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |