edu.wisc.ssec.mcidasv.util
Class GetMem

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.util.GetMem

public class GetMem
extends Object


Constructor Summary
GetMem()
           
 
Method Summary
private
<T> T
callMXBeanMethod(String methodName, T defaultValue)
           
static void main(String[] args)
          The main.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetMem

public GetMem()
Method Detail

callMXBeanMethod

private <T> T callMXBeanMethod(String methodName,
                               T defaultValue)

main

public static void main(String[] args)
                 throws Exception
The main. Get total system memory and print it out. Account for 32bit JRE limitation of 1.5GB. Print value in megabytes.

Throws:
Exception