Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.util
Class RuntimeUtils  view RuntimeUtils download RuntimeUtils.java

java.lang.Object
  extended bycom.flexstor.common.util.RuntimeUtils

public class RuntimeUtils
extends java.lang.Object


Field Summary
static long LOW_MEMORY_LIMIT
          The smallest memory amount considered safe to keep FLEXSTOR.db running.
 
Constructor Summary
RuntimeUtils()
           
 
Method Summary
static void cleanUpMemory()
          Invokes Garbage Collector.
static boolean isMemoryLow()
          Check if current available free memory is under the lower allowed limit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOW_MEMORY_LIMIT

public static final long LOW_MEMORY_LIMIT
The smallest memory amount considered safe to keep FLEXSTOR.db running.

See Also:
Constant Field Values
Constructor Detail

RuntimeUtils

public RuntimeUtils()
Method Detail

isMemoryLow

public static boolean isMemoryLow()
Check if current available free memory is under the lower allowed limit. This method will try to invoque garbage collection as an attempt for increasing the available free memory. This method is intended to help prevent situations that could lead into an OutOfMemoryError. It should be called before executing known memory consuming operations.


cleanUpMemory

public static void cleanUpMemory()
Invokes Garbage Collector.