sk.baka.webvm.analyzer.hostos
Class Memory

java.lang.Object
  extended by sk.baka.webvm.analyzer.hostos.Memory

public final class Memory
extends Object

Delivers information from a host operating system.

Author:
Martin Vysny

Method Summary
static MemoryUsage getPhysicalMemory()
          Returns physical memory information for host OS.
static MemoryUsage getSwap()
          Returns swap memory information for host OS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPhysicalMemory

public static MemoryUsage getPhysicalMemory()
Returns physical memory information for host OS.

Returns:
memory usage or null if the information is unavailable. The committed memory size includes buffers and/or disk cache. If committed memory size is equal to the used memory size then the buffer/cache information is not available.

getSwap

public static MemoryUsage getSwap()
Returns swap memory information for host OS.

Returns:
memory usage or null if the information is unavailable.


Copyright © 2010 Baka. All Rights Reserved.