org.elasticsearch.index.gateway.hdfs
Class HdfsIndexShardGateway

java.lang.Object
  extended by org.elasticsearch.index.shard.AbstractIndexShardComponent
      extended by org.elasticsearch.index.gateway.hdfs.HdfsIndexShardGateway
All Implemented Interfaces:
org.elasticsearch.index.gateway.IndexShardGateway, org.elasticsearch.index.shard.IndexShardComponent, org.elasticsearch.util.component.CloseableIndexComponent

public class HdfsIndexShardGateway
extends org.elasticsearch.index.shard.AbstractIndexShardComponent
implements org.elasticsearch.index.gateway.IndexShardGateway


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.gateway.IndexShardGateway
org.elasticsearch.index.gateway.IndexShardGateway.RecoveryStatus, org.elasticsearch.index.gateway.IndexShardGateway.Snapshot, org.elasticsearch.index.gateway.IndexShardGateway.SnapshotStatus
 
Field Summary
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
HdfsIndexShardGateway(org.elasticsearch.index.shard.ShardId shardId, org.elasticsearch.util.settings.Settings indexSettings, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.index.gateway.IndexGateway hdfsIndexGateway, org.elasticsearch.index.shard.service.IndexShard indexShard, org.elasticsearch.index.store.Store store, org.elasticsearch.indices.recovery.throttler.RecoveryThrottler recoveryThrottler)
           
 
Method Summary
 void close(boolean delete)
           
 org.elasticsearch.index.gateway.IndexShardGateway.RecoveryStatus recover()
           
 boolean requiresSnapshotScheduling()
           
 org.elasticsearch.index.gateway.IndexShardGateway.SnapshotStatus snapshot(org.elasticsearch.index.gateway.IndexShardGateway.Snapshot snapshot)
           
 
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, managementGroupName, nodeName, shardId
 
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.shard.IndexShardComponent
indexSettings, shardId
 

Constructor Detail

HdfsIndexShardGateway

@Inject
public HdfsIndexShardGateway(org.elasticsearch.index.shard.ShardId shardId,
                                    @IndexSettings
                                    org.elasticsearch.util.settings.Settings indexSettings,
                                    org.elasticsearch.threadpool.ThreadPool threadPool,
                                    org.elasticsearch.index.gateway.IndexGateway hdfsIndexGateway,
                                    org.elasticsearch.index.shard.service.IndexShard indexShard,
                                    org.elasticsearch.index.store.Store store,
                                    org.elasticsearch.indices.recovery.throttler.RecoveryThrottler recoveryThrottler)
Method Detail

close

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

requiresSnapshotScheduling

public boolean requiresSnapshotScheduling()
Specified by:
requiresSnapshotScheduling in interface org.elasticsearch.index.gateway.IndexShardGateway

recover

public org.elasticsearch.index.gateway.IndexShardGateway.RecoveryStatus recover()
                                                                         throws org.elasticsearch.index.gateway.IndexShardGatewayRecoveryException
Specified by:
recover in interface org.elasticsearch.index.gateway.IndexShardGateway
Throws:
org.elasticsearch.index.gateway.IndexShardGatewayRecoveryException

snapshot

public org.elasticsearch.index.gateway.IndexShardGateway.SnapshotStatus snapshot(org.elasticsearch.index.gateway.IndexShardGateway.Snapshot snapshot)
Specified by:
snapshot in interface org.elasticsearch.index.gateway.IndexShardGateway