Package com.biglybt.core.util
Class AEJavaManagement
- java.lang.Object
-
- com.biglybt.core.util.AEJavaManagement
-
public class AEJavaManagement extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AEJavaManagement.MemoryStuff
static interface
AEJavaManagement.ThreadStuff
-
Field Summary
Fields Modifier and Type Field Description private static AEJavaManagement.MemoryStuff
memory_stuff
private static AEJavaManagement.ThreadStuff
thread_stuff
-
Constructor Summary
Constructors Constructor Description AEJavaManagement()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
decodeJVMLong(java.lang.String val)
static void
dumpThreads()
static java.lang.String
encodeJVMLong(long val)
static long
getJVMLongOption(java.lang.String[] options, java.lang.String prefix)
static long
getMaxHeapMB()
static java.util.List<java.lang.String>
getMemoryHistory()
static long
getThreadCPUTime()
static void
initialise()
static java.lang.String[]
removeJVMOption(java.lang.String[] options, java.lang.String prefix)
static java.lang.String[]
setJVMLongOption(java.lang.String[] options, java.lang.String prefix, long val)
-
-
-
Field Detail
-
thread_stuff
private static AEJavaManagement.ThreadStuff thread_stuff
-
memory_stuff
private static AEJavaManagement.MemoryStuff memory_stuff
-
-
Method Detail
-
initialise
public static void initialise()
-
getThreadCPUTime
public static long getThreadCPUTime()
-
getMemoryHistory
public static java.util.List<java.lang.String> getMemoryHistory()
-
dumpThreads
public static void dumpThreads()
-
getMaxHeapMB
public static long getMaxHeapMB()
-
getJVMLongOption
public static long getJVMLongOption(java.lang.String[] options, java.lang.String prefix)
-
setJVMLongOption
public static java.lang.String[] setJVMLongOption(java.lang.String[] options, java.lang.String prefix, long val)
-
removeJVMOption
public static java.lang.String[] removeJVMOption(java.lang.String[] options, java.lang.String prefix)
-
decodeJVMLong
public static long decodeJVMLong(java.lang.String val) throws java.lang.Exception
- Throws:
java.lang.Exception
-
encodeJVMLong
public static java.lang.String encodeJVMLong(long val)
-
-