org.elasticsearch.action.admin.indices.flush
Class TransportFlushAction

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<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>
              extended by org.elasticsearch.action.admin.indices.flush.TransportFlushAction

public class TransportFlushAction
extends TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>

Flush 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
TransportFlushAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService)
           
 
Method Summary
protected  ClusterBlockException checkGlobalBlock(ClusterState state, FlushRequest request)
           
protected  ClusterBlockException checkRequestBlock(ClusterState state, FlushRequest countRequest, String[] concreteIndices)
           
protected  String executor()
           
protected  boolean ignoreNonActiveExceptions()
           
protected  FlushRequest newRequest()
           
protected  FlushResponse newResponse(FlushRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState)
           
protected  org.elasticsearch.action.admin.indices.flush.ShardFlushRequest newShardRequest()
           
protected  org.elasticsearch.action.admin.indices.flush.ShardFlushRequest newShardRequest(ShardRouting shard, FlushRequest request)
           
protected  org.elasticsearch.action.admin.indices.flush.ShardFlushResponse newShardResponse()
           
protected  org.elasticsearch.action.admin.indices.flush.ShardFlushResponse shardOperation(org.elasticsearch.action.admin.indices.flush.ShardFlushRequest request)
           
protected  GroupShardsIterator shards(ClusterState clusterState, FlushRequest 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, ignoreException
 
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

TransportFlushAction

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

executor

protected String executor()
Specified by:
executor in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>

transportAction

protected String transportAction()
Specified by:
transportAction in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>

newRequest

protected FlushRequest newRequest()
Specified by:
newRequest in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>

ignoreNonActiveExceptions

protected boolean ignoreNonActiveExceptions()
Overrides:
ignoreNonActiveExceptions in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>

newResponse

protected FlushResponse newResponse(FlushRequest request,
                                    AtomicReferenceArray shardsResponses,
                                    ClusterState clusterState)
Specified by:
newResponse in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>

newShardRequest

protected org.elasticsearch.action.admin.indices.flush.ShardFlushRequest newShardRequest()
Specified by:
newShardRequest in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>

newShardRequest

protected org.elasticsearch.action.admin.indices.flush.ShardFlushRequest newShardRequest(ShardRouting shard,
                                                                                         FlushRequest request)
Specified by:
newShardRequest in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>

newShardResponse

protected org.elasticsearch.action.admin.indices.flush.ShardFlushResponse newShardResponse()
Specified by:
newShardResponse in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>

shardOperation

protected org.elasticsearch.action.admin.indices.flush.ShardFlushResponse shardOperation(org.elasticsearch.action.admin.indices.flush.ShardFlushRequest request)
                                                                                  throws ElasticSearchException
Specified by:
shardOperation in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>
Throws:
ElasticSearchException

shards

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

Specified by:
shards in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>

checkGlobalBlock

protected ClusterBlockException checkGlobalBlock(ClusterState state,
                                                 FlushRequest request)
Specified by:
checkGlobalBlock in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>

checkRequestBlock

protected ClusterBlockException checkRequestBlock(ClusterState state,
                                                  FlushRequest countRequest,
                                                  String[] concreteIndices)
Specified by:
checkRequestBlock in class TransportBroadcastOperationAction<FlushRequest,FlushResponse,org.elasticsearch.action.admin.indices.flush.ShardFlushRequest,org.elasticsearch.action.admin.indices.flush.ShardFlushResponse>


Copyright © 2009-2012. All Rights Reserved.