uk.ac.leeds.ccg.andyt.generic.memory
Class Generic_TestMemory

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.generic.memory.Generic_TestMemory

public class Generic_TestMemory
extends java.lang.Object

A class with methods that help in testing computer memory.


Field Summary
protected  java.lang.Runtime _Runtime
           
 
Constructor Summary
Generic_TestMemory()
          Creates a new instance of Generic_TestMemory
 
Method Summary
 java.lang.Runtime get_Runtime()
          Initialises _Runtime if it has not been.
 long getTotalFreeMemory()
          For returning the total free memory.
protected  void init_Runtime()
          Initialises _Runtime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_Runtime

protected transient java.lang.Runtime _Runtime
Constructor Detail

Generic_TestMemory

public Generic_TestMemory()
Creates a new instance of Generic_TestMemory

Method Detail

get_Runtime

public java.lang.Runtime get_Runtime()
Initialises _Runtime if it has not been.


init_Runtime

protected final void init_Runtime()
Initialises _Runtime


getTotalFreeMemory

public long getTotalFreeMemory()
For returning the total free memory.

Returns:
The TotalFreeMemory available as calculated from _Runtime.