org.elasticsearch.index.store.fs
Class FsIndexStore
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.store.support.AbstractIndexStore
org.elasticsearch.index.store.fs.FsIndexStore
- All Implemented Interfaces:
- IndexComponent, IndexStore
- Direct Known Subclasses:
- MmapFsIndexStore, NioFsIndexStore, SimpleFsIndexStore
public abstract class FsIndexStore
- extends AbstractIndexStore
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FsIndexStore
public FsIndexStore(Index index,
@IndexSettings
Settings indexSettings,
IndexService indexService,
NodeEnvironment nodeEnv)
persistent
public boolean persistent()
- Description copied from interface:
IndexStore
- Is the store a persistent store that can survive full restarts.
backingStoreTotalSpace
public ByteSizeValue backingStoreTotalSpace()
- Description copied from interface:
IndexStore
- Returns the backing store total space. Return -1 if not available.
backingStoreFreeSpace
public ByteSizeValue backingStoreFreeSpace()
- Description copied from interface:
IndexStore
- Returns the backing store free space. Return -1 if not available.
canDeleteUnallocated
public boolean canDeleteUnallocated(ShardId shardId)
- Description copied from interface:
IndexStore
- Returns true if this shard is allocated on this node. Allocated means
that it has storage files that can be deleted using
IndexStore.deleteUnallocated(org.elasticsearch.index.shard.ShardId)
.
- Specified by:
canDeleteUnallocated
in interface IndexStore
- Overrides:
canDeleteUnallocated
in class AbstractIndexStore
deleteUnallocated
public void deleteUnallocated(ShardId shardId)
throws java.io.IOException
- Description copied from interface:
IndexStore
- Deletes this shard store since its no longer allocated.
- Specified by:
deleteUnallocated
in interface IndexStore
- Overrides:
deleteUnallocated
in class AbstractIndexStore
- Throws:
java.io.IOException
shardLocations
public java.io.File[] shardLocations(ShardId shardId)
shardIndexLocations
public java.io.File[] shardIndexLocations(ShardId shardId)
shardTranslogLocations
public java.io.File[] shardTranslogLocations(ShardId shardId)