Examples of MemoryMonitor


Examples of uk.ac.uea.threadr.internal.MemoryMonitor

   */
  @Test
  public final void testGetMemoryMonitor() {
       
    instance = new Threadr();
    MemoryMonitor monitor = instance.getMemoryMonitor();
    String pid = ManagementFactory.getRuntimeMXBean().getName();
   
    /* Make sure the MemoryMonitor for this process was returned. */
    assertNotNull("Returned MemoryMonitor was null.", monitor);
    assertEquals("Returned MemoryMonitor had different process ID.",
        pid, monitor.getProcessID());
  }
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.