org.neo4j.kernel.ha.cluster
Class AbstractModeSwitcher<T>
java.lang.Object
org.neo4j.kernel.ha.cluster.AbstractModeSwitcher<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- org.neo4j.kernel.lifecycle.Lifecycle
- Direct Known Subclasses:
- LockManagerModeSwitcher, PropertyKeyCreatorModeSwitcher, RelationshipTypeCreatorModeSwitcher, TxHookModeSwitcher, TxIdGeneratorModeSwitcher
public abstract class AbstractModeSwitcher<T>
- extends Object
- implements org.neo4j.kernel.lifecycle.Lifecycle
A mode switcher deals with how internal services should react when changing
between different cluster states, and allows them to switch to the new state
that reflects that.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractModeSwitcher
protected AbstractModeSwitcher(HighAvailability highAvailability,
DelegateInvocationHandler<T> delegate)
init
public void init()
throws Throwable
- Specified by:
init in interface org.neo4j.kernel.lifecycle.Lifecycle
- Throws:
Throwable
start
public void start()
throws Throwable
- Specified by:
start in interface org.neo4j.kernel.lifecycle.Lifecycle
- Throws:
Throwable
stop
public void stop()
throws Throwable
- Specified by:
stop in interface org.neo4j.kernel.lifecycle.Lifecycle
- Throws:
Throwable
shutdown
public void shutdown()
throws Throwable
- Specified by:
shutdown in interface org.neo4j.kernel.lifecycle.Lifecycle
- Throws:
Throwable
getSlaveImpl
protected abstract T getSlaveImpl(URI serverHaUri)
getMasterImpl
protected abstract T getMasterImpl()
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.