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, shardIdprotected 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 DirectoryServicepublic StoreRateLimiting rateLimiting()
rateLimiting in interface StoreRateLimiting.Providerpublic org.apache.lucene.store.Directory newDirectory()
throws java.io.IOException
newDirectory in class DirectoryServicejava.io.IOExceptionpublic void onPause(long nanos)
onPause in interface StoreRateLimiting.Listenerprotected org.apache.lucene.store.Directory newFSDirectory(java.nio.file.Path location,
org.apache.lucene.store.LockFactory lockFactory)
throws java.io.IOException
java.io.IOException