public class DurableStateStorage<STATE> extends org.neo4j.kernel.lifecycle.LifecycleAdapter implements StateStorage<STATE>
| Constructor and Description |
|---|
DurableStateStorage(org.neo4j.io.fs.FileSystemAbstraction fsa,
File baseDir,
String name,
StateMarshal<STATE> marshal,
int numberOfEntriesBeforeRotation,
org.neo4j.logging.LogProvider logProvider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists() |
STATE |
getInitialState() |
void |
init() |
void |
persistStoreData(STATE state) |
void |
shutdown() |
public DurableStateStorage(org.neo4j.io.fs.FileSystemAbstraction fsa,
File baseDir,
String name,
StateMarshal<STATE> marshal,
int numberOfEntriesBeforeRotation,
org.neo4j.logging.LogProvider logProvider)
public boolean exists()
public STATE getInitialState()
getInitialState in interface StateStorage<STATE>public void init()
throws IOException
init in interface org.neo4j.kernel.lifecycle.Lifecycleinit in class org.neo4j.kernel.lifecycle.LifecycleAdapterIOExceptionpublic void shutdown()
throws IOException
shutdown in interface org.neo4j.kernel.lifecycle.Lifecycleshutdown in class org.neo4j.kernel.lifecycle.LifecycleAdapterIOExceptionpublic void persistStoreData(STATE state) throws IOException
persistStoreData in interface StateStorage<STATE>IOExceptionCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.