Neo4j Enterprise

org.neo4j.kernel
Class DefaultFileSystemAbstraction

java.lang.Object
  extended by org.neo4j.kernel.DefaultFileSystemAbstraction
All Implemented Interfaces:
org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction

public class DefaultFileSystemAbstraction
extends Object
implements org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction

Default file system abstraction that creates files using the underlying file system.


Constructor Summary
DefaultFileSystemAbstraction()
           
 
Method Summary
 void autoCreatePath(File path)
           
 void copyFile(File fromFile, File toFile)
           
 FileChannel create(File fileName)
           
 boolean deleteFile(File fileName)
           
 boolean fileExists(File fileName)
           
 long getFileSize(File fileName)
           
 FileChannel open(File fileName, String mode)
           
 boolean renameFile(File from, File to)
           
 org.neo4j.kernel.impl.nioneo.store.FileLock tryLock(File fileName, FileChannel channel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFileSystemAbstraction

public DefaultFileSystemAbstraction()
Method Detail

open

public FileChannel open(File fileName,
                        String mode)
                 throws IOException
Specified by:
open in interface org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction
Throws:
IOException

tryLock

public org.neo4j.kernel.impl.nioneo.store.FileLock tryLock(File fileName,
                                                           FileChannel channel)
                                                    throws IOException
Specified by:
tryLock in interface org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction
Throws:
IOException

create

public FileChannel create(File fileName)
                   throws IOException
Specified by:
create in interface org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction
Throws:
IOException

fileExists

public boolean fileExists(File fileName)
Specified by:
fileExists in interface org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction

getFileSize

public long getFileSize(File fileName)
Specified by:
getFileSize in interface org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction

deleteFile

public boolean deleteFile(File fileName)
Specified by:
deleteFile in interface org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction

renameFile

public boolean renameFile(File from,
                          File to)
                   throws IOException
Specified by:
renameFile in interface org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction
Throws:
IOException

copyFile

public void copyFile(File fromFile,
                     File toFile)
              throws IOException
Specified by:
copyFile in interface org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction
Throws:
IOException

autoCreatePath

public void autoCreatePath(File path)
                    throws IOException
Specified by:
autoCreatePath in interface org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction
Throws:
IOException

Neo4j Enterprise

Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.