org.neo4j.kernel.ha
Class AbstractBroker
java.lang.Object
org.neo4j.kernel.ha.AbstractBroker
- All Implemented Interfaces:
- Broker
- Direct Known Subclasses:
- ZooKeeperBroker
public abstract class AbstractBroker
- extends Object
- implements Broker
|
Field Summary |
protected org.neo4j.kernel.configuration.Config |
config
|
|
Constructor Summary |
AbstractBroker(org.neo4j.kernel.configuration.Config config)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
protected org.neo4j.kernel.configuration.Config config
AbstractBroker
public AbstractBroker(org.neo4j.kernel.configuration.Config config)
setLastCommittedTxId
public void setLastCommittedTxId(long txId)
- Specified by:
setLastCommittedTxId in interface Broker
getConfig
protected org.neo4j.kernel.configuration.Config getConfig()
getMyMachineId
public int getMyMachineId()
- Specified by:
getMyMachineId in interface Broker
notifyMasterChange
public void notifyMasterChange(Machine newMaster)
- Specified by:
notifyMasterChange in interface Broker
shutdown
public void shutdown()
- Specified by:
shutdown in interface Broker
restart
public void restart()
- Specified by:
restart in interface Broker
start
public void start()
- Specified by:
start in interface Broker
getMasterExceptMyself
public Machine getMasterExceptMyself()
- Specified by:
getMasterExceptMyself in interface Broker
rebindMaster
public void rebindMaster()
- Specified by:
rebindMaster in interface Broker
setConnectionInformation
public void setConnectionInformation(org.neo4j.kernel.KernelData kernel)
- Specified by:
setConnectionInformation in interface Broker
getConnectionInformation
public ConnectionInformation getConnectionInformation(int machineId)
- Specified by:
getConnectionInformation in interface Broker
getConnectionInformation
public ConnectionInformation[] getConnectionInformation()
- Specified by:
getConnectionInformation in interface Broker
getClusterStoreId
public org.neo4j.kernel.impl.nioneo.store.StoreId getClusterStoreId(boolean firstTime)
- Description copied from interface:
Broker
- Asks the cluster for and returns the storeId currently shared by the
cluster members or a new one if none is there.
- Specified by:
getClusterStoreId in interface Broker
- Parameters:
firstTime - False if it should timeout after a session interval
passes -
expected to be true in the same scenarios where
Broker.bootstrap() is called instead of
Broker.getMasterReally(boolean)
- Returns:
- The storeId existing in the cluster or a new one if none is found
logStatus
public void logStatus(org.neo4j.kernel.impl.util.StringLogger msgLog)
- Specified by:
logStatus in interface Broker
bootstrap
public org.neo4j.helpers.Pair<Master,Machine> bootstrap()
- Specified by:
bootstrap in interface Broker
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.