org.elasticsearch.action.admin.indices.refresh
Class TransportRefreshAction

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.TransportAction<Request,Response>
          extended by org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>
              extended by org.elasticsearch.action.admin.indices.refresh.TransportRefreshAction

public class TransportRefreshAction
extends TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

Refresh action.


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
clusterService, threadPool, transportService
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportRefreshAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService)
           
 
Method Summary
protected  ClusterBlockException checkGlobalBlock(ClusterState state, RefreshRequest request)
           
protected  ClusterBlockException checkRequestBlock(ClusterState state, RefreshRequest countRequest, String[] concreteIndices)
           
protected  String executor()
           
protected  boolean ignoreException(Throwable t)
           
protected  boolean ignoreNonActiveExceptions()
           
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(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.
protected  String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
accumulateExceptions, doExecute
 
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportRefreshAction

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

executor

protected String executor()
Specified by:
executor in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

transportAction

protected String transportAction()
Specified by:
transportAction in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

newRequest

protected RefreshRequest newRequest()
Specified by:
newRequest in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

ignoreNonActiveExceptions

protected boolean ignoreNonActiveExceptions()
Overrides:
ignoreNonActiveExceptions in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

ignoreException

protected boolean ignoreException(Throwable t)
Overrides:
ignoreException in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

newResponse

protected RefreshResponse newResponse(RefreshRequest request,
                                      AtomicReferenceArray shardsResponses,
                                      ClusterState clusterState)
Specified by:
newResponse in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

newShardRequest

protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest newShardRequest()
Specified by:
newShardRequest in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

newShardRequest

protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest newShardRequest(ShardRouting shard,
                                                                                             RefreshRequest request)
Specified by:
newShardRequest in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

newShardResponse

protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse newShardResponse()
Specified by:
newShardResponse in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

shardOperation

protected org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse shardOperation(org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest request)
                                                                                      throws ElasticSearchException
Specified by:
shardOperation in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>
Throws:
ElasticSearchException

shards

protected GroupShardsIterator shards(ClusterState clusterState,
                                     RefreshRequest request,
                                     String[] concreteIndices)
The refresh request works against *all* shards.

Specified by:
shards in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

checkGlobalBlock

protected ClusterBlockException checkGlobalBlock(ClusterState state,
                                                 RefreshRequest request)
Specified by:
checkGlobalBlock in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>

checkRequestBlock

protected ClusterBlockException checkRequestBlock(ClusterState state,
                                                  RefreshRequest countRequest,
                                                  String[] concreteIndices)
Specified by:
checkRequestBlock in class TransportBroadcastOperationAction<RefreshRequest,RefreshResponse,org.elasticsearch.action.admin.indices.refresh.ShardRefreshRequest,org.elasticsearch.action.admin.indices.refresh.ShardRefreshResponse>


Copyright © 2009-2012. All Rights Reserved.