congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
JMXReportingService
Code IndexAdd Tabnine to your IDE (free)

How to use
JMXReportingService
in
org.apache.gobblin.runtime.services

Best Java code snippets using org.apache.gobblin.runtime.services.JMXReportingService (Showing top 8 results out of 315)

origin: apache/incubator-gobblin

private void addJMXReportingService() {
 addService(new JMXReportingService());
}
origin: apache/incubator-gobblin

@Override
protected void startUp() throws Exception {
 registerJvmMetrics();
 this.jmxReporter.start();
}
origin: apache/incubator-gobblin

private void registerJvmMetrics() {
 registerMetricSetWithPrefix("jvm.gc", new GarbageCollectorMetricSet());
 registerMetricSetWithPrefix("jvm.memory", new MemoryUsageGaugeSet());
 registerMetricSetWithPrefix("jvm.threads", new ThreadStatesGaugeSet());
 this.metricRegistry.register("jvm.fileDescriptorRatio", new FileDescriptorRatioGauge());
 for (Map.Entry<String, MetricSet> metricSet : this.additionalMetricSets.entrySet()) {
  registerMetricSetWithPrefix(metricSet.getKey(), metricSet.getValue());
 }
}
origin: apache/incubator-gobblin

 private GobblinHelixTaskFactory generateTaskFactory(TaskExecutor taskExecutor, Builder builder) {
  Properties properties = ConfigUtils.configToProperties(builder.getConfig());
  URI rootPathUri = PathUtils.getRootPath(builder.getAppWorkPath()).toUri();
  Config stateStoreJobConfig = ConfigUtils.propertiesToConfig(properties)
    .withValue(ConfigurationKeys.STATE_STORE_FS_URI_KEY,
      ConfigValueFactory.fromAnyRef(rootPathUri.toString()));

  TaskStateTracker taskStateTracker = new GobblinHelixTaskStateTracker(properties);

  services.add(taskExecutor);
  services.add(taskStateTracker);
  services.add(new JMXReportingService(
    ImmutableMap.of("task.executor", taskExecutor.getTaskExecutorQueueMetricSet())));

  return new GobblinHelixTaskFactory(builder,
                    taskExecutor,
                    taskStateTracker,
                    stateStoreJobConfig);
 }
}
origin: org.apache.gobblin/gobblin-runtime

private void registerJvmMetrics() {
 registerMetricSetWithPrefix("jvm.gc", new GarbageCollectorMetricSet());
 registerMetricSetWithPrefix("jvm.memory", new MemoryUsageGaugeSet());
 registerMetricSetWithPrefix("jvm.threads", new ThreadStatesGaugeSet());
 this.metricRegistry.register("jvm.fileDescriptorRatio", new FileDescriptorRatioGauge());
 for (Map.Entry<String, MetricSet> metricSet : this.additionalMetricSets.entrySet()) {
  registerMetricSetWithPrefix(metricSet.getKey(), metricSet.getValue());
 }
}
origin: org.apache.gobblin/gobblin-runtime

@Override
protected void startUp() throws Exception {
 registerJvmMetrics();
 this.jmxReporter.start();
}
origin: org.apache.gobblin/gobblin-runtime

private void addJMXReportingService() {
 addService(new JMXReportingService());
}
origin: org.apache.gobblin/gobblin-cluster

 private GobblinHelixTaskFactory generateTaskFactory(TaskExecutor taskExecutor, Builder builder) {
  Properties properties = ConfigUtils.configToProperties(builder.getConfig());
  URI rootPathUri = PathUtils.getRootPath(builder.getAppWorkPath()).toUri();
  Config stateStoreJobConfig = ConfigUtils.propertiesToConfig(properties)
    .withValue(ConfigurationKeys.STATE_STORE_FS_URI_KEY,
      ConfigValueFactory.fromAnyRef(rootPathUri.toString()));

  TaskStateTracker taskStateTracker = new GobblinHelixTaskStateTracker(properties);

  services.add(taskExecutor);
  services.add(taskStateTracker);
  services.add(new JMXReportingService(
    ImmutableMap.of("task.executor", taskExecutor.getTaskExecutorQueueMetricSet())));

  return new GobblinHelixTaskFactory(builder.getContainerMetrics(),
      taskExecutor,
      taskStateTracker,
      builder.getFs(),
      builder.getAppWorkPath(),
      stateStoreJobConfig,
      builder.getHelixManager());
 }
}
org.apache.gobblin.runtime.servicesJMXReportingService

Javadoc

A com.google.common.util.concurrent.Service for collecting various JVM metrics and reporting them via JMX.

The class uses Codahale to collect the various JVM metrics which includes:

  • GC activity using a GarbageCollectorMetricSet
  • Memory usage using a MemoryUsageGaugeSet
  • Thread usage and state using a ThreadStatesGaugeSet
  • Used file descriptors using a FileDescriptorRatioGauge
All metrics are collected via a JmxReporter.

Most used methods

  • <init>
  • registerJvmMetrics
  • registerMetricSetWithPrefix

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 21 Best Atom Packages for 2021
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