Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::logging::engine::utils::ResourceChecker Class Reference

Inheritance diagram for alma::acs::logging::engine::utils::ResourceChecker:

Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::engine::utils::ResourceChecker:

Collaboration graph
[legend]
List of all members.

Public Member Functions

long getMaxMemory ()
long getAllocatedMemory ()
long getFreeMemory ()
long getTotalFreeMemory ()

Private Member Functions

void updateMemory ()

Private Attributes

volatile long maxMemory
volatile long allocatedMemory
volatile long freeMemory
volatile long totalFreeMemory

Static Private Attributes

final Runtime rt = Runtime.getRuntime()

Detailed Description

A class to get system resources.

Author:
acaproni


Member Function Documentation

long alma::acs::logging::engine::utils::ResourceChecker::getAllocatedMemory  )  [inline]
 

Returns:

long alma::acs::logging::engine::utils::ResourceChecker::getFreeMemory  )  [inline]
 

Returns:

long alma::acs::logging::engine::utils::ResourceChecker::getMaxMemory  )  [inline]
 

Returns:

long alma::acs::logging::engine::utils::ResourceChecker::getTotalFreeMemory  )  [inline]
 

Returns:

Implements alma::acs::logging::engine::utils::IResourceChecker.

void alma::acs::logging::engine::utils::ResourceChecker::updateMemory  )  [inline, private]
 


Member Data Documentation

volatile long alma::acs::logging::engine::utils::ResourceChecker::allocatedMemory [private]
 

The memory allocated by the application. Measured in bytes.

See also:
Runtime

volatile long alma::acs::logging::engine::utils::ResourceChecker::freeMemory [private]
 

The amount of free memory from the allocated memory Measured in bytes.

See also:
Runtime

volatile long alma::acs::logging::engine::utils::ResourceChecker::maxMemory [private]
 

The maximum amount of memory that your Java application can use

See also:
Runtime

final Runtime alma::acs::logging::engine::utils::ResourceChecker::rt = Runtime.getRuntime() [static, private]
 

The RunTime used to monitor the memory usage

volatile long alma::acs::logging::engine::utils::ResourceChecker::totalFreeMemory [private]
 

The memory allocated that can be used by the application taking into account the memory not yet allocated by the JVM. Measured in bytes.

See also:
Runtime


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:52 2009 for ACS Java API by doxygen 1.3.8