public class SwitchToMaster extends Object implements AutoCloseable
| Constructor and Description |
|---|
SwitchToMaster(org.neo4j.kernel.impl.logging.LogService logService,
HaIdGeneratorFactory idGeneratorFactory,
org.neo4j.kernel.configuration.Config config,
Supplier<SlaveFactory> slaveFactorySupplier,
org.neo4j.function.Factory<ConversationManager> conversationManagerFactory,
BiFunction<ConversationManager,org.neo4j.kernel.lifecycle.LifeSupport,Master> masterFactory,
BiFunction<Master,ConversationManager,MasterServer> masterServerFactory,
DelegateInvocationHandler<Master> masterDelegateHandler,
org.neo4j.cluster.member.ClusterMemberAvailability clusterMemberAvailability,
Supplier<org.neo4j.kernel.NeoStoreDataSource> dataSourceSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
URI |
switchToMaster(org.neo4j.kernel.lifecycle.LifeSupport haCommunicationLife,
URI me)
Performs a switch to the master state.
|
public SwitchToMaster(org.neo4j.kernel.impl.logging.LogService logService,
HaIdGeneratorFactory idGeneratorFactory,
org.neo4j.kernel.configuration.Config config,
Supplier<SlaveFactory> slaveFactorySupplier,
org.neo4j.function.Factory<ConversationManager> conversationManagerFactory,
BiFunction<ConversationManager,org.neo4j.kernel.lifecycle.LifeSupport,Master> masterFactory,
BiFunction<Master,ConversationManager,MasterServer> masterServerFactory,
DelegateInvocationHandler<Master> masterDelegateHandler,
org.neo4j.cluster.member.ClusterMemberAvailability clusterMemberAvailability,
Supplier<org.neo4j.kernel.NeoStoreDataSource> dataSourceSupplier)
public URI switchToMaster(org.neo4j.kernel.lifecycle.LifeSupport haCommunicationLife, URI me)
haCommunicationLife - The LifeSupport instance to register communication endpoints.me - The URI that the communication endpoints should bind topublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.