org.apache.accumulo.server.master.tableOps
Class Utils
java.lang.Object
org.apache.accumulo.server.master.tableOps.Utils
public class Utils
- extends Object
Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
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.