Package org.elasticsearch.index.store
Class FsDirectoryService
- java.lang.Object
-
- org.elasticsearch.index.shard.AbstractIndexShardComponent
-
- org.elasticsearch.index.store.DirectoryService
-
- org.elasticsearch.index.store.FsDirectoryService
-
- All Implemented Interfaces:
IndexShardComponent
public class FsDirectoryService extends DirectoryService
-
-
Field Summary
Fields Modifier and Type Field Description static Setting<org.apache.lucene.store.LockFactory>
INDEX_LOCK_FACTOR_SETTING
-
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
deprecationLogger, indexSettings, logger, shardId
-
-
Constructor Summary
Constructors Constructor Description FsDirectoryService(IndexSettings indexSettings, ShardPath path)
-
Method Summary
Modifier and Type Method Description org.apache.lucene.store.Directory
newDirectory()
protected org.apache.lucene.store.Directory
newFSDirectory(java.nio.file.Path location, org.apache.lucene.store.LockFactory lockFactory)
-
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, nodeName, shardId
-
-
-
-
Field Detail
-
INDEX_LOCK_FACTOR_SETTING
public static final Setting<org.apache.lucene.store.LockFactory> INDEX_LOCK_FACTOR_SETTING
-
-
Constructor Detail
-
FsDirectoryService
@Inject public FsDirectoryService(IndexSettings indexSettings, ShardPath path)
-
-
Method Detail
-
newDirectory
public org.apache.lucene.store.Directory newDirectory() throws java.io.IOException
- Specified by:
newDirectory
in classDirectoryService
- Throws:
java.io.IOException
-
newFSDirectory
protected org.apache.lucene.store.Directory newFSDirectory(java.nio.file.Path location, org.apache.lucene.store.LockFactory lockFactory) throws java.io.IOException
- Throws:
java.io.IOException
-
-