public class SwitchToSlave extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SwitchToSlave.Monitor |
| Constructor and Description |
|---|
SwitchToSlave(File storeDir,
org.neo4j.kernel.impl.logging.LogService logService,
org.neo4j.io.fs.FileSystemAbstraction fileSystemAbstraction,
ClusterMembers clusterMembers,
org.neo4j.kernel.configuration.Config config,
org.neo4j.graphdb.DependencyResolver resolver,
HaIdGeneratorFactory idGeneratorFactory,
DelegateInvocationHandler<Master> masterDelegateHandler,
org.neo4j.cluster.member.ClusterMemberAvailability clusterMemberAvailability,
RequestContextFactory requestContextFactory,
PullerFactory pullerFactory,
Iterable<org.neo4j.kernel.extension.KernelExtensionFactory<?>> kernelExtensions,
MasterClientResolver masterClientResolver,
SwitchToSlave.Monitor monitor,
org.neo4j.com.storecopy.StoreCopyClient.Monitor storeCopyMonitor,
org.neo4j.function.Supplier<org.neo4j.kernel.NeoStoreDataSource> neoDataSourceSupplier,
org.neo4j.function.Supplier<org.neo4j.kernel.impl.transaction.log.TransactionIdStore> transactionIdStoreSupplier,
org.neo4j.function.Function<Slave,SlaveServer> slaveServerFactory,
UpdatePuller updatePuller,
org.neo4j.io.pagecache.PageCache pageCache,
org.neo4j.kernel.monitoring.Monitors monitors,
org.neo4j.kernel.impl.transaction.TransactionCounters transactionCounters) |
| Modifier and Type | Method and Description |
|---|---|
URI |
switchToSlave(org.neo4j.kernel.lifecycle.LifeSupport haCommunicationLife,
URI me,
URI masterUri,
org.neo4j.helpers.CancellationRequest cancellationRequest)
Performs a switch to the slave state.
|
public SwitchToSlave(File storeDir, org.neo4j.kernel.impl.logging.LogService logService, org.neo4j.io.fs.FileSystemAbstraction fileSystemAbstraction, ClusterMembers clusterMembers, org.neo4j.kernel.configuration.Config config, org.neo4j.graphdb.DependencyResolver resolver, HaIdGeneratorFactory idGeneratorFactory, DelegateInvocationHandler<Master> masterDelegateHandler, org.neo4j.cluster.member.ClusterMemberAvailability clusterMemberAvailability, RequestContextFactory requestContextFactory, PullerFactory pullerFactory, Iterable<org.neo4j.kernel.extension.KernelExtensionFactory<?>> kernelExtensions, MasterClientResolver masterClientResolver, SwitchToSlave.Monitor monitor, org.neo4j.com.storecopy.StoreCopyClient.Monitor storeCopyMonitor, org.neo4j.function.Supplier<org.neo4j.kernel.NeoStoreDataSource> neoDataSourceSupplier, org.neo4j.function.Supplier<org.neo4j.kernel.impl.transaction.log.TransactionIdStore> transactionIdStoreSupplier, org.neo4j.function.Function<Slave,SlaveServer> slaveServerFactory, UpdatePuller updatePuller, org.neo4j.io.pagecache.PageCache pageCache, org.neo4j.kernel.monitoring.Monitors monitors, org.neo4j.kernel.impl.transaction.TransactionCounters transactionCounters)
public URI switchToSlave(org.neo4j.kernel.lifecycle.LifeSupport haCommunicationLife, URI me, URI masterUri, org.neo4j.helpers.CancellationRequest cancellationRequest) throws Throwable
haCommunicationLife - The LifeSupport instance to register the network facilities required for
communication with the rest of the clusterme - The URI this instance must bind tomasterUri - The URI of the master for which this instance must become slave tocancellationRequest - A handle for gracefully aborting the switchThrowableCopyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.