org.neo4j.kernel
Class StoreLocker
java.lang.Object
org.neo4j.kernel.StoreLocker
public class StoreLocker
- extends Object
Constructor Summary |
StoreLocker(org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction fileSystemAbstraction)
|
Method Summary |
void |
checkLock(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(org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction fileSystemAbstraction)
checkLock
public void checkLock(File storeDir)
throws StoreLockException
- 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
- Throws:
StoreLockException
- if lock could not be acquired
release
public void release()
throws IOException
- Throws:
IOException
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.