org.neo4j.kernel.ha
Interface Broker

All Known Implementing Classes:
AbstractBroker, ZooKeeperBroker

public interface Broker


Method Summary
 org.neo4j.helpers.Pair<Master,Machine> bootstrap()
           
 org.neo4j.kernel.impl.nioneo.store.StoreId getClusterStoreId(boolean firstTime)
          Asks the cluster for and returns the storeId currently shared by the cluster members or a new one if none is there.
 ConnectionInformation[] getConnectionInformation()
           
 ConnectionInformation getConnectionInformation(int machineId)
           
 org.neo4j.helpers.Pair<Master,Machine> getMaster()
           
 Machine getMasterExceptMyself()
           
 org.neo4j.helpers.Pair<Master,Machine> getMasterReally(boolean allowChange)
           
 int getMyMachineId()
           
 boolean iAmMaster()
           
 Object instantiateMasterServer(org.neo4j.kernel.GraphDatabaseAPI graphDb)
           
 void logStatus(org.neo4j.kernel.impl.util.StringLogger msgLog)
           
 void notifyMasterChange(Machine newMaster)
           
 void rebindMaster()
           
 void restart()
           
 void setConnectionInformation(org.neo4j.kernel.KernelData kernel)
           
 void setLastCommittedTxId(long txId)
           
 void shutdown()
           
 void start()
           
 

Method Detail

getMaster

org.neo4j.helpers.Pair<Master,Machine> getMaster()

getMasterReally

org.neo4j.helpers.Pair<Master,Machine> getMasterReally(boolean allowChange)

getMasterExceptMyself

Machine getMasterExceptMyself()

setLastCommittedTxId

void setLastCommittedTxId(long txId)

iAmMaster

boolean iAmMaster()

getMyMachineId

int getMyMachineId()

instantiateMasterServer

Object instantiateMasterServer(org.neo4j.kernel.GraphDatabaseAPI graphDb)

rebindMaster

void rebindMaster()

notifyMasterChange

void notifyMasterChange(Machine newMaster)

shutdown

void shutdown()

restart

void restart()

start

void start()

setConnectionInformation

void setConnectionInformation(org.neo4j.kernel.KernelData kernel)

getConnectionInformation

ConnectionInformation getConnectionInformation(int machineId)

getConnectionInformation

ConnectionInformation[] getConnectionInformation()

getClusterStoreId

org.neo4j.kernel.impl.nioneo.store.StoreId getClusterStoreId(boolean firstTime)
Asks the cluster for and returns the storeId currently shared by the cluster members or a new one if none is there.

Parameters:
firstTime - False if it should timeout after a session interval passes - expected to be true in the same scenarios where bootstrap() is called instead of getMasterReally(boolean)
Returns:
The storeId existing in the cluster or a new one if none is found

logStatus

void logStatus(org.neo4j.kernel.impl.util.StringLogger msgLog)

bootstrap

org.neo4j.helpers.Pair<Master,Machine> bootstrap()


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.