org.apache.accumulo.fate
Class AdminUtil<T>

java.lang.Object
  extended by org.apache.accumulo.fate.AdminUtil<T>

public class AdminUtil<T>
extends Object

A utility to administer FATE operations


Constructor Summary
AdminUtil()
          Default constructor
AdminUtil(boolean exitOnError)
          Constructor
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminUtil

public AdminUtil()
Default constructor


AdminUtil

public AdminUtil(boolean exitOnError)
Constructor

Parameters:
exitOnError - System.exit(1) on error if true
Method Detail

print

public void print(ReadOnlyTStore<T> zs,
                  IZooReaderWriter zk,
                  String lockPath)
           throws org.apache.zookeeper.KeeperException,
                  InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

print

public void print(ReadOnlyTStore<T> zs,
                  IZooReaderWriter zk,
                  String lockPath,
                  Formatter fmt,
                  Set<Long> filterTxid,
                  EnumSet<ReadOnlyTStore.TStatus> filterStatus)
           throws org.apache.zookeeper.KeeperException,
                  InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

prepDelete

public boolean prepDelete(TStore<T> zs,
                          IZooReaderWriter zk,
                          String path,
                          String txidStr)

prepFail

public boolean prepFail(TStore<T> zs,
                        IZooReaderWriter zk,
                        String path,
                        String txidStr)

deleteLocks

public void deleteLocks(TStore<T> zs,
                        IZooReaderWriter zk,
                        String path,
                        String txidStr)
                 throws org.apache.zookeeper.KeeperException,
                        InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

checkGlobalLock

public boolean checkGlobalLock(IZooReaderWriter zk,
                               String path)


Copyright © 2015 Apache Accumulo Project. All rights reserved.