org.elasticsearch.action.get
Class TransportGetAction
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.action.support.BaseAction<Request,Response>
org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction<GetRequest,GetResponse>
org.elasticsearch.action.get.TransportGetAction
- All Implemented Interfaces:
- Action<GetRequest,GetResponse>
public class TransportGetAction
- extends TransportShardSingleOperationAction<GetRequest,GetResponse>
Performs the get operation.
Method Summary |
protected void |
checkBlock(GetRequest request,
ClusterState state)
|
protected void |
doExecute(GetRequest request,
ActionListener<GetResponse> listener)
|
protected java.lang.String |
executor()
|
static GetResponse |
load(ESLogger logger,
ScriptService scriptService,
IndexService indexService,
IndexShard indexShard,
java.lang.String index,
java.lang.String type,
java.lang.String id,
java.lang.String[] gFields,
boolean realtime)
|
protected GetRequest |
newRequest()
|
protected GetResponse |
newResponse()
|
protected GetResponse |
shardOperation(GetRequest request,
int shardId)
|
protected ShardIterator |
shards(ClusterState clusterState,
GetRequest request)
|
protected java.lang.String |
transportAction()
|
protected java.lang.String |
transportShardAction()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportGetAction
@Inject
public TransportGetAction(Settings settings,
ClusterService clusterService,
TransportService transportService,
IndicesService indicesService,
ScriptService scriptService,
ThreadPool threadPool)
executor
protected java.lang.String executor()
- Specified by:
executor
in class TransportShardSingleOperationAction<GetRequest,GetResponse>
transportAction
protected java.lang.String transportAction()
- Specified by:
transportAction
in class TransportShardSingleOperationAction<GetRequest,GetResponse>
transportShardAction
protected java.lang.String transportShardAction()
- Specified by:
transportShardAction
in class TransportShardSingleOperationAction<GetRequest,GetResponse>
checkBlock
protected void checkBlock(GetRequest request,
ClusterState state)
- Overrides:
checkBlock
in class TransportShardSingleOperationAction<GetRequest,GetResponse>
shards
protected ShardIterator shards(ClusterState clusterState,
GetRequest request)
- Specified by:
shards
in class TransportShardSingleOperationAction<GetRequest,GetResponse>
doExecute
protected void doExecute(GetRequest request,
ActionListener<GetResponse> listener)
- Overrides:
doExecute
in class TransportShardSingleOperationAction<GetRequest,GetResponse>
shardOperation
protected GetResponse shardOperation(GetRequest request,
int shardId)
throws ElasticSearchException
- Specified by:
shardOperation
in class TransportShardSingleOperationAction<GetRequest,GetResponse>
- Throws:
ElasticSearchException
load
public static GetResponse load(ESLogger logger,
ScriptService scriptService,
IndexService indexService,
IndexShard indexShard,
java.lang.String index,
java.lang.String type,
java.lang.String id,
java.lang.String[] gFields,
boolean realtime)
throws ElasticSearchException
- Throws:
ElasticSearchException
newRequest
protected GetRequest newRequest()
- Specified by:
newRequest
in class TransportShardSingleOperationAction<GetRequest,GetResponse>
newResponse
protected GetResponse newResponse()
- Specified by:
newResponse
in class TransportShardSingleOperationAction<GetRequest,GetResponse>