org.apache.blur.manager.clusterstatus
Class ZookeeperClusterStatus

java.lang.Object
  extended by org.apache.blur.manager.clusterstatus.ClusterStatus
      extended by org.apache.blur.manager.clusterstatus.ZookeeperClusterStatus

public class ZookeeperClusterStatus
extends ClusterStatus


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.blur.manager.clusterstatus.ClusterStatus
ClusterStatus.Action
 
Constructor Summary
ZookeeperClusterStatus(String connectionStr)
           
ZookeeperClusterStatus(String connectionStr, BlurConfiguration configuration)
           
ZookeeperClusterStatus(org.apache.zookeeper.ZooKeeper zooKeeper)
           
ZookeeperClusterStatus(org.apache.zookeeper.ZooKeeper zooKeeper, BlurConfiguration configuration)
           
 
Method Summary
 void close()
           
 void createTable(TableDescriptor tableDescriptor)
           
 void disableTable(String cluster, String table)
           
 void enableTable(String cluster, String table)
           
 boolean exists(boolean useCache, String cluster, String table)
           
 String getCluster(boolean useCache, String table)
           
 List<String> getClusterList(boolean useCache)
           
 List<String> getControllerServerList()
           
 List<String> getOnlineControllerList()
           
 List<String> getOnlineShardServers(boolean useCache, String cluster)
           
 List<String> getShardServerList(String cluster)
           
 TableDescriptor getTableDescriptor(boolean useCache, String cluster, String table)
           
 List<String> getTableList(boolean useCache, String cluster)
           
 boolean isEnabled(boolean useCache, String cluster, String table)
           
 boolean isInSafeMode(boolean useCache, String cluster)
           
 boolean isOpen()
           
 boolean isReadOnly(boolean useCache, String cluster, String table)
           
 void registerActionOnTableStateChange(ClusterStatus.Action action)
           
 void removeTable(String cluster, String table, boolean deleteIndexFiles)
           
 
Methods inherited from class org.apache.blur.manager.clusterstatus.ClusterStatus
getOfflineShardServers, getTableList
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZookeeperClusterStatus

public ZookeeperClusterStatus(org.apache.zookeeper.ZooKeeper zooKeeper,
                              BlurConfiguration configuration)

ZookeeperClusterStatus

public ZookeeperClusterStatus(String connectionStr,
                              BlurConfiguration configuration)
                       throws IOException
Throws:
IOException

ZookeeperClusterStatus

public ZookeeperClusterStatus(org.apache.zookeeper.ZooKeeper zooKeeper)
                       throws IOException
Throws:
IOException

ZookeeperClusterStatus

public ZookeeperClusterStatus(String connectionStr)
                       throws IOException
Throws:
IOException
Method Detail

getClusterList

public List<String> getClusterList(boolean useCache)
Specified by:
getClusterList in class ClusterStatus

getOnlineControllerList

public List<String> getOnlineControllerList()
Specified by:
getOnlineControllerList in class ClusterStatus

getControllerServerList

public List<String> getControllerServerList()
Specified by:
getControllerServerList in class ClusterStatus

getOnlineShardServers

public List<String> getOnlineShardServers(boolean useCache,
                                          String cluster)
Specified by:
getOnlineShardServers in class ClusterStatus

getShardServerList

public List<String> getShardServerList(String cluster)
Specified by:
getShardServerList in class ClusterStatus

exists

public boolean exists(boolean useCache,
                      String cluster,
                      String table)
Specified by:
exists in class ClusterStatus

isEnabled

public boolean isEnabled(boolean useCache,
                         String cluster,
                         String table)
Specified by:
isEnabled in class ClusterStatus

getTableDescriptor

public TableDescriptor getTableDescriptor(boolean useCache,
                                          String cluster,
                                          String table)
Specified by:
getTableDescriptor in class ClusterStatus

getTableList

public List<String> getTableList(boolean useCache,
                                 String cluster)
Specified by:
getTableList in class ClusterStatus

close

public void close()

getCluster

public String getCluster(boolean useCache,
                         String table)
Specified by:
getCluster in class ClusterStatus

isInSafeMode

public boolean isInSafeMode(boolean useCache,
                            String cluster)
Specified by:
isInSafeMode in class ClusterStatus

isReadOnly

public boolean isReadOnly(boolean useCache,
                          String cluster,
                          String table)
Specified by:
isReadOnly in class ClusterStatus

createTable

public void createTable(TableDescriptor tableDescriptor)
Specified by:
createTable in class ClusterStatus

disableTable

public void disableTable(String cluster,
                         String table)
Specified by:
disableTable in class ClusterStatus

enableTable

public void enableTable(String cluster,
                        String table)
Specified by:
enableTable in class ClusterStatus

removeTable

public void removeTable(String cluster,
                        String table,
                        boolean deleteIndexFiles)
Specified by:
removeTable in class ClusterStatus

isOpen

public boolean isOpen()
Specified by:
isOpen in class ClusterStatus

registerActionOnTableStateChange

public void registerActionOnTableStateChange(ClusterStatus.Action action)
Specified by:
registerActionOnTableStateChange in class ClusterStatus


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