org.elasticsearch.action.admin.indices.gateway.snapshot
Class TransportShardGatewaySnapshotAction

java.lang.Object
  extended by org.elasticsearch.util.component.AbstractComponent
      extended by org.elasticsearch.action.support.BaseAction<Request,Response>
          extended by org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction<org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest,org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse>
              extended by org.elasticsearch.action.admin.indices.gateway.snapshot.TransportShardGatewaySnapshotAction
All Implemented Interfaces:
Action<org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest,org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse>

public class TransportShardGatewaySnapshotAction
extends TransportShardReplicationOperationAction<org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest,org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
TransportShardReplicationOperationAction.ShardOperationRequest
 
Field Summary
 
Fields inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
clusterService, indicesService, shardStateAction, threadPool, transportService
 
Fields inherited from class org.elasticsearch.util.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportShardGatewaySnapshotAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction)
           
 
Method Summary
protected  boolean ignoreBackups()
          Snapshot should only happen on primary shards.
protected  org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest newRequestInstance()
           
protected  org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse newResponseInstance()
           
protected  void shardOperationOnBackup(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse shardOperationOnPrimary(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
           
protected  ShardsIterator shards(ClusterState clusterState, org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest request)
           
protected  java.lang.String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
doExecute, indexShard
 
Methods inherited from class org.elasticsearch.action.support.BaseAction
execute, execute
 
Methods inherited from class org.elasticsearch.util.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportShardGatewaySnapshotAction

@Inject
public TransportShardGatewaySnapshotAction(Settings settings,
                                                  TransportService transportService,
                                                  ClusterService clusterService,
                                                  IndicesService indicesService,
                                                  ThreadPool threadPool,
                                                  ShardStateAction shardStateAction)
Method Detail

newRequestInstance

protected org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest newRequestInstance()
Specified by:
newRequestInstance in class TransportShardReplicationOperationAction<org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest,org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse>

newResponseInstance

protected org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse newResponseInstance()
Specified by:
newResponseInstance in class TransportShardReplicationOperationAction<org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest,org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse>

transportAction

protected java.lang.String transportAction()
Specified by:
transportAction in class TransportShardReplicationOperationAction<org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest,org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse>

shardOperationOnPrimary

protected org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse shardOperationOnPrimary(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
Specified by:
shardOperationOnPrimary in class TransportShardReplicationOperationAction<org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest,org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse>

shardOperationOnBackup

protected void shardOperationOnBackup(TransportShardReplicationOperationAction.ShardOperationRequest shardRequest)
Specified by:
shardOperationOnBackup in class TransportShardReplicationOperationAction<org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest,org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse>

shards

protected ShardsIterator shards(ClusterState clusterState,
                                org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest request)
Specified by:
shards in class TransportShardReplicationOperationAction<org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest,org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse>

ignoreBackups

protected boolean ignoreBackups()
Snapshot should only happen on primary shards.

Overrides:
ignoreBackups in class TransportShardReplicationOperationAction<org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest,org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse>