org.neo4j.kernel.ha.zookeeper
Class ZooKeeperClusterClient
java.lang.Object
org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager
org.neo4j.kernel.ha.zookeeper.ZooKeeperClusterClient
- All Implemented Interfaces:
- ClusterClient
public class ZooKeeperClusterClient
- extends AbstractZooKeeperManager
- implements ClusterClient
| Methods inherited from class org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager |
asRootPath, bootstrap, getAllMachines, getAllMachines, getAllMachinesInner, getCachedMaster, getClusterStoreId, getHaServer, getHaServers, getMasterBasedOn, getMasterClientToMachine, getMasterFromZooKeeper, getNumberOfServers, getSequenceNr, getServers, getSessionTimeout, getStoreId, idFromPath, invalidateMaster, masterElectionHappened, parseChild, readDataRepresentingInstance, readHaServer, refreshHaServers, shutdown, waitForSyncConnected |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SESSION_TIME_OUT
protected static final int SESSION_TIME_OUT
- See Also:
- Constant Field Values
CLUSTER_CLIENT_MACHINE_ID
public static final int CLUSTER_CLIENT_MACHINE_ID
- See Also:
- Constant Field Values
ZooKeeperClusterClient
public ZooKeeperClusterClient(String zooKeeperServers)
ZooKeeperClusterClient
public ZooKeeperClusterClient(String zooKeeperServers,
String clusterName)
ZooKeeperClusterClient
public ZooKeeperClusterClient(String zooKeeperServers,
org.neo4j.kernel.impl.util.StringLogger msgLog,
String clusterName,
int sessionTimeout,
MasterClientFactory factory)
createZooKeeper
protected org.apache.zookeeper.ZooKeeper createZooKeeper(String zooKeeperServers)
throws IOException
- Throws:
IOException
getMyMachineId
protected int getMyMachineId()
- Specified by:
getMyMachineId in class AbstractZooKeeperManager
getBackupPort
public int getBackupPort(int machineId)
- Specified by:
getBackupPort in interface ClusterClient
getMaster
public Machine getMaster()
- Specified by:
getMaster in interface ClusterClient
getMasterClient
public org.neo4j.helpers.Pair<Master,Machine> getMasterClient()
- Specified by:
getMasterClient in interface ClusterClient
getRoot
public String getRoot()
- Specified by:
getRoot in class AbstractZooKeeperManager
getConnectedSlaves
public Machine[] getConnectedSlaves()
- Returns the connected slaves in this cluster.
- Specified by:
getConnectedSlaves in interface ClusterClient
- Returns:
- the connected slaves in this cluster.
getZooKeeper
public org.apache.zookeeper.ZooKeeper getZooKeeper(boolean sync)
- Specified by:
getZooKeeper in class AbstractZooKeeperManager
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.