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:
StoreRateLimiting.Listener, StoreRateLimiting.Provider, IndexShardComponent, DirectoryService
Direct Known Subclasses:
MmapFsDirectoryService, NioFsDirectoryService, SimpleFsDirectoryService

public abstract class FsDirectoryService
extends AbstractIndexShardComponent
implements DirectoryService, StoreRateLimiting.Listener, StoreRateLimiting.Provider


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 onPause(long nanos)
           
 StoreRateLimiting rateLimiting()
           
 void renameFile(org.apache.lucene.store.Directory dir, String from, String to)
           
 long throttleTimeInNanos()
           
 
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

throttleTimeInNanos

public long throttleTimeInNanos()
Specified by:
throttleTimeInNanos in interface DirectoryService

rateLimiting

public StoreRateLimiting rateLimiting()
Specified by:
rateLimiting in interface StoreRateLimiting.Provider

buildLockFactory

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

renameFile

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

fullDelete

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

onPause

public void onPause(long nanos)
Specified by:
onPause in interface StoreRateLimiting.Listener


Copyright © 2009-2012. All Rights Reserved.