public class TransportRefreshAction extends TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>
TransportBroadcastOperationAction.AsyncBroadcastActionclusterService, threadPool, transportServiceactionNamecomponentSettings, logger, settings| Constructor and Description |
|---|
TransportRefreshAction(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
IndicesService indicesService,
ActionFilters actionFilters) |
| Modifier and Type | Method and Description |
|---|---|
protected ClusterBlockException |
checkGlobalBlock(ClusterState state,
RefreshRequest request) |
protected ClusterBlockException |
checkRequestBlock(ClusterState state,
RefreshRequest countRequest,
String[] concreteIndices) |
protected String |
executor() |
protected RefreshRequest |
newRequest() |
protected RefreshResponse |
newResponse(RefreshRequest request,
AtomicReferenceArray shardsResponses,
ClusterState clusterState) |
protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest |
newShardRequest() |
protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest |
newShardRequest(int numShards,
ShardRouting shard,
RefreshRequest request) |
protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse |
newShardResponse() |
protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse |
shardOperation(org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest request) |
protected GroupShardsIterator |
shards(ClusterState clusterState,
RefreshRequest request,
String[] concreteIndices)
The refresh request works against *all* shards.
|
doExecuteexecute, execute, forceThreadedListenernodeName@Inject public TransportRefreshAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ActionFilters actionFilters)
protected String executor()
executor in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>protected RefreshRequest newRequest()
newRequest in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>protected RefreshResponse newResponse(RefreshRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState)
newResponse in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest newShardRequest()
newShardRequest in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest newShardRequest(int numShards,
ShardRouting shard,
RefreshRequest request)
newShardRequest in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse newShardResponse()
newShardResponse in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse shardOperation(org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest request)
throws ElasticsearchException
shardOperation in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>ElasticsearchExceptionprotected GroupShardsIterator shards(ClusterState clusterState, RefreshRequest request, String[] concreteIndices)
shards in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>protected ClusterBlockException checkGlobalBlock(ClusterState state, RefreshRequest request)
checkGlobalBlock in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>protected ClusterBlockException checkRequestBlock(ClusterState state, RefreshRequest countRequest, String[] concreteIndices)
checkRequestBlock in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>Copyright © 2009–2016. All rights reserved.