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, 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
 

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,
                   org.neo4j.kernel.impl.util.StringLogger logger)
Method Detail

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.