org.apache.accumulo.server.master.state.tables
Class TableManager
java.lang.Object
org.apache.accumulo.server.master.state.tables.TableManager
public class TableManager
- extends Object
Method Summary |
boolean |
addObserver(TableObserver to)
|
void |
addTable(String tableId,
String tableName,
ZooUtil.NodeExistsPolicy existsPolicy)
|
void |
cloneTable(String srcTable,
String tableId,
String tableName,
Map<String,String> propertiesToSet,
Set<String> propertiesToExclude,
ZooUtil.NodeExistsPolicy existsPolicy)
|
static TableManager |
getInstance()
|
TableState |
getTableState(String tableId)
|
static void |
prepareNewTableState(String instanceId,
String tableId,
String tableName,
TableState state,
ZooUtil.NodeExistsPolicy existsPolicy)
|
boolean |
removeObserver(TableObserver to)
|
void |
removeTable(String tableId)
|
void |
transitionTableState(String tableId,
TableState newState)
|
TableState |
updateTableStateCache(String tableId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prepareNewTableState
public static void prepareNewTableState(String instanceId,
String tableId,
String tableName,
TableState state,
ZooUtil.NodeExistsPolicy existsPolicy)
throws org.apache.zookeeper.KeeperException,
InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
getInstance
public static TableManager getInstance()
getTableState
public TableState getTableState(String tableId)
transitionTableState
public void transitionTableState(String tableId,
TableState newState)
updateTableStateCache
public TableState updateTableStateCache(String tableId)
addTable
public void addTable(String tableId,
String tableName,
ZooUtil.NodeExistsPolicy existsPolicy)
throws org.apache.zookeeper.KeeperException,
InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
cloneTable
public void cloneTable(String srcTable,
String tableId,
String tableName,
Map<String,String> propertiesToSet,
Set<String> propertiesToExclude,
ZooUtil.NodeExistsPolicy existsPolicy)
throws org.apache.zookeeper.KeeperException,
InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
removeTable
public void removeTable(String tableId)
throws org.apache.zookeeper.KeeperException,
InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
addObserver
public boolean addObserver(TableObserver to)
removeObserver
public boolean removeObserver(TableObserver to)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.