org.jasig.cas.monitor
Class MemoryStatus

java.lang.Object
  extended by org.jasig.cas.monitor.Status
      extended by 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

Field Summary
 
Fields inherited from class org.jasig.cas.monitor.Status
ERROR, INFO, OK, UNKNOWN, WARN
 
Constructor Summary
MemoryStatus(StatusCode code, long free, long total)
          Creates a new status object with the given code.
 
Method Summary
 long getFreeMemory()
          Gets JVM free memory.
 long getTotalMemory()
          Gets JVM total memory.
 
Methods inherited from class org.jasig.cas.monitor.Status
getCode, getDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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()
Method Detail

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.