org.ow2.jasmine.rules.threadump
Class ThreaDumpUtil
java.lang.Object
org.ow2.jasmine.rules.threadump.ThreaDumpUtil
public final class ThreaDumpUtil
- extends java.lang.Object
- Author:
- eyindanga
|
Method Summary |
static boolean |
checkit(double curValue,
double memoryThreshold)
Checks if the current memory value is >= memoryThreshold |
static double |
convertCurrentValue(java.lang.String memoryThresholdUnit,
java.lang.String byteValue)
Convert the value of current used memory to the corresponding unit. |
static void |
displayConfig(ThreadDumpConfig cfg)
|
static ThreadDumpConfig |
loadConfig(java.lang.String configPath,
org.osgi.framework.BundleContext bundleContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loadConfig
public static ThreadDumpConfig loadConfig(java.lang.String configPath,
org.osgi.framework.BundleContext bundleContext)
throws ThreadDumpException
- Throws:
ThreadDumpException
displayConfig
public static void displayConfig(ThreadDumpConfig cfg)
convertCurrentValue
public static double convertCurrentValue(java.lang.String memoryThresholdUnit,
java.lang.String byteValue)
throws ThreadDumpException
- Convert the value of current used memory to the corresponding unit.
- Parameters:
memoryThresholdUnit - The unit to convert to.byteValue - the value of current used memory in bytes
- Returns:
- the converted value
- Throws:
ThreadDumpException. - any.
ThreadDumpException
checkit
public static boolean checkit(double curValue,
double memoryThreshold)
- Checks if the current memory value is >= memoryThreshold
- Parameters:
curValue - value of current used memorymemoryThreshold - memory threshold.
- Returns:
true if so.
Copyright © 2009 OW2 Consortium. All Rights Reserved.