org.apache.accumulo.server.master.tableOps
public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
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) |
public static long reserveTable(String tableId, long tid, boolean writeLock, boolean tableMustExist, TableOperation op) throws Exception
Exception
public static void unreserveTable(String tableId, long tid, boolean writeLock) throws Exception
Exception
public static long reserveHdfsDirectory(String directory, long tid) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public static void unreserveHdfsDirectory(String directory, long tid) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.