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

static 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:

References allocatedMemory, and updateMemory().

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

References freeMemory, and updateMemory().

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

References maxMemory, and updateMemory().

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

Member Data Documentation

The memory allocated by the application. Measured in bytes.

See also:
Runtime

Referenced by getAllocatedMemory(), and updateMemory().

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

See also:
Runtime

Referenced by getFreeMemory(), and updateMemory().

The maximum amount of memory that your Java application can use

See also:
Runtime

Referenced by getMaxMemory(), and updateMemory().

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

The RunTime used to monitor the memory usage

Referenced by updateMemory().

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

Referenced by getTotalFreeMemory(), and updateMemory().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2