Examples of MemBean


Examples of org.netbeans.server.uihandler.statistics.Memory.MemBean

        Collection<Memory.MemBean> l = (Collection<Memory.MemBean>)o;
        assertEquals("Two buckets", 2, l.size());

        Iterator<MemBean> it = l.iterator();
       
        MemBean mb1 = it.next();
        LOG.info(mb1.toString());
        assertEquals("977 KB is rounded to 1024KB", "1024 KB", mb1.getMemory());
        assertEquals("three sessions ", 3, mb1.getCount());
        MemBean mb2 = it.next();
        LOG.info(mb2.toString());
        assertEquals("2GB", "2 GB", mb2.getMemory());
        assertEquals("one session", 1, mb2.getCount());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.