Package org.elasticsearch.tasks
Class TaskResultsService
- java.lang.Object
-
- org.elasticsearch.tasks.TaskResultsService
-
public class TaskResultsService extends java.lang.Object
Service that can store task results.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TASK_INDEX
static java.lang.String
TASK_RESULT_INDEX_MAPPING_FILE
static int
TASK_RESULT_MAPPING_VERSION
static java.lang.String
TASK_RESULT_MAPPING_VERSION_META_FIELD
static java.lang.String
TASK_TYPE
-
Constructor Summary
Constructors Constructor Description TaskResultsService(Client client, ClusterService clusterService, ThreadPool threadPool)
-
Method Summary
Modifier and Type Method Description void
storeResult(TaskResult taskResult, ActionListener<java.lang.Void> listener)
java.lang.String
taskResultIndexMapping()
-
-
-
Field Detail
-
TASK_INDEX
public static final java.lang.String TASK_INDEX
- See Also:
- Constant Field Values
-
TASK_TYPE
public static final java.lang.String TASK_TYPE
- See Also:
- Constant Field Values
-
TASK_RESULT_INDEX_MAPPING_FILE
public static final java.lang.String TASK_RESULT_INDEX_MAPPING_FILE
- See Also:
- Constant Field Values
-
TASK_RESULT_MAPPING_VERSION_META_FIELD
public static final java.lang.String TASK_RESULT_MAPPING_VERSION_META_FIELD
- See Also:
- Constant Field Values
-
TASK_RESULT_MAPPING_VERSION
public static final int TASK_RESULT_MAPPING_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TaskResultsService
@Inject public TaskResultsService(Client client, ClusterService clusterService, ThreadPool threadPool)
-
-
Method Detail
-
storeResult
public void storeResult(TaskResult taskResult, ActionListener<java.lang.Void> listener)
-
taskResultIndexMapping
public java.lang.String taskResultIndexMapping()
-
-