org.neo4j.kernel.ha
Interface Broker
- All Known Implementing Classes:
- AbstractBroker, ZooKeeperBroker
public interface Broker
getMaster
Pair<Master,Machine> getMaster()
getMasterReally
Pair<Master,Machine> getMasterReally(boolean allowChange)
getMasterExceptMyself
Machine getMasterExceptMyself()
setLastCommittedTxId
void setLastCommittedTxId(long txId)
iAmMaster
boolean iAmMaster()
getMyMachineId
int getMyMachineId()
instantiateMasterServer
Object instantiateMasterServer(GraphDatabaseService graphDb)
rebindMaster
void rebindMaster()
notifyMasterChange
void notifyMasterChange(Machine newMaster)
shutdown
void shutdown()
restart
void restart()
start
void start()
setConnectionInformation
void setConnectionInformation(KernelData kernel)
getConnectionInformation
ConnectionInformation getConnectionInformation(int machineId)
getConnectionInformation
ConnectionInformation[] getConnectionInformation()
getClusterStoreId
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(StringLogger msgLog)
bootstrap
Pair<Master,Machine> bootstrap()
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.