public class AdminUtil<T> extends Object
| 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) |
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,
IZooReaderWriter zk,
String lockPath) |
void |
print(ReadOnlyTStore<T> zs,
IZooReaderWriter 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 void print(ReadOnlyTStore<T> zs, IZooReaderWriter zk, String lockPath) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void print(ReadOnlyTStore<T> zs, IZooReaderWriter zk, String lockPath, Formatter fmt, Set<Long> filterTxid, EnumSet<ReadOnlyTStore.TStatus> filterStatus) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic 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.KeeperExceptionInterruptedExceptionpublic boolean checkGlobalLock(IZooReaderWriter zk, String path)
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.