|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.leeds.ccg.andyt.projects.moses.utilities.TestMemory
public class TestMemory
A class with methods that help in testing computer memory.
| Field Summary | |
|---|---|
protected java.lang.Runtime |
_Runtime
|
| Constructor Summary | |
|---|---|
TestMemory()
Creates a new instance of TestMemory |
|
| Method Summary | |
|---|---|
long |
getTotalFreeMemory()
For returning the total free memory ( _Runtime.freeMemory() + ( _Runtime.maxMemory() - _Runtime.totalMemory() ) ) Even if this is zero then the JVM may be able to allocate memory in reserves? |
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 |
|---|
protected transient java.lang.Runtime _Runtime
| Constructor Detail |
|---|
public TestMemory()
| Method Detail |
|---|
protected final void init_Runtime()
public long getTotalFreeMemory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||