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

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

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

origin: org.elasticsearch/elasticsearch

/**
 * Build a proper {@link TaskInfo} for this task.
 */
protected final TaskInfo taskInfo(String localNodeId, String description, Status status) {
  return new TaskInfo(new TaskId(localNodeId, getId()), getType(), getAction(), description, status, startTime,
      System.nanoTime() - startTimeNanos, this instanceof CancellableTask, parentTask, headers);
}
origin: com.strapdata.elasticsearch/elasticsearch

/**
 * Build a proper {@link TaskInfo} for this task.
 */
protected final TaskInfo taskInfo(String localNodeId, String description, Status status) {
  return new TaskInfo(new TaskId(localNodeId, getId()), getType(), getAction(), description, status, startTime,
      System.nanoTime() - startTimeNanos, this instanceof CancellableTask, parentTask);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Build a proper {@link TaskInfo} for this task.
 */
protected final TaskInfo taskInfo(String localNodeId, String description, Status status) {
  return new TaskInfo(new TaskId(localNodeId, getId()), getType(), getAction(), description, status, startTime,
      System.nanoTime() - startTimeNanos, this instanceof CancellableTask, parentTask, headers);
}
origin: apache/servicemix-bundles

/**
 * Build a proper {@link TaskInfo} for this task.
 */
protected final TaskInfo taskInfo(String localNodeId, String description, Status status) {
  return new TaskInfo(new TaskId(localNodeId, getId()), getType(), getAction(), description, status, startTime,
      System.nanoTime() - startTimeNanos, this instanceof CancellableTask, parentTask, headers);
}
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.tasksTaskgetType

Javadoc

Returns task channel type (netty, transport, direct)

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
  • getStatus
    Build a status for this task or null if this task doesn't have status. Since most tasks don't have s
  • result

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • Kernel (java.awt.image)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Github Copilot alternatives
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