org.elasticsearch.gateway.hdfs
Class HdfsGateway

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.gateway.Gateway>
          extended by org.elasticsearch.gateway.shared.SharedStorageGateway
              extended by org.elasticsearch.gateway.blobstore.BlobStoreGateway
                  extended by org.elasticsearch.gateway.hdfs.HdfsGateway
All Implemented Interfaces:
org.elasticsearch.cluster.ClusterStateListener, org.elasticsearch.common.component.CloseableComponent, org.elasticsearch.common.component.LifecycleComponent<org.elasticsearch.gateway.Gateway>, org.elasticsearch.gateway.Gateway

public class HdfsGateway
extends org.elasticsearch.gateway.blobstore.BlobStoreGateway


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.gateway.Gateway
org.elasticsearch.gateway.Gateway.GatewayStateRecoveredListener
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
HdfsGateway(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.cluster.ClusterService clusterService, org.elasticsearch.cluster.metadata.MetaDataCreateIndexService createIndexService, org.elasticsearch.cluster.ClusterName clusterName, org.elasticsearch.threadpool.ThreadPool threadPool)
           
 
Method Summary
protected  void doClose()
           
 java.lang.Class<? extends org.elasticsearch.common.inject.Module> suggestIndexGateway()
           
 java.lang.String type()
           
 
Methods inherited from class org.elasticsearch.gateway.blobstore.BlobStoreGateway
basePath, blobStore, chunkSize, findCommitPoint, initialize, read, reset, toString, write
 
Methods inherited from class org.elasticsearch.gateway.shared.SharedStorageGateway
clusterChanged, doStart, doStop, performStateRecovery
 
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from interface org.elasticsearch.common.component.CloseableComponent
close
 

Constructor Detail

HdfsGateway

@Inject
public HdfsGateway(org.elasticsearch.common.settings.Settings settings,
                          org.elasticsearch.cluster.ClusterService clusterService,
                          org.elasticsearch.cluster.metadata.MetaDataCreateIndexService createIndexService,
                          org.elasticsearch.cluster.ClusterName clusterName,
                          org.elasticsearch.threadpool.ThreadPool threadPool)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

type

public java.lang.String type()

suggestIndexGateway

public java.lang.Class<? extends org.elasticsearch.common.inject.Module> suggestIndexGateway()

doClose

protected void doClose()
                throws org.elasticsearch.ElasticSearchException
Overrides:
doClose in class org.elasticsearch.gateway.shared.SharedStorageGateway
Throws:
org.elasticsearch.ElasticSearchException