|
||||||||||
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()
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()
Unlocks and disables the transaction logger. |
Method Detail |
---|
List<WriteCommand> drain()
List<WriteCommand> drainAndLock() throws InterruptedException
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.
InterruptedException
boolean shouldDrainWithoutLock()
Collection<PrepareCommand> getPendingPrepares()
void unlockAndDisable()
drainAndLock()
.
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |