Tabnine Logo
ClusterUtils.lastErrorPath
Code IndexAdd Tabnine to your IDE (free)

How to use
lastErrorPath
method
in
org.apache.storm.cluster.ClusterUtils

Best Java code snippets using org.apache.storm.cluster.ClusterUtils.lastErrorPath (Showing top 4 results out of 315)

origin: apache/storm

@Override
public ErrorInfo lastError(String stormId, String componentId) {
  String path = ClusterUtils.lastErrorPath(stormId, componentId);
  if (stateStorage.node_exists(path, false)) {
    ErrorInfo errorInfo = ClusterUtils.maybeDeserialize(stateStorage.get_data(path, false), ErrorInfo.class);
    return errorInfo;
  }
  return null;
}
origin: apache/storm

@Override
public void reportError(String stormId, String componentId, String node, Long port, Throwable error) {
  String path = ClusterUtils.errorPath(stormId, componentId);
  String lastErrorPath = ClusterUtils.lastErrorPath(stormId, componentId);
  ErrorInfo errorInfo = new ErrorInfo(ClusterUtils.stringifyError(error), Time.currentTimeSecs());
  errorInfo.set_host(node);
origin: org.apache.storm/storm-core

@Override
public ErrorInfo lastError(String stormId, String componentId) {
  String path = ClusterUtils.lastErrorPath(stormId, componentId);
  if (stateStorage.node_exists(path, false)) {
    ErrorInfo errorInfo = ClusterUtils.maybeDeserialize(stateStorage.get_data(path, false), ErrorInfo.class);
    return errorInfo;
  }
  return null;
}
origin: org.apache.storm/storm-core

String lastErrorPath = ClusterUtils.lastErrorPath(stormId, componentId);
ErrorInfo errorInfo = new ErrorInfo(ClusterUtils.stringifyError(error), Time.currentTimeSecs());
errorInfo.set_host(node);
org.apache.storm.clusterClusterUtilslastErrorPath

Popular methods of ClusterUtils

  • mkStormClusterState
  • errorStormRoot
  • assignmentPath
  • backpressurePath
  • backpressureStormRoot
  • blobstoreMaxKeySequenceNumberPath
  • blobstorePath
  • convertExecutorBeats
    Ensures that we only return heartbeats for executors assigned to this worker
  • credentialsPath
  • errorPath
  • logConfigPath
  • maybeDeserialize
  • logConfigPath,
  • maybeDeserialize,
  • mkStateStorage,
  • mkStateStorageImpl,
  • mkStormClusterStateImpl,
  • mkTopoAcls,
  • mkTopoReadOnlyAcls,
  • mkTopoReadWriteAcls,
  • nimbusPath

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Collectors (java.util.stream)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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