Codota Logo
ClusterUtils.profilerConfigPath
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • String (java.lang)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now