Package org.rioproject.system.measurable.cpu

Examples of org.rioproject.system.measurable.cpu.CalculableProcessCPU


        logger.trace("{}: utilization={}", getId(), utilization);

        if(mRes instanceof CpuUtilization)
            addWatchRecord(new CalculableCPU(getId(), (CpuUtilization)mRes, now));
        else if (mRes instanceof ProcessCpuUtilization)
            addWatchRecord(new CalculableProcessCPU(getId(), (ProcessCpuUtilization)mRes, now));
        else
            addWatchRecord(new CalculableProcessCPU(getId(), mRes.getValue(), now));
       
        setLastMeasuredResource(mRes);
    }
View Full Code Here

TOP

Related Classes of org.rioproject.system.measurable.cpu.CalculableProcessCPU

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.