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() |
newFromDistributorindexSettings, nodeName, shardIdprotected final FsIndexStore indexStore
public FsDirectoryService(ShardId shardId, @IndexSettings Settings indexSettings, IndexStore indexStore)
public long throttleTimeInNanos()
throttleTimeInNanos in class DirectoryServicepublic StoreRateLimiting rateLimiting()
rateLimiting in interface StoreRateLimiting.Providerpublic static org.apache.lucene.store.LockFactory buildLockFactory(@IndexSettings Settings indexSettings) throws IOException
IOExceptionpublic final void renameFile(org.apache.lucene.store.Directory dir,
String from,
String to)
throws IOException
renameFile in class DirectoryServiceIOExceptionpublic org.apache.lucene.store.Directory[] build()
throws IOException
build in class DirectoryServiceIOExceptionprotected abstract org.apache.lucene.store.Directory newFSDirectory(File location, org.apache.lucene.store.LockFactory lockFactory) throws IOException
IOExceptionpublic void onPause(long nanos)
onPause in interface StoreRateLimiting.ListenerCopyright © 2009–2016. All rights reserved.