public class ThreadMXBeanCollector extends Object implements ThreadCollector
| Constructor and Description |
|---|
ThreadMXBeanCollector(org.osgi.framework.BundleContext context,
VmRef ref) |
| Modifier and Type | Method and Description |
|---|---|
ThreadSummary |
getLatestThreadSummary() |
List<ThreadInfoData> |
getThreadInfo()
Return a list of all the
ThreadInfoData collected, sorted in
descending order their by ThreadInfoData.getTimeStamp(). |
List<ThreadInfoData> |
getThreadInfo(long since)
Return a list of
ThreadInfoData, sorted in descending order their by
ThreadInfoData.getTimeStamp(), whose elements are at most
"since" old. |
List<ThreadSummary> |
getThreadSummary() |
List<ThreadSummary> |
getThreadSummary(long since) |
VMThreadCapabilities |
getVMThreadCapabilities() |
boolean |
isHarvesterCollecting() |
void |
setAgentInfoDao(AgentInfoDAO agentDao) |
void |
setThreadDao(ThreadDao threadDao) |
boolean |
startHarvester() |
boolean |
stopHarvester() |
public ThreadMXBeanCollector(org.osgi.framework.BundleContext context,
VmRef ref)
public void setThreadDao(ThreadDao threadDao)
setThreadDao in interface ThreadCollectorpublic void setAgentInfoDao(AgentInfoDAO agentDao)
setAgentInfoDao in interface ThreadCollectorpublic boolean startHarvester()
startHarvester in interface ThreadCollectorpublic boolean stopHarvester()
stopHarvester in interface ThreadCollectorpublic boolean isHarvesterCollecting()
isHarvesterCollecting in interface ThreadCollectorpublic ThreadSummary getLatestThreadSummary()
getLatestThreadSummary in interface ThreadCollectorpublic List<ThreadSummary> getThreadSummary(long since)
getThreadSummary in interface ThreadCollectorpublic List<ThreadSummary> getThreadSummary()
getThreadSummary in interface ThreadCollectorpublic List<ThreadInfoData> getThreadInfo()
ThreadCollectorThreadInfoData collected, sorted in
descending order their by ThreadInfoData.getTimeStamp().getThreadInfo in interface ThreadCollectorpublic List<ThreadInfoData> getThreadInfo(long since)
ThreadCollectorThreadInfoData, sorted in descending order their by
ThreadInfoData.getTimeStamp(), whose elements are at most
"since" old.getThreadInfo in interface ThreadCollectorpublic VMThreadCapabilities getVMThreadCapabilities()
getVMThreadCapabilities in interface ThreadCollectorCopyright © 2013. All Rights Reserved.