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

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

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

origin: org.elasticsearch/elasticsearch

  taskResult = task.result(localNode, response);
} catch (IOException ex) {
  logger.warn(() -> new ParameterizedMessage("couldn't store response {}", response), ex);
origin: org.elasticsearch/elasticsearch

/**
 * Stores the task failure
 */
public <Response extends ActionResponse> void storeResult(Task task, Exception error, ActionListener<Response> listener) {
  DiscoveryNode localNode = lastDiscoveryNodes.getLocalNode();
  if (localNode == null) {
    // too early to store anything, shouldn't really be here - just pass the error along
    listener.onFailure(error);
    return;
  }
  final TaskResult taskResult;
  try {
    taskResult = task.result(localNode, error);
  } catch (IOException ex) {
    logger.warn(() -> new ParameterizedMessage("couldn't store error {}", ExceptionsHelper.detailedMessage(error)), ex);
    listener.onFailure(ex);
    return;
  }
  taskResultsService.storeResult(taskResult, new ActionListener<Void>() {
    @Override
    public void onResponse(Void aVoid) {
      listener.onFailure(error);
    }
    @Override
    public void onFailure(Exception e) {
      logger.warn(() -> new ParameterizedMessage("couldn't store error {}", ExceptionsHelper.detailedMessage(error)), e);
      listener.onFailure(e);
    }
  });
}
origin: apache/servicemix-bundles

  taskResult = task.result(localNode, response);
} catch (IOException ex) {
  logger.warn(() -> new ParameterizedMessage("couldn't store response {}", response), ex);
origin: com.strapdata.elasticsearch/elasticsearch

  taskResult = task.result(localNode, response);
} catch (IOException ex) {
  logger.warn((Supplier<?>) () -> new ParameterizedMessage("couldn't store response {}", response), ex);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

  taskResult = task.result(localNode, response);
} catch (IOException ex) {
  logger.warn(() -> new ParameterizedMessage("couldn't store response {}", response), ex);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Stores the task failure
 */
public <Response extends ActionResponse> void storeResult(Task task, Exception error, ActionListener<Response> listener) {
  DiscoveryNode localNode = lastDiscoveryNodes.getLocalNode();
  if (localNode == null) {
    // too early to store anything, shouldn't really be here - just pass the error along
    listener.onFailure(error);
    return;
  }
  final TaskResult taskResult;
  try {
    taskResult = task.result(localNode, error);
  } catch (IOException ex) {
    logger.warn(() -> new ParameterizedMessage("couldn't store error {}", ExceptionsHelper.detailedMessage(error)), ex);
    listener.onFailure(ex);
    return;
  }
  taskResultsService.storeResult(taskResult, new ActionListener<Void>() {
    @Override
    public void onResponse(Void aVoid) {
      listener.onFailure(error);
    }
    @Override
    public void onFailure(Exception e) {
      logger.warn(() -> new ParameterizedMessage("couldn't store error {}", ExceptionsHelper.detailedMessage(error)), e);
      listener.onFailure(e);
    }
  });
}
origin: com.strapdata.elasticsearch/elasticsearch

  taskResult = task.result(localNode, error);
} catch (IOException ex) {
  logger.warn(
origin: apache/servicemix-bundles

/**
 * Stores the task failure
 */
public <Response extends ActionResponse> void storeResult(Task task, Exception error, ActionListener<Response> listener) {
  DiscoveryNode localNode = lastDiscoveryNodes.getLocalNode();
  if (localNode == null) {
    // too early to store anything, shouldn't really be here - just pass the error along
    listener.onFailure(error);
    return;
  }
  final TaskResult taskResult;
  try {
    taskResult = task.result(localNode, error);
  } catch (IOException ex) {
    logger.warn(() -> new ParameterizedMessage("couldn't store error {}", ExceptionsHelper.detailedMessage(error)), ex);
    listener.onFailure(ex);
    return;
  }
  taskResultsService.storeResult(taskResult, new ActionListener<Void>() {
    @Override
    public void onResponse(Void aVoid) {
      listener.onFailure(error);
    }
    @Override
    public void onFailure(Exception e) {
      logger.warn(() -> new ParameterizedMessage("couldn't store error {}", ExceptionsHelper.detailedMessage(error)), e);
      listener.onFailure(e);
    }
  });
}
org.elasticsearch.tasksTaskresult

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
  • getType
    Returns task channel type (netty, transport, direct)

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JFileChooser (javax.swing)
  • Top plugins for WebStorm
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