org.neo4j.kernel.ha
Class FakeMasterBroker

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

public class FakeMasterBroker
extends AbstractBroker


Constructor Summary
FakeMasterBroker(int myMachineId, GraphDatabaseService graphDb, Map<String,String> config)
           
 
Method Summary
 org.neo4j.kernel.impl.nioneo.store.StoreId getClusterStoreId()
           
 Pair<Master,Machine> getMaster()
           
 Machine getMasterMachine()
           
 Pair<Master,Machine> getMasterReally(boolean allowChange)
           
 boolean iAmMaster()
           
 Object instantiateMasterServer(AbstractGraphDatabase graphDb)
           
 
Methods inherited from class org.neo4j.kernel.ha.AbstractBroker
getConnectionInformation, getConnectionInformation, getMasterExceptMyself, getMyMachineId, getStoreDir, logStatus, notifyMasterChange, rebindMaster, setConnectionInformation, setLastCommittedTxId, shutdown, wrapSingleBroker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeMasterBroker

public FakeMasterBroker(int myMachineId,
                        GraphDatabaseService graphDb,
                        Map<String,String> config)
Method Detail

getClusterStoreId

public org.neo4j.kernel.impl.nioneo.store.StoreId getClusterStoreId()
Specified by:
getClusterStoreId in interface Broker
Overrides:
getClusterStoreId in class AbstractBroker

getMasterMachine

public Machine getMasterMachine()

getMaster

public Pair<Master,Machine> getMaster()

getMasterReally

public Pair<Master,Machine> getMasterReally(boolean allowChange)

iAmMaster

public boolean iAmMaster()

instantiateMasterServer

public Object instantiateMasterServer(AbstractGraphDatabase graphDb)


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