Class TransactionWatcher.ZooArbitrator
- java.lang.Object
-
- org.apache.accumulo.server.zookeeper.TransactionWatcher.ZooArbitrator
-
- All Implemented Interfaces:
TransactionWatcher.Arbitrator
- Enclosing class:
- TransactionWatcher
public static class TransactionWatcher.ZooArbitrator extends Object implements TransactionWatcher.Arbitrator
-
-
Constructor Summary
Constructors Constructor Description ZooArbitrator(ServerContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Set<Long>allTransactionsAlive(ServerContext context, String type)static voidcleanup(ServerContext context, String type, long tid)static voidstart(ServerContext context, String type, long tid)static voidstop(ServerContext context, String type, long tid)booleantransactionAlive(String type, long tid)booleantransactionComplete(String type, long tid)
-
-
-
Constructor Detail
-
ZooArbitrator
public ZooArbitrator(ServerContext context)
-
-
Method Detail
-
transactionAlive
public boolean transactionAlive(String type, long tid) throws Exception
- Specified by:
transactionAlivein interfaceTransactionWatcher.Arbitrator- Throws:
Exception
-
start
public static void start(ServerContext context, String type, long tid) throws org.apache.zookeeper.KeeperException, InterruptedException
- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
stop
public static void stop(ServerContext context, String type, long tid) throws org.apache.zookeeper.KeeperException, InterruptedException
- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
cleanup
public static void cleanup(ServerContext context, String type, long tid) throws org.apache.zookeeper.KeeperException, InterruptedException
- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
allTransactionsAlive
public static Set<Long> allTransactionsAlive(ServerContext context, String type) throws org.apache.zookeeper.KeeperException, InterruptedException
- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
transactionComplete
public boolean transactionComplete(String type, long tid) throws Exception
- Specified by:
transactionCompletein interfaceTransactionWatcher.Arbitrator- Throws:
Exception
-
-