org.neo4j.kernel.ha
Class AbstractBroker

java.lang.Object
  extended by org.neo4j.kernel.ha.AbstractBroker
All Implemented Interfaces:
Broker
Direct Known Subclasses:
FakeMasterBroker, FakeSlaveBroker, ZooKeeperBroker

public abstract class AbstractBroker
extends Object
implements Broker


Constructor Summary
AbstractBroker(int myMachineId, org.neo4j.graphdb.GraphDatabaseService graphDb)
           
 
Method Summary
 org.neo4j.kernel.impl.nioneo.store.StoreId createCluster(org.neo4j.kernel.impl.nioneo.store.StoreId storeIdSuggestion)
           
 ConnectionInformation[] getConnectionInformation()
           
 ConnectionInformation getConnectionInformation(int machineId)
           
 Machine getMasterExceptMyself()
           
 int getMyMachineId()
           
 String getStoreDir()
           
 void rebindMaster()
           
 void setConnectionInformation(org.neo4j.kernel.KernelData kernel)
           
 void setLastCommittedTxId(long txId)
           
 void shutdown()
           
static BrokerFactory wrapSingleBroker(Broker broker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.neo4j.kernel.ha.Broker
getMaster, getMasterReally, iAmMaster, instantiateMasterServer
 

Constructor Detail

AbstractBroker

public AbstractBroker(int myMachineId,
                      org.neo4j.graphdb.GraphDatabaseService graphDb)
Method Detail

setLastCommittedTxId

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

getMyMachineId

public int getMyMachineId()
Specified by:
getMyMachineId in interface Broker

getStoreDir

public String getStoreDir()

shutdown

public void shutdown()
Specified by:
shutdown in interface Broker

getMasterExceptMyself

public Machine getMasterExceptMyself()
Specified by:
getMasterExceptMyself in interface Broker

rebindMaster

public void rebindMaster()
Specified by:
rebindMaster in interface Broker

wrapSingleBroker

public static BrokerFactory wrapSingleBroker(Broker 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

createCluster

public org.neo4j.kernel.impl.nioneo.store.StoreId createCluster(org.neo4j.kernel.impl.nioneo.store.StoreId storeIdSuggestion)
Specified by:
createCluster in interface Broker


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