public class VirtualMachineMBeans extends Object
| Modifier and Type | Field and Description |
|---|---|
private List<GarbageCollectorMXBean> |
garbageCollectors |
private static VirtualMachineMBeans |
INSTANCE |
private static int |
MAX_STACK_TRACE_DEPTH |
private MBeanServer |
mBeanServer |
private MemoryMXBean |
memory |
private List<MemoryPoolMXBean> |
memoryPools |
private OperatingSystemMXBean |
os |
private RuntimeMXBean |
runtime |
private ThreadMXBean |
threads |
| Constructor and Description |
|---|
VirtualMachineMBeans(MemoryMXBean memory,
List<MemoryPoolMXBean> memoryPools,
OperatingSystemMXBean os,
ThreadMXBean threads,
List<GarbageCollectorMXBean> garbageCollectors,
RuntimeMXBean runtime,
MBeanServer mBeanServer) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getDeadlockedThreads()
Returns a set of strings describing deadlocked threads, if any are deadlocked.
|
List<GarbageCollectorMXBean> |
getGarbageCollectors() |
static VirtualMachineMBeans |
getInstance()
The default instance of
VirtualMachineMBeans. |
MBeanServer |
getMBeanServer() |
MemoryMXBean |
getMemory() |
List<MemoryPoolMXBean> |
getMemoryPools() |
String |
getName()
Returns the name of the currently-running jvm.
|
OperatingSystemMXBean |
getOs() |
RuntimeMXBean |
getRuntime() |
void |
getThreadDump(OutputStream out)
Dumps all of the threads' current information to an output stream.
|
ThreadMXBean |
getThreads() |
String |
getVersion()
Returns the version of the currently-running jvm.
|
private static final int MAX_STACK_TRACE_DEPTH
private static final VirtualMachineMBeans INSTANCE
private final MemoryMXBean memory
private final List<MemoryPoolMXBean> memoryPools
private final OperatingSystemMXBean os
private final ThreadMXBean threads
private final List<GarbageCollectorMXBean> garbageCollectors
private final RuntimeMXBean runtime
private final MBeanServer mBeanServer
VirtualMachineMBeans(MemoryMXBean memory, List<MemoryPoolMXBean> memoryPools, OperatingSystemMXBean os, ThreadMXBean threads, List<GarbageCollectorMXBean> garbageCollectors, RuntimeMXBean runtime, MBeanServer mBeanServer)
public static VirtualMachineMBeans getInstance()
VirtualMachineMBeans.instancepublic MemoryMXBean getMemory()
public List<MemoryPoolMXBean> getMemoryPools()
public OperatingSystemMXBean getOs()
public ThreadMXBean getThreads()
public List<GarbageCollectorMXBean> getGarbageCollectors()
public RuntimeMXBean getRuntime()
public MBeanServer getMBeanServer()
public String getVersion()
public String getName()
public Set<String> getDeadlockedThreads()
public void getThreadDump(OutputStream out)
out - an output streamCopyright © 2013 Immobilien Scout GmbH. All Rights Reserved.