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() |
protected org.apache.lucene.store.LockFactory |
buildLockFactory() |
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.Providerprotected final org.apache.lucene.store.LockFactory buildLockFactory()
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–2015. All rights reserved.