public class FsDirectoryService extends DirectoryService implements StoreRateLimiting.Listener, StoreRateLimiting.Provider
| Modifier and Type | Field and Description |
|---|---|
protected IndexStore |
indexStore |
deprecationLogger, indexSettings, logger, shardId| Constructor and Description |
|---|
FsDirectoryService(IndexSettingsService indexSettingsService,
IndexStore indexStore,
ShardPath path) |
FsDirectoryService(Settings indexSettings,
IndexStore indexStore,
ShardPath path) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.store.LockFactory |
buildLockFactory() |
static org.apache.lucene.store.LockFactory |
buildLockFactory(Settings indexSettings) |
org.apache.lucene.store.Directory |
newDirectory() |
protected org.apache.lucene.store.Directory |
newFSDirectory(Path location,
org.apache.lucene.store.LockFactory lockFactory) |
void |
onPause(long nanos) |
StoreRateLimiting |
rateLimiting() |
long |
throttleTimeInNanos() |
indexSettings, nodeName, shardIdprotected final IndexStore indexStore
@Inject public FsDirectoryService(IndexSettingsService indexSettingsService, IndexStore indexStore, ShardPath path)
public FsDirectoryService(Settings indexSettings, IndexStore indexStore, ShardPath path)
public long throttleTimeInNanos()
throttleTimeInNanos in class DirectoryServicepublic StoreRateLimiting rateLimiting()
rateLimiting in interface StoreRateLimiting.Providerpublic static org.apache.lucene.store.LockFactory buildLockFactory(Settings indexSettings)
protected final org.apache.lucene.store.LockFactory buildLockFactory()
throws IOException
IOExceptionpublic org.apache.lucene.store.Directory newDirectory()
throws IOException
newDirectory in class DirectoryServiceIOExceptionpublic void onPause(long nanos)
onPause in interface StoreRateLimiting.Listenerprotected org.apache.lucene.store.Directory newFSDirectory(Path location, org.apache.lucene.store.LockFactory lockFactory) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.