org.neo4j.kernel
Class StoreLocker

java.lang.Object
  extended by org.neo4j.kernel.StoreLocker

public class StoreLocker
extends Object


Field Summary
static String STORE_LOCK_FILENAME
           
 
Constructor Summary
StoreLocker(Config configuration, 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
 

Field Detail

STORE_LOCK_FILENAME

public static final String STORE_LOCK_FILENAME
See Also:
Constant Field Values
Constructor Detail

StoreLocker

public StoreLocker(Config configuration,
                   org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction fileSystemAbstraction)
Method Detail

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.