org.elasticsearch.action.admin.indices.gateway.snapshot
Class TransportShardGatewaySnapshotAction
java.lang.Object
org.elasticsearch.util.component.AbstractComponent
org.elasticsearch.action.support.BaseAction<Request,Response>
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction<org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotRequest,org.elasticsearch.action.admin.indices.gateway.snapshot.ShardGatewaySnapshotResponse>
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportShardGatewaySnapshotAction
@Inject
public TransportShardGatewaySnapshotAction(Settings settings,
TransportService transportService,
ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ShardStateAction shardStateAction)
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>