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()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Set<Long>
allTransactionsAlive(String type)
static void
cleanup(String type, long tid)
static void
start(String type, long tid)
static void
stop(String type, long tid)
boolean
transactionAlive(String type, long tid)
boolean
transactionComplete(String type, long tid)
-
-
-
Method Detail
-
transactionAlive
public boolean transactionAlive(String type, long tid) throws Exception
- Specified by:
transactionAlive
in interfaceTransactionWatcher.Arbitrator
- Throws:
Exception
-
start
public static void start(String type, long tid) throws org.apache.zookeeper.KeeperException, InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
-
stop
public static void stop(String type, long tid) throws org.apache.zookeeper.KeeperException, InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
-
cleanup
public static void cleanup(String type, long tid) throws org.apache.zookeeper.KeeperException, InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
-
allTransactionsAlive
public static Set<Long> allTransactionsAlive(String type) throws org.apache.zookeeper.KeeperException, InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
-
transactionComplete
public boolean transactionComplete(String type, long tid) throws Exception
- Specified by:
transactionComplete
in interfaceTransactionWatcher.Arbitrator
- Throws:
Exception
-
-