net.sourceforge.jaulp.io
Class MemoryUtils

java.lang.Object
  extended by net.sourceforge.jaulp.io.MemoryUtils

public class MemoryUtils
extends java.lang.Object

Utility class for getting the Memory status.

Version:
1.0
Author:
Asterios Raptis

Constructor Summary
MemoryUtils()
           
 
Method Summary
static void disposeUnusedMemory()
          Freeing memory that is available for the application by running the garbage collector.
static long getFreeMemoryForAppInKB()
          Gets the free memory in kilobytes is available for the application.
static long getFreeMemoryInKB()
          Gets the free memory in kilobytes is available.
static long getTotalMemoryInKB()
          Gets the total memory in kilobytes is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryUtils

public MemoryUtils()
Method Detail

disposeUnusedMemory

public static void disposeUnusedMemory()
Freeing memory that is available for the application by running the garbage collector.


getFreeMemoryForAppInKB

public static long getFreeMemoryForAppInKB()
Gets the free memory in kilobytes is available for the application.

Returns:
Returns the free memory in kilobytes is available for the application.

getFreeMemoryInKB

public static long getFreeMemoryInKB()
Gets the free memory in kilobytes is available.

Returns:
Returns the free memory in kilobytes is available.

getTotalMemoryInKB

public static long getTotalMemoryInKB()
Gets the total memory in kilobytes is available.

Returns:
Returns the total memory in kilobytes is available.


Copyright © 2010. All Rights Reserved.