org.apache.accumulo.server.master.tableOps
Class Utils

java.lang.Object
  extended by org.apache.accumulo.server.master.tableOps.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
static Lock getReadLock(String tableId, long tid)
           
static long reserveHdfsDirectory(String directory, long tid)
           
static long reserveTable(String tableId, long tid, boolean writeLock, boolean tableMustExist, TableOperation op)
           
static void unreserveHdfsDirectory(String directory, long tid)
           
static void unreserveTable(String tableId, long tid, boolean writeLock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

reserveTable

public static long reserveTable(String tableId,
                                long tid,
                                boolean writeLock,
                                boolean tableMustExist,
                                TableOperation op)
                         throws Exception
Throws:
Exception

unreserveTable

public static void unreserveTable(String tableId,
                                  long tid,
                                  boolean writeLock)
                           throws Exception
Throws:
Exception

reserveHdfsDirectory

public static long reserveHdfsDirectory(String directory,
                                        long tid)
                                 throws org.apache.zookeeper.KeeperException,
                                        InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

unreserveHdfsDirectory

public static void unreserveHdfsDirectory(String directory,
                                          long tid)
                                   throws org.apache.zookeeper.KeeperException,
                                          InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

getReadLock

public static Lock getReadLock(String tableId,
                               long tid)
                        throws Exception
Throws:
Exception


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.