org.elasticsearch.index.store.fs
Class FsDirectoryService

java.lang.Object
  extended by org.elasticsearch.index.shard.AbstractIndexShardComponent
      extended by org.elasticsearch.index.store.fs.FsDirectoryService
All Implemented Interfaces:
IndexShardComponent, DirectoryService
Direct Known Subclasses:
MmapFsDirectoryService, NioFsDirectoryService, SimpleFsDirectoryService

public abstract class FsDirectoryService
extends AbstractIndexShardComponent
implements DirectoryService


Field Summary
protected  FsIndexStore indexStore
           
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
FsDirectoryService(ShardId shardId, Settings indexSettings, IndexStore indexStore)
           
 
Method Summary
protected  org.apache.lucene.store.LockFactory buildLockFactory()
           
 void fullDelete(org.apache.lucene.store.Directory dir)
           
 void renameFile(org.apache.lucene.store.Directory dir, java.lang.String from, java.lang.String to)
           
 
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, managementGroupName, nodeName, shardId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.index.store.DirectoryService
build
 

Field Detail

indexStore

protected final FsIndexStore indexStore
Constructor Detail

FsDirectoryService

public FsDirectoryService(ShardId shardId,
                          @IndexSettings
                          Settings indexSettings,
                          IndexStore indexStore)
Method Detail

buildLockFactory

protected org.apache.lucene.store.LockFactory buildLockFactory()
                                                        throws java.io.IOException
Throws:
java.io.IOException

renameFile

public void renameFile(org.apache.lucene.store.Directory dir,
                       java.lang.String from,
                       java.lang.String to)
                throws java.io.IOException
Specified by:
renameFile in interface DirectoryService
Throws:
java.io.IOException

fullDelete

public void fullDelete(org.apache.lucene.store.Directory dir)
                throws java.io.IOException
Specified by:
fullDelete in interface DirectoryService
Throws:
java.io.IOException