Codota Logo
HermesMetrics.escapeDots
Code IndexAdd Codota to your IDE (free)

How to use
escapeDots
method
in
pl.allegro.tech.hermes.common.metric.HermesMetrics

Best Java code snippets using pl.allegro.tech.hermes.common.metric.HermesMetrics.escapeDots (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: allegro/hermes

  private String metricPath(String pattern, TopicName topicName) {
    return String.format(pattern, metricsPaths.prefix(), escapeDots(topicName.getGroupName()), escapeDots(topicName.getName()));
  }
}
origin: allegro/hermes

private String subscriptionNameToPath(SubscriptionName name) {
  return String.format(SUBSCRIPTION_PATH,
      escapeDots(name.getTopicName().getGroupName()), name.getTopicName().getName(), escapeDots(name.getName())
  );
}
origin: allegro/hermes

private void registerLatencyPerBrokerGauge(Producer<byte[], byte[]> producer,
                      HermesMetrics metrics,
                      String metricName,
                      String producerName,
                      Node node) {
  String gauge = Gauges.JMX_PREFIX + "." + producerName + "-" + metricName + "." + escapeDots(node.host());
  registerGauge(producer, metrics, gauge,
      entry -> entry.getKey().group().equals("producer-node-metrics")
          && entry.getKey().name().equals(metricName)
          && entry.getKey().tags().containsValue("node-" + node.id()));
}
origin: allegro/hermes

public Meter oAuthSubscriptionTokenRequestMeter(Subscription subscription, String oAuthProviderName) {
  PathContext pathContext = pathContext()
      .withGroup(escapeDots(subscription.getTopicName().getGroupName()))
      .withTopic(escapeDots(subscription.getTopicName().getName()))
      .withSubscription(escapeDots(subscription.getName()))
      .withOAuthProvider(escapeDots(oAuthProviderName))
      .build();
  return metricRegistry.meter(pathCompiler.compile(Meters.OAUTH_SUBSCRIPTION_TOKEN_REQUEST, pathContext));
}
origin: allegro/hermes

private String metricRegistryName(String metricDisplayName, TopicName topicName, String subscription) {
  PathContext pathContext = PathContext.pathContext()
      .withGroup(escapeDots(topicName.getGroupName()))
      .withTopic(escapeDots(topicName.getName()))
      .withSubscription(escapeDots(subscription))
      .build();
  return pathCompiler.compile(metricDisplayName, pathContext);
}
origin: allegro/hermes

public Timer oAuthProviderLatencyTimer(String oAuthProviderName) {
  PathContext pathContext = pathContext()
      .withOAuthProvider(escapeDots(oAuthProviderName))
      .build();
  return metricRegistry.timer(pathCompiler.compile(Timers.OAUTH_PROVIDER_TOKEN_REQUEST_LATENCY, pathContext));
}
origin: allegro/hermes

public void registerConsumerHttpAnswer(Subscription subscription, int statusCode) {
  PathContext pathContext = pathContext()
      .withGroup(escapeDots(subscription.getTopicName().getGroupName()))
      .withTopic(escapeDots(subscription.getTopicName().getName()))
      .withSubscription(escapeDots(subscription.getName()))
      .withHttpCode(statusCode)
      .withHttpCodeFamily(httpStatusFamily(statusCode))
      .build();
  metricRegistry.meter(pathCompiler.compile(Meters.ERRORS_HTTP_BY_FAMILY, pathContext)).mark();
  metricRegistry.meter(pathCompiler.compile(Meters.ERRORS_HTTP_BY_CODE, pathContext)).mark();
}
origin: allegro/hermes

public Meter consumerErrorsOtherMeter(Subscription subscription) {
  PathContext pathContext = pathContext()
      .withGroup(escapeDots(subscription.getTopicName().getGroupName()))
      .withTopic(escapeDots(subscription.getTopicName().getName()))
      .withSubscription(escapeDots(subscription.getName()))
      .build();
  return metricRegistry.meter(pathCompiler.compile(Meters.ERRORS_OTHER, pathContext));
}
origin: allegro/hermes

public Meter consumerErrorsTimeoutMeter(Subscription subscription) {
  PathContext pathContext = pathContext()
      .withGroup(escapeDots(subscription.getTopicName().getGroupName()))
      .withTopic(escapeDots(subscription.getTopicName().getName()))
      .withSubscription(escapeDots(subscription.getName()))
      .build();
  return metricRegistry.meter(pathCompiler.compile(Meters.ERRORS_TIMEOUTS, pathContext));
}
origin: allegro/hermes

private String metricRegistryName(String metricDisplayName, TopicName topicName) {
  PathContext pathContext = PathContext.pathContext()
      .withGroup(escapeDots(topicName.getGroupName()))
      .withTopic(escapeDots(topicName.getName())).build();
  return pathCompiler.compile(metricDisplayName, pathContext);
}
origin: allegro/hermes

public Histogram inflightTimeHistogram(Subscription subscription) {
  return metricRegistry.histogram(pathCompiler.compile(Histograms.INFLIGHT_TIME, pathContext()
      .withGroup(escapeDots(subscription.getTopicName().getGroupName()))
      .withTopic(escapeDots(subscription.getTopicName().getName()))
      .withSubscription(escapeDots(subscription.getName()))
      .build()));
}
origin: allegro/hermes

public Histogram messageContentSizeHistogram(TopicName topic) {
  return metricRegistry.histogram(pathCompiler.compile(Histograms.MESSAGE_SIZE, pathContext()
      .withGroup(escapeDots(topic.getGroupName()))
      .withTopic(escapeDots(topic.getName()))
      .build()));
}
pl.allegro.tech.hermes.common.metricHermesMetricsescapeDots

Popular methods of HermesMetrics

  • counter
  • meter
  • timer
  • consumerErrorsOtherMeter
  • latencyTimer
  • registerGauge
  • consumerErrorsTimeoutMeter
  • consumersWorkloadRebalanceDurationTimer
  • decrementInflightCounter
  • incrementInflightCounter
  • inflightTimeHistogram
  • maxRateFetchFailuresCounter
  • inflightTimeHistogram,
  • maxRateFetchFailuresCounter,
  • oAuthProviderLatencyTimer,
  • oAuthSubscriptionTokenRequestMeter,
  • rateHistoryFailuresCounter,
  • registerConsumerHttpAnswer,
  • registerConsumersThreadGauge,
  • registerDyingConsumerProcessesCountGauge,
  • registerMaxRateGauge

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getApplicationContext (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Collectors (java.util.stream)
  • JPanel (javax.swing)
  • JTable (javax.swing)
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