|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.yammer.metrics.core.VirtualMachineMBeans
public class VirtualMachineMBeans
A collection of Java Virtual Machine metrics.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
VirtualMachineMBeans(MemoryMXBean memory,
List<MemoryPoolMXBean> memoryPools,
OperatingSystemMXBean os,
ThreadMXBean threads,
List<GarbageCollectorMXBean> garbageCollectors,
RuntimeMXBean runtime,
MBeanServer mBeanServer)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
VirtualMachineMBeans(MemoryMXBean memory,
List<MemoryPoolMXBean> memoryPools,
OperatingSystemMXBean os,
ThreadMXBean threads,
List<GarbageCollectorMXBean> garbageCollectors,
RuntimeMXBean runtime,
MBeanServer mBeanServer)
| Method Detail |
|---|
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 stream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||