本文整理汇总了Java中org.elasticsearch.tasks.Task.Status方法的典型用法代码示例。如果您正苦于以下问题:Java Task.Status方法的具体用法?Java Task.Status怎么用?Java Task.Status使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.elasticsearch.tasks.Task
的用法示例。
在下文中一共展示了Task.Status方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TaskInfo
import org.elasticsearch.tasks.Task; //导入方法依赖的package包/类
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;
}
示例2: registerTaskStatus
import org.elasticsearch.tasks.Task; //导入方法依赖的package包/类
public void registerTaskStatus(Task.Status prototype) {
namedWriteableRegistry.registerPrototype(Task.Status.class, prototype);
}
示例3: writeTaskStatus
import org.elasticsearch.tasks.Task; //导入方法依赖的package包/类
/**
* Writes a {@link Task.Status} to the current stream.
*/
public void writeTaskStatus(Task.Status status) throws IOException {
writeNamedWriteable(status);
}
示例4: readTaskStatus
import org.elasticsearch.tasks.Task; //导入方法依赖的package包/类
/**
* Reads a {@link Task.Status} from the current stream.
*/
public Task.Status readTaskStatus() throws IOException {
return readNamedWriteable(Task.Status.class);
}
示例5: getStatus
import org.elasticsearch.tasks.Task; //导入方法依赖的package包/类
/**
* The status of the running task. Only available if TaskInfos were build
* with the detailed flag.
*/
public Task.Status getStatus() {
return status;
}