Package org.rioproject.system.measurable.memory.pool

Examples of org.rioproject.system.measurable.memory.pool.MemoryPoolUtilization


        checkValue();
        super.start();
    }   

    public void checkValue() {
        MemoryPoolUtilization mRes = monitor.getMeasuredResource();
        double utilization = calculateUtilization(mRes);
        long now = System.currentTimeMillis();
        addWatchRecord(new CalculableMemoryPool(getId(), utilization, now, mRes));
        setLastMeasuredResource(mRes);
    }
View Full Code Here


    public MemoryPoolUtilization getMeasuredResource() {
        getMemoryPoolMXBean();
        if(memoryPoolBean==null)
            return null;
        double utilization = (double)memoryPoolBean.getUsage().getUsed()/(double)memoryPoolBean.getUsage().getMax();
        return new MemoryPoolUtilization(getId(),
                                         utilization,
                                         memoryPoolBean.getUsage().getCommitted(),
                                         memoryPoolBean.getUsage().getInit(),
                                         memoryPoolBean.getUsage().getMax(),
                                         memoryPoolBean.getUsage().getUsed(),
View Full Code Here

TOP

Related Classes of org.rioproject.system.measurable.memory.pool.MemoryPoolUtilization

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.