org.neo4j.kernel.ha.zookeeper
Class ZooKeeperBroker

java.lang.Object
  extended by org.neo4j.kernel.ha.AbstractBroker
      extended by org.neo4j.kernel.ha.zookeeper.ZooKeeperBroker
All Implemented Interfaces:
Broker

public class ZooKeeperBroker
extends AbstractBroker


Constructor Summary
ZooKeeperBroker(String storeDir, int machineId, String zooKeeperServers, String haServer, ResponseReceiver receiver)
           
 
Method Summary
 ConnectionInformation[] getConnectionInformation()
           
 ConnectionInformation getConnectionInformation(int machineId)
           
 Pair<Master,Machine> getMaster()
           
 Machine getMasterExceptMyself()
           
 Pair<Master,Machine> getMasterReally()
           
 boolean iAmMaster()
           
 Object instantiateMasterServer(GraphDatabaseService graphDb)
           
 void rebindMaster()
           
 void setConnectionInformation(KernelExtension.KernelData kernel)
           
 void setLastCommittedTxId(long txId)
           
 void shutdown()
           
 
Methods inherited from class org.neo4j.kernel.ha.AbstractBroker
getMyMachineId, getStoreDir, wrapSingleBroker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZooKeeperBroker

public ZooKeeperBroker(String storeDir,
                       int machineId,
                       String zooKeeperServers,
                       String haServer,
                       ResponseReceiver receiver)
Method Detail

setConnectionInformation

public void setConnectionInformation(KernelExtension.KernelData kernel)
Specified by:
setConnectionInformation in interface Broker
Overrides:
setConnectionInformation in class AbstractBroker

getConnectionInformation

public ConnectionInformation getConnectionInformation(int machineId)
Specified by:
getConnectionInformation in interface Broker
Overrides:
getConnectionInformation in class AbstractBroker

getConnectionInformation

public ConnectionInformation[] getConnectionInformation()
Specified by:
getConnectionInformation in interface Broker
Overrides:
getConnectionInformation in class AbstractBroker

getMaster

public Pair<Master,Machine> getMaster()

getMasterReally

public Pair<Master,Machine> getMasterReally()

getMasterExceptMyself

public Machine getMasterExceptMyself()
Specified by:
getMasterExceptMyself in interface Broker
Overrides:
getMasterExceptMyself in class AbstractBroker

instantiateMasterServer

public Object instantiateMasterServer(GraphDatabaseService graphDb)

setLastCommittedTxId

public void setLastCommittedTxId(long txId)
Specified by:
setLastCommittedTxId in interface Broker
Overrides:
setLastCommittedTxId in class AbstractBroker

iAmMaster

public boolean iAmMaster()

shutdown

public void shutdown()
Specified by:
shutdown in interface Broker
Overrides:
shutdown in class AbstractBroker

rebindMaster

public void rebindMaster()
Specified by:
rebindMaster in interface Broker
Overrides:
rebindMaster in class AbstractBroker


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