public abstract class TransportAction<Request extends ActionRequest,Response extends ActionResponse> extends AbstractComponent
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
actionName |
protected IndexNameExpressionResolver |
indexNameExpressionResolver |
protected ParseFieldMatcher |
parseFieldMatcher |
protected TaskManager |
taskManager |
protected ThreadPool |
threadPool |
deprecationLogger, logger, settings| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
TransportAction(Settings settings,
String actionName,
ThreadPool threadPool,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
TaskManager taskManager) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected abstract void |
doExecute(Request request,
ActionListener<Response> listener) |
protected void |
doExecute(Task task,
Request request,
ActionListener<Response> listener) |
ActionFuture<Response> |
execute(Request request) |
Task |
execute(Request request,
ActionListener<Response> listener)
Use this method when the transport action call should result in creation of a new task associated with the call.
|
Task |
execute(Request request,
TaskListener<Response> listener) |
void |
execute(Task task,
Request request,
ActionListener<Response> listener)
Use this method when the transport action should continue to run in the context of the current task
|
logDeprecatedSetting, logRemovedSetting, nodeNameprotected final ThreadPool threadPool
protected final String actionName
protected final ParseFieldMatcher parseFieldMatcher
protected final IndexNameExpressionResolver indexNameExpressionResolver
protected final TaskManager taskManager
protected TransportAction(Settings settings, String actionName, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, TaskManager taskManager)
public final ActionFuture<Response> execute(Request request)
public final Task execute(Request request, ActionListener<Response> listener)
public final Task execute(Request request, TaskListener<Response> listener)
public final void execute(Task task, Request request, ActionListener<Response> listener)
protected void doExecute(Task task, Request request, ActionListener<Response> listener)
protected abstract void doExecute(Request request, ActionListener<Response> listener)
Copyright © 2009–2016. All rights reserved.