Search in sources :

Example 1 with JvmType

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);
}
Also used : JvmType(com.navercorp.pinpoint.common.util.JvmType)

Example 2 with JvmType

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;
}
Also used : CpuLoadMetric(com.navercorp.pinpoint.profiler.monitor.metric.cpu.CpuLoadMetric) JvmType(com.navercorp.pinpoint.common.util.JvmType)

Example 3 with JvmType

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;
}
Also used : JvmVersion(com.navercorp.pinpoint.common.util.JvmVersion) OsType(com.navercorp.pinpoint.common.util.OsType) JvmType(com.navercorp.pinpoint.common.util.JvmType) FileDescriptorMetric(com.navercorp.pinpoint.profiler.monitor.metric.filedescriptor.FileDescriptorMetric)

Aggregations

JvmType (com.navercorp.pinpoint.common.util.JvmType)3 JvmVersion (com.navercorp.pinpoint.common.util.JvmVersion)1 OsType (com.navercorp.pinpoint.common.util.OsType)1 CpuLoadMetric (com.navercorp.pinpoint.profiler.monitor.metric.cpu.CpuLoadMetric)1 FileDescriptorMetric (com.navercorp.pinpoint.profiler.monitor.metric.filedescriptor.FileDescriptorMetric)1