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, shardId
protected 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 DirectoryService
public StoreRateLimiting rateLimiting()
rateLimiting
in interface StoreRateLimiting.Provider
public static org.apache.lucene.store.LockFactory buildLockFactory(Settings indexSettings)
protected final org.apache.lucene.store.LockFactory buildLockFactory() throws IOException
IOException
public org.apache.lucene.store.Directory newDirectory() throws IOException
newDirectory
in class DirectoryService
IOException
public void onPause(long nanos)
onPause
in interface StoreRateLimiting.Listener
protected org.apache.lucene.store.Directory newFSDirectory(Path location, org.apache.lucene.store.LockFactory lockFactory) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.