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,
Supplier<org.neo4j.kernel.internal.DatabaseHealth> databaseHealthSupplier,
org.neo4j.kernel.impl.util.watcher.FileSystemWatcherService watcherService,
org.neo4j.kernel.AvailabilityGuard availabilityGuard,
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() |
org.neo4j.kernel.impl.api.TransactionCommitProcess |
getCommitProcess() |
void |
init() |
boolean |
isAvailable() |
boolean |
isEmpty() |
void |
panic(Throwable cause) |
void |
registerCommitProcessDependencies(org.neo4j.kernel.impl.transaction.log.TransactionAppender appender,
org.neo4j.storageengine.api.StorageEngine applier)
Called by the DataSourceManager during start.
|
void |
shutdown() |
void |
start() |
void |
stop() |
void |
stopForStoreCopy()
Stop database to perform a store copy.
|
File |
storeDir() |
StoreId |
storeId() |
public LocalDatabase(File storeDir, StoreFiles storeFiles, org.neo4j.kernel.impl.transaction.state.DataSourceManager dataSourceManager, Supplier<org.neo4j.kernel.internal.DatabaseHealth> databaseHealthSupplier, org.neo4j.kernel.impl.util.watcher.FileSystemWatcherService watcherService, org.neo4j.kernel.AvailabilityGuard availabilityGuard, 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 void stopForStoreCopy()
throws Throwable
AvailabilityGuard with
a more friendly blocking requirement.Throwable - if any of the components are unable to stop.public 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 org.neo4j.kernel.NeoStoreDataSource dataSource()
public void registerCommitProcessDependencies(org.neo4j.kernel.impl.transaction.log.TransactionAppender appender,
org.neo4j.storageengine.api.StorageEngine applier)
public org.neo4j.kernel.impl.api.TransactionCommitProcess getCommitProcess()
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.