public abstract class MetricsEvent extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MetricsEvent.Type |
| Constructor and Description |
|---|
MetricsEvent(ApplicationModel source,
String appName,
MetricsDispatcher metricsDispatcher,
TypeWrapper typeWrapper) |
MetricsEvent(ApplicationModel source,
TypeWrapper typeWrapper) |
| Modifier and Type | Method and Description |
|---|---|
String |
appName() |
void |
customAfterPost(Object postResult) |
Map<String,Object> |
getAttachments() |
<T> T |
getAttachmentValue(String key) |
MetricsDispatcher |
getMetricsDispatcher() |
ApplicationModel |
getSource() |
TypeWrapper |
getTypeWrapper() |
boolean |
isAssignableFrom(Object type) |
boolean |
isAvailable() |
void |
putAttachment(String key,
Object value) |
void |
putAttachments(Map<String,String> attachments) |
void |
setAvailable(boolean available) |
String |
toString() |
public MetricsEvent(ApplicationModel source, TypeWrapper typeWrapper)
public MetricsEvent(ApplicationModel source, String appName, MetricsDispatcher metricsDispatcher, TypeWrapper typeWrapper)
public <T> T getAttachmentValue(String key)
public void setAvailable(boolean available)
public boolean isAvailable()
public void customAfterPost(Object postResult)
public ApplicationModel getSource()
public MetricsDispatcher getMetricsDispatcher()
public String appName()
public TypeWrapper getTypeWrapper()
public boolean isAssignableFrom(Object type)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.