

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() |
A class to get system resources.
| long alma::acs::logging::engine::utils::ResourceChecker::getAllocatedMemory | ( | ) | [inline] |
References allocatedMemory, and updateMemory().
| long alma::acs::logging::engine::utils::ResourceChecker::getFreeMemory | ( | ) | [inline] |
References freeMemory, and updateMemory().
| long alma::acs::logging::engine::utils::ResourceChecker::getMaxMemory | ( | ) | [inline] |
References maxMemory, and updateMemory().
| long alma::acs::logging::engine::utils::ResourceChecker::getTotalFreeMemory | ( | ) | [inline] |
Implements alma::acs::logging::engine::utils::IResourceChecker.
References totalFreeMemory, and updateMemory().
| void alma::acs::logging::engine::utils::ResourceChecker::updateMemory | ( | ) | [inline, private] |
References allocatedMemory, freeMemory, maxMemory, rt, and totalFreeMemory.
Referenced by getAllocatedMemory(), getFreeMemory(), getMaxMemory(), and getTotalFreeMemory().
volatile long alma::acs::logging::engine::utils::ResourceChecker::allocatedMemory [private] |
The memory allocated by the application. Measured in bytes.
Referenced by getAllocatedMemory(), and updateMemory().
volatile long alma::acs::logging::engine::utils::ResourceChecker::freeMemory [private] |
The amount of free memory from the allocated memory Measured in bytes.
Referenced by getFreeMemory(), and updateMemory().
volatile long alma::acs::logging::engine::utils::ResourceChecker::maxMemory [private] |
The maximum amount of memory that your Java application can use
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().
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.
Referenced by getTotalFreeMemory(), and updateMemory().
1.6.2