public class CoreState extends Object implements Inbound.MessageHandler<RaftMessages.ClusterIdAwareMessage>, LogPruner, org.neo4j.kernel.lifecycle.Lifecycle
| Constructor and Description |
|---|
CoreState(RaftMachine raftMachine,
LocalDatabase localDatabase,
ClusterIdentity clusterIdentity,
org.neo4j.logging.LogProvider logProvider,
CoreStateDownloader downloader,
CommandApplicationProcess commandApplicationProcess) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(RaftMessages.ClusterIdAwareMessage clusterIdAwareMessage) |
void |
init() |
void |
installSnapshot(CoreSnapshot coreSnapshot) |
long |
lastApplied() |
void |
prune() |
void |
shutdown() |
CoreSnapshot |
snapshot() |
void |
start() |
void |
stop() |
public CoreState(RaftMachine raftMachine, LocalDatabase localDatabase, ClusterIdentity clusterIdentity, org.neo4j.logging.LogProvider logProvider, CoreStateDownloader downloader, CommandApplicationProcess commandApplicationProcess)
public void handle(RaftMessages.ClusterIdAwareMessage clusterIdAwareMessage)
handle in interface Inbound.MessageHandler<RaftMessages.ClusterIdAwareMessage>public CoreSnapshot snapshot() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void installSnapshot(CoreSnapshot coreSnapshot) throws Throwable
Throwablepublic long lastApplied()
public void prune()
throws IOException
prune in interface LogPrunerIOExceptionpublic void init()
throws Throwable
init in interface org.neo4j.kernel.lifecycle.LifecycleThrowablepublic void start()
throws Throwable
start in interface org.neo4j.kernel.lifecycle.LifecycleThrowablepublic void stop()
throws Throwable
stop in interface org.neo4j.kernel.lifecycle.LifecycleThrowableCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.