org.apache.accumulo.server.master.state.tables
public class TableManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TableManager.IllegalTableTransitionException |
Modifier and Type | Method and Description |
---|---|
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) |
public static void prepareNewTableState(String instanceId, String tableId, String tableName, TableState state, ZooUtil.NodeExistsPolicy existsPolicy) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public static TableManager getInstance()
public TableState getTableState(String tableId)
public void transitionTableState(String tableId, TableState newState)
public TableState updateTableStateCache(String tableId)
public void addTable(String tableId, String tableName, ZooUtil.NodeExistsPolicy existsPolicy) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
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
org.apache.zookeeper.KeeperException
InterruptedException
public void removeTable(String tableId) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public boolean addObserver(TableObserver to)
public boolean removeObserver(TableObserver to)
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.