public abstract class FsDirectoryService extends DirectoryService implements StoreRateLimiting.Listener, StoreRateLimiting.Provider
Modifier and Type | Field and Description |
---|---|
protected FsIndexStore |
indexStore |
componentSettings, indexSettings, logger, shardId
Constructor and Description |
---|
FsDirectoryService(ShardId shardId,
Settings indexSettings,
IndexStore indexStore) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.store.Directory[] |
build() |
static org.apache.lucene.store.LockFactory |
buildLockFactory(Settings indexSettings) |
protected abstract org.apache.lucene.store.Directory |
newFSDirectory(File location,
org.apache.lucene.store.LockFactory lockFactory) |
void |
onPause(long nanos) |
StoreRateLimiting |
rateLimiting() |
void |
renameFile(org.apache.lucene.store.Directory dir,
String from,
String to) |
long |
throttleTimeInNanos() |
newFromDistributor
indexSettings, nodeName, shardId
protected final FsIndexStore indexStore
public FsDirectoryService(ShardId shardId, @IndexSettings Settings indexSettings, IndexStore indexStore)
public long throttleTimeInNanos()
throttleTimeInNanos
in class DirectoryService
public StoreRateLimiting rateLimiting()
rateLimiting
in interface StoreRateLimiting.Provider
public static org.apache.lucene.store.LockFactory buildLockFactory(@IndexSettings Settings indexSettings) throws IOException
IOException
public final void renameFile(org.apache.lucene.store.Directory dir, String from, String to) throws IOException
renameFile
in class DirectoryService
IOException
public org.apache.lucene.store.Directory[] build() throws IOException
build
in class DirectoryService
IOException
protected abstract org.apache.lucene.store.Directory newFSDirectory(File location, org.apache.lucene.store.LockFactory lockFactory) throws IOException
IOException
public void onPause(long nanos)
onPause
in interface StoreRateLimiting.Listener
Copyright © 2009–2016. All rights reserved.