org.neo4j.kernel.ha.zookeeper
Class ClusterManager

java.lang.Object
  extended by org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager
      extended by org.neo4j.kernel.ha.zookeeper.ClusterManager
All Implemented Interfaces:
org.apache.zookeeper.Watcher

public class ClusterManager
extends AbstractZooKeeperManager


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher
org.apache.zookeeper.Watcher.Event
 
Field Summary
 
Fields inherited from class org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager
HA_SERVERS_CHILD, SESSION_TIME_OUT
 
Constructor Summary
ClusterManager(String zooKeeperServers)
           
 
Method Summary
 Machine[] getConnectedSlaves()
          Returns the connected slaves in this cluster.
protected  int getMyMachineId()
           
 String getRoot()
           
protected  org.apache.zookeeper.ZooKeeper getZooKeeper()
           
 void process(org.apache.zookeeper.WatchedEvent event)
           
 void waitForSyncConnected()
           
 
Methods inherited from class org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager
getAllMachines, getCachedMaster, getHaServer, getMasterBasedOn, getMasterFromZooKeeper, instantiateZooKeeper, parseChild, readDataAsLong, readHaServer, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterManager

public ClusterManager(String zooKeeperServers)
Method Detail

getMyMachineId

protected int getMyMachineId()
Specified by:
getMyMachineId in class AbstractZooKeeperManager

waitForSyncConnected

public void waitForSyncConnected()
Specified by:
waitForSyncConnected in class AbstractZooKeeperManager

process

public void process(org.apache.zookeeper.WatchedEvent event)

getRoot

public String getRoot()
Specified by:
getRoot in class AbstractZooKeeperManager

getConnectedSlaves

public Machine[] getConnectedSlaves()
Returns the connected slaves in this cluster.

Returns:
the connected slaves in this cluster.

getZooKeeper

protected org.apache.zookeeper.ZooKeeper getZooKeeper()
Specified by:
getZooKeeper in class AbstractZooKeeperManager


Copyright © 2010 The Neo4j Graph Database Project. All Rights Reserved.