@Test public void supportsTheCorrectJMXBeans() { List<SupportedJMXBean> supportedMetrics = this.instance.getSupportedMetrics(); Assert.assertEquals(7, supportedMetrics.size()); Assert.assertTrue("Supported metrics didn't contain GC_COPY_TIME", supportedMetrics.contains(SupportedJMXBean.GC_COPY_TIME)); Assert.assertTrue("Supported metrics didn't contain GC_PAR_NEW_TIME", supportedMetrics.contains(SupportedJMXBean.GC_PAR_NEW_TIME)); Assert.assertTrue("Supported metrics didn't contain GC_PS_SCAVENGE_TIME", supportedMetrics.contains(SupportedJMXBean.GC_PS_SCAVENGE_TIME)); Assert.assertTrue("Supported metrics didn't contain GC_G1_YOUNG_GENERATION_TIME", supportedMetrics.contains(SupportedJMXBean.GC_G1_YOUNG_GENERATION_TIME)); Assert.assertTrue("Supported metrics didn't contain GC_MARK_SWEEP_TIME", supportedMetrics.contains(SupportedJMXBean.GC_MARK_SWEEP_TIME)); Assert.assertTrue("Supported metrics didn't contain GC_PS_MARK_SWEEP_TIME", supportedMetrics.contains(SupportedJMXBean.GC_PS_MARK_SWEEP_TIME)); Assert.assertTrue("Supported metrics didn't contain GC_G1_OLD_GENERATION_TIME", supportedMetrics.contains(SupportedJMXBean.GC_G1_OLD_GENERATION_TIME)); }
@Override List<SupportedJMXBean> getSupportedMetrics() { return Lists.newArrayList(SupportedJMXBean.GC_COPY_TIME, SupportedJMXBean.GC_PAR_NEW_TIME, SupportedJMXBean.GC_PS_SCAVENGE_TIME, SupportedJMXBean.GC_G1_YOUNG_GENERATION_TIME, SupportedJMXBean.GC_MARK_SWEEP_TIME, SupportedJMXBean.GC_PS_MARK_SWEEP_TIME, SupportedJMXBean.GC_G1_OLD_GENERATION_TIME); }
GarbageCollectionTimeMetricFactory extends TargetMetricFactory { @Override List<SupportedJMXBean> getSupportedMetrics() { return Lists.newArrayList(SupportedJMXBean.GC_COPY_TIME, SupportedJMXBean.GC_PAR_NEW_TIME, SupportedJMXBean.GC_PS_SCAVENGE_TIME, SupportedJMXBean.GC_G1_YOUNG_GENERATION_TIME, SupportedJMXBean.GC_MARK_SWEEP_TIME, SupportedJMXBean.GC_PS_MARK_SWEEP_TIME, SupportedJMXBean.GC_G1_OLD_GENERATION_TIME); } }
GarbageCollectionTimeMetricFactory extends TargetMetricFactory { @Override List<SupportedJMXBean> getSupportedMetrics() { return Lists.newArrayList(SupportedJMXBean.GC_COPY_TIME, SupportedJMXBean.GC_PAR_NEW_TIME, SupportedJMXBean.GC_PS_SCAVENGE_TIME, SupportedJMXBean.GC_G1_YOUNG_GENERATION_TIME, SupportedJMXBean.GC_MARK_SWEEP_TIME, SupportedJMXBean.GC_PS_MARK_SWEEP_TIME, SupportedJMXBean.GC_G1_OLD_GENERATION_TIME); } GarbageCollectionTimeMetricFactory();  GarbageCollectionTimeMetricFactory(IngestMetricBuilder metricBuilder); }
GarbageCollectionTimeMetricFactory extends TargetMetricFactory { @Override List<SupportedJMXBean> getSupportedMetrics() { return Lists.newArrayList(SupportedJMXBean.GC_COPY_TIME, SupportedJMXBean.GC_PAR_NEW_TIME, SupportedJMXBean.GC_PS_SCAVENGE_TIME, SupportedJMXBean.GC_G1_YOUNG_GENERATION_TIME, SupportedJMXBean.GC_MARK_SWEEP_TIME, SupportedJMXBean.GC_PS_MARK_SWEEP_TIME, SupportedJMXBean.GC_G1_OLD_GENERATION_TIME); } GarbageCollectionTimeMetricFactory();  GarbageCollectionTimeMetricFactory(IngestMetricBuilder metricBuilder);  }
GarbageCollectionTimeMetricFactory extends TargetMetricFactory { @Override List<SupportedJMXBean> getSupportedMetrics() { return Lists.newArrayList(SupportedJMXBean.GC_COPY_TIME, SupportedJMXBean.GC_PAR_NEW_TIME, SupportedJMXBean.GC_PS_SCAVENGE_TIME, SupportedJMXBean.GC_G1_YOUNG_GENERATION_TIME, SupportedJMXBean.GC_MARK_SWEEP_TIME, SupportedJMXBean.GC_PS_MARK_SWEEP_TIME, SupportedJMXBean.GC_G1_OLD_GENERATION_TIME); } GarbageCollectionTimeMetricFactory();  GarbageCollectionTimeMetricFactory(IngestMetricBuilder metricBuilder);   }