Tabnine Logo
MetricTypeEnum.valueOf
Code IndexAdd Tabnine to your IDE (free)

How to use
valueOf
method
in
org.apache.gobblin.rest.MetricTypeEnum

Best Java code snippets using org.apache.gobblin.rest.MetricTypeEnum.valueOf (Showing top 8 results out of 315)

origin: apache/incubator-gobblin

private Metric resultSetToMetric(ResultSet rs)
  throws SQLException {
 Metric metric = new Metric();
 metric.setGroup(rs.getString("metric_group"));
 metric.setName(rs.getString("metric_name"));
 metric.setType(MetricTypeEnum.valueOf(rs.getString("metric_type")));
 metric.setValue(rs.getString("metric_value"));
 return metric;
}
origin: apache/incubator-gobblin

private static Metric resultSetToMetric(ResultSet rs) throws SQLException {
 Metric metric = new Metric();
 metric.setGroup(rs.getString("metric_group"));
 metric.setName(rs.getString("metric_name"));
 metric.setType(MetricTypeEnum.valueOf(rs.getString("metric_type")));
 metric.setValue(rs.getString("metric_value"));
 return metric;
}
origin: apache/incubator-gobblin

counter.setGroup(MetricGroup.JOB.name());
counter.setName(entry.getKey());
counter.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.COUNTER.name()));
counter.setValue(Long.toString(((Counter) entry.getValue()).getCount()));
metricArray.add(counter);
meter.setGroup(MetricGroup.JOB.name());
meter.setName(entry.getKey());
meter.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.METER.name()));
meter.setValue(Double.toString(((Meter) entry.getValue()).getMeanRate()));
metricArray.add(meter);
gauge.setGroup(MetricGroup.JOB.name());
gauge.setName(entry.getKey());
gauge.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.GAUGE.name()));
gauge.setValue(((Gauge<?>) entry.getValue()).getValue().toString());
metricArray.add(gauge);
origin: apache/incubator-gobblin

counter.setGroup(MetricGroup.TASK.name());
counter.setName(entry.getKey());
counter.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.COUNTER.name()));
counter.setValue(Long.toString(((Counter) entry.getValue()).getCount()));
metricArray.add(counter);
meter.setGroup(MetricGroup.TASK.name());
meter.setName(entry.getKey());
meter.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.METER.name()));
meter.setValue(Double.toString(((Meter) entry.getValue()).getMeanRate()));
metricArray.add(meter);
gauge.setGroup(MetricGroup.TASK.name());
gauge.setName(entry.getKey());
gauge.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.GAUGE.name()));
gauge.setValue(((Gauge<?>) entry.getValue()).getValue().toString());
metricArray.add(gauge);
origin: org.apache.gobblin/gobblin-metastore

private Metric resultSetToMetric(ResultSet rs)
  throws SQLException {
 Metric metric = new Metric();
 metric.setGroup(rs.getString("metric_group"));
 metric.setName(rs.getString("metric_name"));
 metric.setType(MetricTypeEnum.valueOf(rs.getString("metric_type")));
 metric.setValue(rs.getString("metric_value"));
 return metric;
}
origin: org.apache.gobblin/gobblin-metastore

private static Metric resultSetToMetric(ResultSet rs) throws SQLException {
 Metric metric = new Metric();
 metric.setGroup(rs.getString("metric_group"));
 metric.setName(rs.getString("metric_name"));
 metric.setType(MetricTypeEnum.valueOf(rs.getString("metric_type")));
 metric.setValue(rs.getString("metric_value"));
 return metric;
}
origin: org.apache.gobblin/gobblin-runtime

counter.setGroup(MetricGroup.JOB.name());
counter.setName(entry.getKey());
counter.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.COUNTER.name()));
counter.setValue(Long.toString(((Counter) entry.getValue()).getCount()));
metricArray.add(counter);
meter.setGroup(MetricGroup.JOB.name());
meter.setName(entry.getKey());
meter.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.METER.name()));
meter.setValue(Double.toString(((Meter) entry.getValue()).getMeanRate()));
metricArray.add(meter);
gauge.setGroup(MetricGroup.JOB.name());
gauge.setName(entry.getKey());
gauge.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.GAUGE.name()));
gauge.setValue(((Gauge<?>) entry.getValue()).getValue().toString());
metricArray.add(gauge);
origin: org.apache.gobblin/gobblin-runtime

counter.setGroup(MetricGroup.TASK.name());
counter.setName(entry.getKey());
counter.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.COUNTER.name()));
counter.setValue(Long.toString(((Counter) entry.getValue()).getCount()));
metricArray.add(counter);
meter.setGroup(MetricGroup.TASK.name());
meter.setName(entry.getKey());
meter.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.METER.name()));
meter.setValue(Double.toString(((Meter) entry.getValue()).getMeanRate()));
metricArray.add(meter);
gauge.setGroup(MetricGroup.TASK.name());
gauge.setName(entry.getKey());
gauge.setType(MetricTypeEnum.valueOf(GobblinMetrics.MetricType.GAUGE.name()));
gauge.setValue(((Gauge<?>) entry.getValue()).getValue().toString());
metricArray.add(gauge);
org.apache.gobblin.restMetricTypeEnumvalueOf

Popular methods of MetricTypeEnum

  • name

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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