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,
org.neo4j.function.Supplier<SlaveFactory> slaveFactorySupplier,
org.neo4j.function.Factory<ConversationManager> conversationManagerFactory,
org.neo4j.function.BiFunction<ConversationManager,org.neo4j.kernel.lifecycle.LifeSupport,Master> masterFactory,
org.neo4j.function.BiFunction<Master,ConversationManager,MasterServer> masterServerFactory,
DelegateInvocationHandler<Master> masterDelegateHandler,
org.neo4j.cluster.member.ClusterMemberAvailability clusterMemberAvailability,
org.neo4j.function.Supplier<org.neo4j.kernel.NeoStoreDataSource> dataSourceSupplier,
org.neo4j.kernel.impl.transaction.TransactionCounters transactionCounters) |
| 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,
org.neo4j.function.Supplier<SlaveFactory> slaveFactorySupplier,
org.neo4j.function.Factory<ConversationManager> conversationManagerFactory,
org.neo4j.function.BiFunction<ConversationManager,org.neo4j.kernel.lifecycle.LifeSupport,Master> masterFactory,
org.neo4j.function.BiFunction<Master,ConversationManager,MasterServer> masterServerFactory,
DelegateInvocationHandler<Master> masterDelegateHandler,
org.neo4j.cluster.member.ClusterMemberAvailability clusterMemberAvailability,
org.neo4j.function.Supplier<org.neo4j.kernel.NeoStoreDataSource> dataSourceSupplier,
org.neo4j.kernel.impl.transaction.TransactionCounters transactionCounters)
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–2015 The Neo4j Graph Database Project. All rights reserved.