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 ThreadCollector
public void setAgentInfoDao(AgentInfoDAO agentDao)
setAgentInfoDao
in interface ThreadCollector
public boolean startHarvester()
startHarvester
in interface ThreadCollector
public boolean stopHarvester()
stopHarvester
in interface ThreadCollector
public boolean isHarvesterCollecting()
isHarvesterCollecting
in interface ThreadCollector
public ThreadSummary getLatestThreadSummary()
getLatestThreadSummary
in interface ThreadCollector
public List<ThreadSummary> getThreadSummary(long since)
getThreadSummary
in interface ThreadCollector
public List<ThreadSummary> getThreadSummary()
getThreadSummary
in interface ThreadCollector
public List<ThreadInfoData> getThreadInfo()
ThreadCollector
ThreadInfoData
collected, sorted in
descending order their by ThreadInfoData.getTimeStamp()
.getThreadInfo
in interface ThreadCollector
public List<ThreadInfoData> getThreadInfo(long since)
ThreadCollector
ThreadInfoData
, sorted in descending order their by
ThreadInfoData.getTimeStamp()
, whose elements are at most
"since
" old.getThreadInfo
in interface ThreadCollector
public VMThreadCapabilities getVMThreadCapabilities()
getVMThreadCapabilities
in interface ThreadCollector
Copyright © 2013. All Rights Reserved.