@Activate public class RegistryMetricsCollector extends Object implements ApplicationMetricsCollector<ApplicationType,RegistryEvent>
MetricsCollector| 构造器和说明 |
|---|
RegistryMetricsCollector(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addApplicationRT(String applicationName,
String registryOpType,
Long responseTime) |
void |
addServiceKeyRT(String applicationName,
String serviceKey,
String registryOpType,
Long responseTime) |
List<MetricSample> |
collect() |
void |
increment(String applicationName,
ApplicationType registryType) |
void |
incrementServiceKey(String applicationName,
String serviceKey,
ServiceType registryType,
int size) |
boolean |
isCollectEnabled() |
boolean |
isSupport(MetricsEvent event) |
void |
onEvent(RegistryEvent event) |
void |
onEventError(RegistryEvent event) |
void |
onEventFinish(RegistryEvent event) |
void |
setCollectEnabled(Boolean collectEnabled) |
void |
setNum(ApplicationType registryType,
String applicationName,
Integer num) |
void |
setNum(ServiceType registryType,
String applicationName,
Map<String,Integer> lastNumMap) |
public RegistryMetricsCollector(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
public void setCollectEnabled(Boolean collectEnabled)
public boolean isCollectEnabled()
isCollectEnabled 在接口中 MetricsCollector<RegistryEvent>public void setNum(ServiceType registryType, String applicationName, Map<String,Integer> lastNumMap)
public void setNum(ApplicationType registryType, String applicationName, Integer num)
public void increment(String applicationName, ApplicationType registryType)
public void incrementServiceKey(String applicationName, String serviceKey, ServiceType registryType, int size)
public void addApplicationRT(String applicationName, String registryOpType, Long responseTime)
public void addServiceKeyRT(String applicationName, String serviceKey, String registryOpType, Long responseTime)
public List<MetricSample> collect()
collect 在接口中 MetricsCollector<RegistryEvent>public boolean isSupport(MetricsEvent event)
isSupport 在接口中 MetricsListener<RegistryEvent>public void onEvent(RegistryEvent event)
onEvent 在接口中 MetricsListener<RegistryEvent>public void onEventFinish(RegistryEvent event)
onEventFinish 在接口中 MetricsLifeListener<RegistryEvent>public void onEventError(RegistryEvent event)
onEventError 在接口中 MetricsLifeListener<RegistryEvent>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.