com.bstek.dorado.console.performance
public class PerformanceMonitor extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
addMonitoredTarget(MonitoredTarget monitoredTarget)
添加一个监控目标
|
Category |
getCategory(java.lang.String name)
根据请求名获得Category
|
java.util.Map<java.lang.String,Category> |
getCategoryMap() |
static PerformanceMonitor |
getInstance() |
java.util.Collection<Process> |
getLastProcess()
获得全局dorado请求(已发生)列表
|
java.util.Map<java.lang.String,Process> |
getLastProcessMap()
获得最近发生的请求键值对集合
|
java.util.Map<java.lang.String,MonitoredTarget> |
getMonitoredTargets()
获得监控目标键值集合
|
void |
monitoredProcess(java.lang.String name,
long startTime,
long endTime,
java.lang.String type) |
void |
registerProcess(Process process)
储存性能信息
|
void |
removeMonitoredTarget(java.lang.String name)
删除监控目标
|
void |
saveProcessListToDB()
强制提交缓存中的性能数据
|
public static PerformanceMonitor getInstance()
public void registerProcess(Process process) throws java.lang.Exception
process
- java.lang.Exception
public void saveProcessListToDB() throws java.lang.Exception
java.lang.Exception
public void removeMonitoredTarget(java.lang.String name)
name
- public boolean addMonitoredTarget(MonitoredTarget monitoredTarget)
monitoredTarget
- public java.util.Map<java.lang.String,MonitoredTarget> getMonitoredTargets()
public void monitoredProcess(java.lang.String name, long startTime, long endTime, java.lang.String type)
name
- startTime
- endTime
- type
- public java.util.Collection<Process> getLastProcess()
public java.util.Map<java.lang.String,Process> getLastProcessMap()
通过此方法可获得全局dorado请求(已发生)列表
public Category getCategory(java.lang.String name)
name
- public java.util.Map<java.lang.String,Category> getCategoryMap()
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.