org.apache.accumulo.server.master.state.tables
Class TableManager

java.lang.Object
  extended by org.apache.accumulo.server.master.state.tables.TableManager

public class TableManager
extends java.lang.Object


Method Summary
 boolean addObserver(TableObserver to)
           
 void addTable(java.lang.String tableId, java.lang.String tableName)
           
static TableManager getInstance()
           
 TableState getTableState(java.lang.String tableId)
           
static void prepareNewTableState(java.lang.String instanceId, java.lang.String tableId, java.lang.String tableName, TableState state)
           
 boolean removeObserver(TableObserver to)
           
 void removeTable(java.lang.String tableId)
           
 void transitionTableState(java.lang.String tableId, TableState newState)
           
 TableState updateTableStateCache(java.lang.String tableId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

prepareNewTableState

public static void prepareNewTableState(java.lang.String instanceId,
                                        java.lang.String tableId,
                                        java.lang.String tableName,
                                        TableState state)
                                 throws org.apache.zookeeper.KeeperException,
                                        java.lang.InterruptedException
Throws:
org.apache.zookeeper.KeeperException
java.lang.InterruptedException

getInstance

public static TableManager getInstance()

getTableState

public TableState getTableState(java.lang.String tableId)

transitionTableState

public void transitionTableState(java.lang.String tableId,
                                 TableState newState)

updateTableStateCache

public TableState updateTableStateCache(java.lang.String tableId)

addTable

public void addTable(java.lang.String tableId,
                     java.lang.String tableName)
              throws org.apache.zookeeper.KeeperException,
                     java.lang.InterruptedException
Throws:
org.apache.zookeeper.KeeperException
java.lang.InterruptedException

removeTable

public void removeTable(java.lang.String tableId)
                 throws org.apache.zookeeper.KeeperException,
                        java.lang.InterruptedException
Throws:
org.apache.zookeeper.KeeperException
java.lang.InterruptedException

addObserver

public boolean addObserver(TableObserver to)

removeObserver

public boolean removeObserver(TableObserver to)


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