org.elasticsearch.index.gateway.hdfs
Class HdfsIndexGateway

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.gateway.hdfs.HdfsIndexGateway
All Implemented Interfaces:
org.elasticsearch.index.gateway.IndexGateway, org.elasticsearch.index.IndexComponent, org.elasticsearch.util.component.CloseableIndexComponent

public class HdfsIndexGateway
extends org.elasticsearch.index.AbstractIndexComponent
implements org.elasticsearch.index.gateway.IndexGateway


Field Summary
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
HdfsIndexGateway(org.elasticsearch.index.Index index, org.elasticsearch.util.settings.Settings indexSettings, org.elasticsearch.gateway.Gateway gateway)
           
 
Method Summary
 void close(boolean delete)
           
 org.apache.hadoop.fs.FileSystem fileSystem()
           
 org.apache.hadoop.fs.Path indexPath()
           
 java.lang.Class<? extends org.elasticsearch.index.gateway.IndexShardGateway> shardGatewayClass()
           
 
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.IndexComponent
index
 

Constructor Detail

HdfsIndexGateway

@Inject
public HdfsIndexGateway(org.elasticsearch.index.Index index,
                               @IndexSettings
                               org.elasticsearch.util.settings.Settings indexSettings,
                               org.elasticsearch.gateway.Gateway gateway)
Method Detail

fileSystem

public org.apache.hadoop.fs.FileSystem fileSystem()

indexPath

public org.apache.hadoop.fs.Path indexPath()

shardGatewayClass

public java.lang.Class<? extends org.elasticsearch.index.gateway.IndexShardGateway> shardGatewayClass()
Specified by:
shardGatewayClass in interface org.elasticsearch.index.gateway.IndexGateway

close

public void close(boolean delete)
           throws org.elasticsearch.ElasticSearchException
Specified by:
close in interface org.elasticsearch.util.component.CloseableIndexComponent
Throws:
org.elasticsearch.ElasticSearchException