congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ClusterUtils.profilerConfigPath
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/storm

public static String profilerConfigPath(String stormId, String host, Long port, ProfileAction requestType) {
  return profilerConfigPath(stormId) + ZK_SEPERATOR + host + "_" + port + "_" + requestType;
}
origin: apache/storm

@Override
public List<ProfileRequest> getTopologyProfileRequests(String stormId) {
  List<ProfileRequest> profileRequests = new ArrayList<>();
  String path = ClusterUtils.profilerConfigPath(stormId);
  if (stateStorage.node_exists(path, false)) {
    List<String> strs = stateStorage.get_children(path, false);
    for (String str : strs) {
      String childPath = path + ClusterUtils.ZK_SEPERATOR + str;
      byte[] raw = stateStorage.get_data(childPath, false);
      ProfileRequest request = ClusterUtils.maybeDeserialize(raw, ProfileRequest.class);
      if (request != null) {
        profileRequests.add(request);
      }
    }
  }
  return profileRequests;
}
origin: apache/storm

@Override
public void deleteTopologyProfileRequests(String stormId, ProfileRequest profileRequest) {
  ProfileAction profileAction = profileRequest.get_action();
  String host = profileRequest.get_nodeInfo().get_node();
  Long port = profileRequest.get_nodeInfo().get_port_iterator().next();
  String path = ClusterUtils.profilerConfigPath(stormId, host, port, profileAction);
  stateStorage.delete_node(path);
}
origin: apache/storm

@Override
public void setWorkerProfileRequest(String stormId, ProfileRequest profileRequest) {
  ProfileAction profileAction = profileRequest.get_action();
  String host = profileRequest.get_nodeInfo().get_node();
  Long port = profileRequest.get_nodeInfo().get_port_iterator().next();
  String path = ClusterUtils.profilerConfigPath(stormId, host, port, profileAction);
  stateStorage.set_data(path, Utils.serialize(profileRequest), defaultAcls);
}
origin: apache/storm

@Override
public void removeStorm(String stormId) {
  stateStorage.delete_node(ClusterUtils.assignmentPath(stormId));
  this.assignmentsBackend.clearStateForStorm(stormId);
  stateStorage.delete_node(ClusterUtils.credentialsPath(stormId));
  stateStorage.delete_node(ClusterUtils.logConfigPath(stormId));
  stateStorage.delete_node(ClusterUtils.profilerConfigPath(stormId));
  removeStormBase(stormId);
}
origin: org.apache.storm/storm-core

public static String profilerConfigPath(String stormId, String host, Long port, ProfileAction requestType) {
  return profilerConfigPath(stormId) + ZK_SEPERATOR + host + "_" + port + "_" + requestType;
}
origin: org.apache.storm/storm-core

@Override
public List<ProfileRequest> getTopologyProfileRequests(String stormId) {
  List<ProfileRequest> profileRequests = new ArrayList<>();
  String path = ClusterUtils.profilerConfigPath(stormId);
  if (stateStorage.node_exists(path, false)) {
    List<String> strs = stateStorage.get_children(path, false);
    for (String str : strs) {
      String childPath = path + ClusterUtils.ZK_SEPERATOR + str;
      byte[] raw = stateStorage.get_data(childPath, false);
      ProfileRequest request = ClusterUtils.maybeDeserialize(raw, ProfileRequest.class);
      if (request != null)
        profileRequests.add(request);
    }
  }
  return profileRequests;
}
origin: org.apache.storm/storm-core

@Override
public void deleteTopologyProfileRequests(String stormId, ProfileRequest profileRequest) {
  ProfileAction profileAction = profileRequest.get_action();
  String host = profileRequest.get_nodeInfo().get_node();
  Long port = profileRequest.get_nodeInfo().get_port_iterator().next();
  String path = ClusterUtils.profilerConfigPath(stormId, host, port, profileAction);
  stateStorage.delete_node(path);
}
origin: org.apache.storm/storm-core

@Override
public void setWorkerProfileRequest(String stormId, ProfileRequest profileRequest) {
  ProfileAction profileAction = profileRequest.get_action();
  String host = profileRequest.get_nodeInfo().get_node();
  Long port = profileRequest.get_nodeInfo().get_port_iterator().next();
  String path = ClusterUtils.profilerConfigPath(stormId, host, port, profileAction);
  stateStorage.set_data(path, Utils.serialize(profileRequest), acls);
}
origin: org.apache.storm/storm-core

@Override
public void removeStorm(String stormId) {
  stateStorage.delete_node(ClusterUtils.assignmentPath(stormId));
  stateStorage.delete_node(ClusterUtils.credentialsPath(stormId));
  stateStorage.delete_node(ClusterUtils.logConfigPath(stormId));
  stateStorage.delete_node(ClusterUtils.profilerConfigPath(stormId));
  removeStormBase(stormId);
}
org.apache.storm.clusterClusterUtilsprofilerConfigPath

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
  • lastErrorPath
  • logConfigPath
  • lastErrorPath,
  • logConfigPath,
  • maybeDeserialize,
  • mkStateStorage,
  • mkStateStorageImpl,
  • mkStormClusterStateImpl,
  • mkTopoAcls,
  • mkTopoReadOnlyAcls,
  • mkTopoReadWriteAcls,
  • nimbusPath

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JOptionPane (javax.swing)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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