use of com.navercorp.pinpoint.common.util.JvmType in project pinpoint by naver.
the class ShutdownHookRegisterProvider method get.
@Override
public ShutdownHookRegister get() {
JvmType jvmType = JvmType.fromVendor(vendorName);
if (jvmType == JvmType.UNKNOWN) {
jvmType = JvmUtils.getType();
}
final String classToLoad = getShutdownHookRegiterClassName(jvmType);
return createShutdownHookRegister(classToLoad);
}
use of com.navercorp.pinpoint.common.util.JvmType in project pinpoint by naver.
the class CpuLoadMetricProvider method get.
@Override
public CpuLoadMetric get() {
JvmType jvmType = JvmType.fromVendor(vendorName);
if (jvmType == JvmType.UNKNOWN) {
jvmType = JvmUtils.getType();
}
final String classToLoad = getCpuLoadMetricClassName(jvmType);
final CpuLoadMetric cpuLoadMetric = createCpuLoadMetric(classToLoad);
logger.info("loaded : {}", cpuLoadMetric);
return cpuLoadMetric;
}
use of com.navercorp.pinpoint.common.util.JvmType in project pinpoint by naver.
the class FileDescriptorMetricProvider method get.
@Override
public FileDescriptorMetric get() {
final JvmVersion jvmVersion = JvmUtils.getVersion();
final JvmType jvmType = getJvmType();
final OsType osType = getOsType();
final String classToLoad = getMetricClassName(osType, jvmVersion, jvmType);
FileDescriptorMetric fileDescriptorMetric = createFileDescriptorMetric(classToLoad);
logger.info("loaded : {}", fileDescriptorMetric);
return fileDescriptorMetric;
}
Aggregations