org.jasig.cas.monitor
Class MemoryStatus
java.lang.Object
org.jasig.cas.monitor.Status
org.jasig.cas.monitor.MemoryStatus
public class MemoryStatus
- extends Status
Describes the memory status of the JVM.
- Since:
- 3.5.0
- Author:
- Marvin S. Addison
|
Constructor Summary |
MemoryStatus(StatusCode code,
long free,
long total)
Creates a new status object with the given code. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryStatus
public MemoryStatus(StatusCode code,
long free,
long total)
- Creates a new status object with the given code.
- Parameters:
code - Status code.free - JVM free memory in bytes.total - JVM total memory in bytes.- See Also:
Status.getCode()
getFreeMemory
public long getFreeMemory()
- Gets JVM free memory.
- Returns:
- Free memory in bytes.
getTotalMemory
public long getTotalMemory()
- Gets JVM total memory.
- Returns:
- Max memory in bytes.
Copyright © 2004-2013 Jasig. All Rights Reserved.