public class AdminUtil<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AdminUtil.FateStatus |
static class |
AdminUtil.TransactionStatus |
Constructor and Description |
---|
AdminUtil()
Default constructor
|
AdminUtil(boolean exitOnError)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkGlobalLock(IZooReaderWriter zk,
String path) |
void |
deleteLocks(TStore<T> zs,
IZooReaderWriter zk,
String path,
String txidStr) |
AdminUtil.FateStatus |
getStatus(ReadOnlyTStore<T> zs,
IZooReader zk,
String lockPath,
Set<Long> filterTxid,
EnumSet<ReadOnlyTStore.TStatus> filterStatus) |
boolean |
prepDelete(TStore<T> zs,
IZooReaderWriter zk,
String path,
String txidStr) |
boolean |
prepFail(TStore<T> zs,
IZooReaderWriter zk,
String path,
String txidStr) |
void |
print(ReadOnlyTStore<T> zs,
IZooReader zk,
String lockPath) |
void |
print(ReadOnlyTStore<T> zs,
IZooReader zk,
String lockPath,
Formatter fmt,
Set<Long> filterTxid,
EnumSet<ReadOnlyTStore.TStatus> filterStatus) |
public AdminUtil()
public AdminUtil(boolean exitOnError)
exitOnError
- System.exit(1)
on error if truepublic AdminUtil.FateStatus getStatus(ReadOnlyTStore<T> zs, IZooReader zk, String lockPath, Set<Long> filterTxid, EnumSet<ReadOnlyTStore.TStatus> filterStatus) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public void print(ReadOnlyTStore<T> zs, IZooReader zk, String lockPath) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public void print(ReadOnlyTStore<T> zs, IZooReader zk, String lockPath, Formatter fmt, Set<Long> filterTxid, EnumSet<ReadOnlyTStore.TStatus> filterStatus) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public boolean prepDelete(TStore<T> zs, IZooReaderWriter zk, String path, String txidStr)
public boolean prepFail(TStore<T> zs, IZooReaderWriter zk, String path, String txidStr)
public void deleteLocks(TStore<T> zs, IZooReaderWriter zk, String path, String txidStr) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public boolean checkGlobalLock(IZooReaderWriter zk, String path)
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.