Codota Logo
MetricsHelper.concat
Code IndexAdd Codota to your IDE (free)

How to use
concat
method
in
org.apache.calcite.avatica.remote.MetricsHelper

Best Java code snippets using org.apache.calcite.avatica.remote.MetricsHelper.concat (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: apache/calcite-avatica

private static String name(String timer) {
 return concat(LocalService.class, timer);
}
origin: org.apache.calcite.avatica/avatica-core

private static String name(String timer) {
 return concat(LocalService.class, timer);
}
origin: org.apache.calcite.avatica/avatica-core

public JsonHandler(Service service, MetricsSystem metrics) {
 super(service);
 this.metrics = metrics;
 this.serializationTimer = this.metrics.getTimer(
   MetricsHelper.concat(JsonHandler.class, HANDLER_SERIALIZATION_METRICS_NAME));
}
origin: apache/calcite-avatica

public ProtobufHandler(Service service, ProtobufTranslation translation, MetricsSystem metrics) {
 super(service);
 this.translation = translation;
 this.metrics = metrics;
 this.serializationTimer = this.metrics.getTimer(
   MetricsHelper.concat(ProtobufHandler.class, HANDLER_SERIALIZATION_METRICS_NAME));
}
origin: apache/calcite-avatica

public JsonHandler(Service service, MetricsSystem metrics) {
 super(service);
 this.metrics = metrics;
 this.serializationTimer = this.metrics.getTimer(
   MetricsHelper.concat(JsonHandler.class, HANDLER_SERIALIZATION_METRICS_NAME));
}
origin: org.apache.calcite.avatica/avatica-core

public ProtobufHandler(Service service, ProtobufTranslation translation, MetricsSystem metrics) {
 super(service);
 this.translation = translation;
 this.metrics = metrics;
 this.serializationTimer = this.metrics.getTimer(
   MetricsHelper.concat(ProtobufHandler.class, HANDLER_SERIALIZATION_METRICS_NAME));
}
origin: apache/calcite-avatica

public AvaticaJsonHandler(Service service, MetricsSystem metrics,
  AvaticaServerConfiguration serverConfig) {
 this.service = Objects.requireNonNull(service);
 this.metrics = Objects.requireNonNull(metrics);
 // Avatica doesn't have a Guava dependency
 this.jsonHandler = new JsonHandler(service, this.metrics);
 // Metrics
 this.requestTimer = this.metrics.getTimer(
   concat(AvaticaJsonHandler.class, MetricsAwareAvaticaHandler.REQUEST_TIMER_NAME));
 this.threadLocalBuffer = new ThreadLocal<UnsynchronizedBuffer>() {
  @Override public UnsynchronizedBuffer initialValue() {
   return new UnsynchronizedBuffer();
  }
 };
 this.serverConfig = serverConfig;
}
origin: org.apache.calcite.avatica/avatica-server

public AvaticaJsonHandler(Service service, MetricsSystem metrics,
  AvaticaServerConfiguration serverConfig) {
 this.service = Objects.requireNonNull(service);
 this.metrics = Objects.requireNonNull(metrics);
 // Avatica doesn't have a Guava dependency
 this.jsonHandler = new JsonHandler(service, this.metrics);
 // Metrics
 this.requestTimer = this.metrics.getTimer(
   concat(AvaticaJsonHandler.class, MetricsAwareAvaticaHandler.REQUEST_TIMER_NAME));
 this.threadLocalBuffer = new ThreadLocal<UnsynchronizedBuffer>() {
  @Override public UnsynchronizedBuffer initialValue() {
   return new UnsynchronizedBuffer();
  }
 };
 this.serverConfig = serverConfig;
}
origin: org.apache.calcite.avatica/avatica-server

public AvaticaProtobufHandler(Service service, MetricsSystem metrics,
  AvaticaServerConfiguration serverConfig) {
 this.service = Objects.requireNonNull(service);
 this.metrics = Objects.requireNonNull(metrics);
 this.requestTimer = this.metrics.getTimer(
   MetricsHelper.concat(AvaticaProtobufHandler.class,
     MetricsAwareAvaticaHandler.REQUEST_TIMER_NAME));
 this.protobufTranslation = new ProtobufTranslationImpl();
 this.pbHandler = new ProtobufHandler(service, protobufTranslation, metrics);
 this.threadLocalBuffer = new ThreadLocal<UnsynchronizedBuffer>() {
  @Override public UnsynchronizedBuffer initialValue() {
   return new UnsynchronizedBuffer();
  }
 };
 this.serverConfig = serverConfig;
}
origin: apache/calcite-avatica

public AvaticaProtobufHandler(Service service, MetricsSystem metrics,
  AvaticaServerConfiguration serverConfig) {
 this.service = Objects.requireNonNull(service);
 this.metrics = Objects.requireNonNull(metrics);
 this.requestTimer = this.metrics.getTimer(
   MetricsHelper.concat(AvaticaProtobufHandler.class,
     MetricsAwareAvaticaHandler.REQUEST_TIMER_NAME));
 this.protobufTranslation = new ProtobufTranslationImpl();
 this.pbHandler = new ProtobufHandler(service, protobufTranslation, metrics);
 this.threadLocalBuffer = new ThreadLocal<UnsynchronizedBuffer>() {
  @Override public UnsynchronizedBuffer initialValue() {
   return new UnsynchronizedBuffer();
  }
 };
 this.serverConfig = serverConfig;
}
origin: org.apache.calcite.avatica/avatica-core

@Test(expected = NullPointerException.class) public void testNullConcat() {
 MetricsHelper.concat(null, "foo");
}
origin: apache/calcite-avatica

@Test(expected = NullPointerException.class) public void testNullConcat() {
 MetricsHelper.concat(null, "foo");
}
origin: org.apache.calcite.avatica/avatica-core

@Test public void testConcat() {
 String suffix = "suffix";
 String finalName = getClass().getName() + "." + suffix;
 assertEquals(finalName, MetricsHelper.concat(getClass(), suffix));
}
origin: apache/calcite-avatica

@Test public void testConcat() {
 String suffix = "suffix";
 String finalName = getClass().getName() + "." + suffix;
 assertEquals(finalName, MetricsHelper.concat(getClass(), suffix));
}
origin: apache/calcite-avatica

this.metrics.register(concat(JdbcMeta.class, "ConnectionCacheSize"), new Gauge<Long>() {
 @Override public Long getValue() {
  return connectionCache.size();
this.metrics.register(concat(JdbcMeta.class, "StatementCacheSize"), new Gauge<Long>() {
 @Override public Long getValue() {
  return statementCache.size();
origin: org.apache.calcite.avatica/avatica-server

this.metrics.register(concat(JdbcMeta.class, "ConnectionCacheSize"), new Gauge<Long>() {
 @Override public Long getValue() {
  return connectionCache.size();
this.metrics.register(concat(JdbcMeta.class, "StatementCacheSize"), new Gauge<Long>() {
 @Override public Long getValue() {
  return statementCache.size();
org.apache.calcite.avatica.remoteMetricsHelperconcat

Popular methods of MetricsHelper

    Popular in Java

    • Start an intent from android
    • getApplicationContext (Context)
    • getSharedPreferences (Context)
    • findViewById (Activity)
    • FileInputStream (java.io)
      A FileInputStream obtains input bytes from a file in a file system. What files are available depends
    • InputStreamReader (java.io)
      An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
    • Deque (java.util)
      A linear collection that supports element insertion and removal at both ends. The name deque is shor
    • Pattern (java.util.regex)
      A compiled representation of a regular expression. A regular expression, specified as a string, must
    • Annotation (javassist.bytecode.annotation)
      The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    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