Java Code Examples for org.elasticsearch.tasks.Task#Status

The following examples show how to use org.elasticsearch.tasks.Task#Status . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TaskInfo.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
public TaskInfo(DiscoveryNode node, long id, String type, String action, String description, Task.Status status, long startTime,
                long runningTimeNanos, TaskId parentTaskId) {
    this.node = node;
    this.taskId = new TaskId(node.getId(), id);
    this.type = type;
    this.action = action;
    this.description = description;
    this.status = status;
    this.startTime = startTime;
    this.runningTimeNanos = runningTimeNanos;
    this.parentTaskId = parentTaskId;
}
 
Example 2
Source File: NetworkModule.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
public void registerTaskStatus(Task.Status prototype) {
    namedWriteableRegistry.registerPrototype(Task.Status.class, prototype);
}
 
Example 3
Source File: StreamOutput.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
/**
 * Writes a {@link Task.Status} to the current stream.
 */
public void writeTaskStatus(Task.Status status) throws IOException {
    writeNamedWriteable(status);
}
 
Example 4
Source File: StreamInput.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
/**
 * Reads a {@link Task.Status} from the current stream.
 */
public Task.Status readTaskStatus() throws IOException {
    return readNamedWriteable(Task.Status.class);
}
 
Example 5
Source File: TaskInfo.java    From Elasticsearch with Apache License 2.0 2 votes vote down vote up
/**
 * The status of the running task. Only available if TaskInfos were build
 * with the detailed flag.
 */
public Task.Status getStatus() {
    return status;
}