public class FsDirectoryService extends DirectoryService implements StoreRateLimiting.Listener, StoreRateLimiting.Provider
Modifier and Type | Field and Description |
---|---|
static Setting<org.apache.lucene.store.LockFactory> |
INDEX_LOCK_FACTOR_SETTING |
protected IndexStore |
indexStore |
deprecationLogger, indexSettings, logger, shardId
Constructor and Description |
---|
FsDirectoryService(IndexSettings indexSettings,
IndexStore indexStore,
ShardPath path) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.store.Directory |
newDirectory() |
protected org.apache.lucene.store.Directory |
newFSDirectory(java.nio.file.Path location,
org.apache.lucene.store.LockFactory lockFactory) |
void |
onPause(long nanos) |
StoreRateLimiting |
rateLimiting() |
long |
throttleTimeInNanos() |
indexSettings, nodeName, shardId
protected final IndexStore indexStore
public static final Setting<org.apache.lucene.store.LockFactory> INDEX_LOCK_FACTOR_SETTING
@Inject public FsDirectoryService(IndexSettings indexSettings, IndexStore indexStore, ShardPath path)
public long throttleTimeInNanos()
throttleTimeInNanos
in class DirectoryService
public StoreRateLimiting rateLimiting()
rateLimiting
in interface StoreRateLimiting.Provider
public org.apache.lucene.store.Directory newDirectory() throws java.io.IOException
newDirectory
in class DirectoryService
java.io.IOException
public void onPause(long nanos)
onPause
in interface StoreRateLimiting.Listener
protected org.apache.lucene.store.Directory newFSDirectory(java.nio.file.Path location, org.apache.lucene.store.LockFactory lockFactory) throws java.io.IOException
java.io.IOException