Tabnine Logo
Task.getStatus
Code IndexAdd Tabnine to your IDE (free)

How to use
getStatus
method
in
org.elasticsearch.tasks.Task

Best Java code snippets using org.elasticsearch.tasks.Task.getStatus (Showing top 5 results out of 315)

origin: org.elasticsearch/elasticsearch

/**
 * Build a version of the task status you can throw over the wire and back
 * to the user.
 *
 * @param localNodeId
 *            the id of the node this task is running on
 * @param detailed
 *            should the information include detailed, potentially slow to
 *            generate data?
 */
public final TaskInfo taskInfo(String localNodeId, boolean detailed) {
  String description = null;
  Task.Status status = null;
  if (detailed) {
    description = getDescription();
    status = getStatus();
  }
  return taskInfo(localNodeId, description, status);
}
origin: apache/servicemix-bundles

/**
 * Build a version of the task status you can throw over the wire and back
 * to the user.
 *
 * @param localNodeId
 *            the id of the node this task is running on
 * @param detailed
 *            should the information include detailed, potentially slow to
 *            generate data?
 */
public final TaskInfo taskInfo(String localNodeId, boolean detailed) {
  String description = null;
  Task.Status status = null;
  if (detailed) {
    description = getDescription();
    status = getStatus();
  }
  return taskInfo(localNodeId, description, status);
}
origin: com.strapdata.elasticsearch/elasticsearch

/**
 * Build a version of the task status you can throw over the wire and back
 * to the user.
 *
 * @param localNodeId
 *            the id of the node this task is running on
 * @param detailed
 *            should the information include detailed, potentially slow to
 *            generate data?
 */
public final TaskInfo taskInfo(String localNodeId, boolean detailed) {
  String description = null;
  Task.Status status = null;
  if (detailed) {
    description = getDescription();
    status = getStatus();
  }
  return taskInfo(localNodeId, description, status);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Build a version of the task status you can throw over the wire and back
 * to the user.
 *
 * @param localNodeId
 *            the id of the node this task is running on
 * @param detailed
 *            should the information include detailed, potentially slow to
 *            generate data?
 */
public final TaskInfo taskInfo(String localNodeId, boolean detailed) {
  String description = null;
  Task.Status status = null;
  if (detailed) {
    description = getDescription();
    status = getStatus();
  }
  return taskInfo(localNodeId, description, status);
}
origin: harbby/presto-connectors

/**
 * Build a version of the task status you can throw over the wire and back
 * to the user.
 *
 * @param node
 *            the node this task is running on
 * @param detailed
 *            should the information include detailed, potentially slow to
 *            generate data?
 */
public TaskInfo taskInfo(DiscoveryNode node, boolean detailed) {
  String description = null;
  Task.Status status = null;
  if (detailed) {
    description = getDescription();
    status = getStatus();
  }
  return new TaskInfo(node, getId(), getType(), getAction(), description, status, startTime, System.nanoTime() - startTimeNanos,
    parentTask);
}
org.elasticsearch.tasksTaskgetStatus

Javadoc

Build a status for this task or null if this task doesn't have status. Since most tasks don't have status this defaults to returning null. While this can never perform IO it might be a costly operation, requiring collating lists of results, etc. So only use it if you need the value.

Popular methods of Task

  • getId
    Returns task id
  • getAction
    Returns task action
  • taskInfo
    Build a version of the task status you can throw over the wire and back to the user.
  • <init>
  • getDescription
    Generates task description
  • getParentTaskId
    Returns id of the parent task or NO_PARENT_ID if the task doesn't have any parent tasks
  • getType
    Returns task channel type (netty, transport, direct)
  • result

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now