org.neo4j.kernel.ha.cluster
Class SwitchToMaster

java.lang.Object
  extended by org.neo4j.kernel.ha.cluster.SwitchToMaster

public class SwitchToMaster
extends Object


Constructor Summary
SwitchToMaster(org.neo4j.kernel.logging.Logging logging, org.neo4j.kernel.impl.util.StringLogger msgLog, org.neo4j.kernel.GraphDatabaseAPI graphDb, HaIdGeneratorFactory idGeneratorFactory, org.neo4j.kernel.configuration.Config config, org.neo4j.graphdb.DependencyResolver resolver, DelegateInvocationHandler<Master> masterDelegateHandler, org.neo4j.cluster.member.ClusterMemberAvailability clusterMemberAvailability)
           
 
Method Summary
 URI switchToMaster(org.neo4j.kernel.lifecycle.LifeSupport haCommunicationLife, URI me, org.neo4j.helpers.CancellationRequest cancellationRequest)
          Performs a switch to the master state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchToMaster

public SwitchToMaster(org.neo4j.kernel.logging.Logging logging,
                      org.neo4j.kernel.impl.util.StringLogger msgLog,
                      org.neo4j.kernel.GraphDatabaseAPI graphDb,
                      HaIdGeneratorFactory idGeneratorFactory,
                      org.neo4j.kernel.configuration.Config config,
                      org.neo4j.graphdb.DependencyResolver resolver,
                      DelegateInvocationHandler<Master> masterDelegateHandler,
                      org.neo4j.cluster.member.ClusterMemberAvailability clusterMemberAvailability)
Method Detail

switchToMaster

public URI switchToMaster(org.neo4j.kernel.lifecycle.LifeSupport haCommunicationLife,
                          URI me,
                          org.neo4j.helpers.CancellationRequest cancellationRequest)
Performs a switch to the master state. Starts communication endpoints, switches components to the master state and broadcasts the appropriate Master Is Available event.

Parameters:
haCommunicationLife - The LifeSupport instance to register communication endpoints.
me - The URI that the communication endpoints should bind to
cancellationRequest - A handle for gracefully aborting the switch
Returns:
The URI at which the master communication was bound.


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