public class LocalDatabase extends Object implements org.neo4j.kernel.lifecycle.Lifecycle
| Constructor and Description |
|---|
LocalDatabase(File storeDir,
StoreFiles storeFiles,
org.neo4j.kernel.impl.transaction.state.DataSourceManager dataSourceManager,
org.neo4j.io.pagecache.PageCache pageCache,
org.neo4j.io.fs.FileSystemAbstraction fileSystemAbstraction,
Supplier<org.neo4j.kernel.internal.DatabaseHealth> databaseHealthSupplier,
org.neo4j.logging.LogProvider logProvider) |
| Modifier and Type | Method and Description |
|---|---|
<EXCEPTION extends Throwable> |
assertHealthy(Class<EXCEPTION> cause) |
org.neo4j.kernel.NeoStoreDataSource |
dataSource() |
void |
delete() |
void |
init() |
boolean |
isAvailable() |
boolean |
isEmpty() |
void |
panic(Throwable cause) |
void |
replaceWith(File sourceDir) |
void |
shutdown() |
void |
start() |
void |
stop() |
File |
storeDir() |
StoreId |
storeId() |
public LocalDatabase(File storeDir, StoreFiles storeFiles, org.neo4j.kernel.impl.transaction.state.DataSourceManager dataSourceManager, org.neo4j.io.pagecache.PageCache pageCache, org.neo4j.io.fs.FileSystemAbstraction fileSystemAbstraction, Supplier<org.neo4j.kernel.internal.DatabaseHealth> databaseHealthSupplier, org.neo4j.logging.LogProvider logProvider)
public 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.LifecycleThrowablepublic boolean isAvailable()
public void shutdown()
throws Throwable
shutdown in interface org.neo4j.kernel.lifecycle.LifecycleThrowablepublic StoreId storeId()
public void panic(Throwable cause)
public <EXCEPTION extends Throwable> void assertHealthy(Class<EXCEPTION> cause) throws EXCEPTION extends Throwable
EXCEPTION extends Throwablepublic void delete()
throws IOException
IOExceptionpublic boolean isEmpty()
throws IOException
IOExceptionpublic File storeDir()
public void replaceWith(File sourceDir) throws IOException
IOExceptionpublic org.neo4j.kernel.NeoStoreDataSource dataSource()
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.