use of com.navercorp.pinpoint.profiler.monitor.metric.buffer.BufferMetric in project pinpoint by naver.
the class BufferMetricProviderTest method get.
@Test
public void get() {
Provider<BufferMetric> provider = new BufferMetricProvider();
BufferMetric bufferMetric = provider.get();
BufferMetricSnapshot snapshot = bufferMetric.getSnapshot();
Assert.assertEquals(snapshot.getDirectCount(), BufferMetric.UNCOLLECTED_VALUE);
}
use of com.navercorp.pinpoint.profiler.monitor.metric.buffer.BufferMetric in project pinpoint by naver.
the class BufferMetricProvider method get.
@Override
public BufferMetric get() {
final JvmVersion jvmVersion = JvmUtils.getVersion();
if (!jvmVersion.onOrAfter(JvmVersion.JAVA_7)) {
logger.debug("Unsupported JVM version. {}", jvmVersion);
return BufferMetric.UNSUPPORTED_BUFFER_METRIC;
}
BufferMetric bufferMetric = createBufferMetric(BUFFER_METRIC);
logger.info("loaded : {}", bufferMetric);
return bufferMetric;
}
Aggregations