org.elasticsearch.index.store.fs
Class FsIndexStore

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.store.support.AbstractIndexStore
          extended by org.elasticsearch.index.store.fs.FsIndexStore
All Implemented Interfaces:
IndexComponent, IndexStore
Direct Known Subclasses:
MmapFsIndexStore, NioFsIndexStore, SimpleFsIndexStore

public abstract class FsIndexStore
extends AbstractIndexStore


Field Summary
 
Fields inherited from class org.elasticsearch.index.store.support.AbstractIndexStore
indexService
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
FsIndexStore(Index index, Settings indexSettings, IndexService indexService, NodeEnvironment nodeEnv)
           
 
Method Summary
 ByteSizeValue backingStoreFreeSpace()
          Returns the backing store free space.
 ByteSizeValue backingStoreTotalSpace()
          Returns the backing store total space.
 void deleteUnallocated(ShardId shardId)
           
 boolean persistent()
          Is the store a persistent store that can survive full restarts.
 java.io.File shardIndexLocation(ShardId shardId)
           
 java.io.File shardLocation(ShardId shardId)
           
 java.io.File shardTranslogLocation(ShardId shardId)
           
 
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
index, nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.index.store.IndexStore
shardStoreClass
 
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
 

Constructor Detail

FsIndexStore

public FsIndexStore(Index index,
                    @IndexSettings
                    Settings indexSettings,
                    IndexService indexService,
                    NodeEnvironment nodeEnv)
Method Detail

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.


deleteUnallocated

public void deleteUnallocated(ShardId shardId)
                       throws java.io.IOException
Specified by:
deleteUnallocated in interface IndexStore
Overrides:
deleteUnallocated in class AbstractIndexStore
Throws:
java.io.IOException

shardLocation

public java.io.File shardLocation(ShardId shardId)

shardIndexLocation

public java.io.File shardIndexLocation(ShardId shardId)

shardTranslogLocation

public java.io.File shardTranslogLocation(ShardId shardId)