org.apache.blur.manager.clusterstatus
Class ClusterStatus

java.lang.Object
  extended by org.apache.blur.manager.clusterstatus.ClusterStatus
Direct Known Subclasses:
ZookeeperClusterStatus

public abstract class ClusterStatus
extends Object


Nested Class Summary
static class ClusterStatus.Action
           
 
Constructor Summary
ClusterStatus()
           
 
Method Summary
abstract  void createTable(TableDescriptor tableDescriptor)
           
abstract  void disableTable(String cluster, String table)
           
abstract  void enableTable(String cluster, String table)
           
abstract  boolean exists(boolean useCache, String cluster, String table)
           
abstract  String getCluster(boolean useCache, String table)
           
abstract  List<String> getClusterList(boolean useCache)
           
abstract  List<String> getControllerServerList()
           
 List<String> getOfflineShardServers(boolean useCache, String cluster)
           
abstract  List<String> getOnlineControllerList()
           
abstract  List<String> getOnlineShardServers(boolean useCache, String cluster)
           
abstract  List<String> getShardServerList(String cluster)
           
abstract  TableDescriptor getTableDescriptor(boolean useCache, String cluster, String table)
           
 List<String> getTableList(boolean useCache)
           
abstract  List<String> getTableList(boolean useCache, String cluster)
           
abstract  boolean isEnabled(boolean useCache, String cluster, String table)
           
abstract  boolean isInSafeMode(boolean useCache, String cluster)
           
abstract  boolean isOpen()
           
abstract  boolean isReadOnly(boolean useCache, String cluster, String table)
           
abstract  void registerActionOnTableStateChange(ClusterStatus.Action action)
           
abstract  void removeTable(String cluster, String table, boolean deleteIndexFiles)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterStatus

public ClusterStatus()
Method Detail

getOnlineShardServers

public abstract List<String> getOnlineShardServers(boolean useCache,
                                                   String cluster)

getShardServerList

public abstract List<String> getShardServerList(String cluster)

getOnlineControllerList

public abstract List<String> getOnlineControllerList()

getControllerServerList

public abstract List<String> getControllerServerList()

getClusterList

public abstract List<String> getClusterList(boolean useCache)

getTableDescriptor

public abstract TableDescriptor getTableDescriptor(boolean useCache,
                                                   String cluster,
                                                   String table)

getTableList

public final List<String> getTableList(boolean useCache)

getCluster

public abstract String getCluster(boolean useCache,
                                  String table)

isEnabled

public abstract boolean isEnabled(boolean useCache,
                                  String cluster,
                                  String table)

exists

public abstract boolean exists(boolean useCache,
                               String cluster,
                               String table)

isInSafeMode

public abstract boolean isInSafeMode(boolean useCache,
                                     String cluster)

getOfflineShardServers

public List<String> getOfflineShardServers(boolean useCache,
                                           String cluster)

getTableList

public abstract List<String> getTableList(boolean useCache,
                                          String cluster)

isReadOnly

public abstract boolean isReadOnly(boolean useCache,
                                   String cluster,
                                   String table)

createTable

public abstract void createTable(TableDescriptor tableDescriptor)

disableTable

public abstract void disableTable(String cluster,
                                  String table)

enableTable

public abstract void enableTable(String cluster,
                                 String table)

removeTable

public abstract void removeTable(String cluster,
                                 String table,
                                 boolean deleteIndexFiles)

isOpen

public abstract boolean isOpen()

registerActionOnTableStateChange

public abstract void registerActionOnTableStateChange(ClusterStatus.Action action)


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