org.neo4j.kernel
Class StoreLocker
java.lang.Object
org.neo4j.kernel.StoreLocker
public class StoreLocker
- extends Object
Constructor Summary |
StoreLocker(Config configuration,
org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction fileSystemAbstraction,
org.neo4j.kernel.impl.util.StringLogger logger)
|
Method Summary |
boolean |
lock(File storeDir)
Obtains lock on store file so that we can ensure the store is not shared between database instances
Creates store dir if necessary, creates store lock file if necessary |
void |
release()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STORE_LOCK_FILENAME
public static final String STORE_LOCK_FILENAME
- See Also:
- Constant Field Values
StoreLocker
public StoreLocker(Config configuration,
org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction fileSystemAbstraction,
org.neo4j.kernel.impl.util.StringLogger logger)
lock
public boolean lock(File storeDir)
- Obtains lock on store file so that we can ensure the store is not shared between database instances
Creates store dir if necessary, creates store lock file if necessary
- Returns:
- true if lock was successfully obtained, false otherwise
release
public void release()
throws IOException
- Throws:
IOException
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.