T
- type of POJO for which a JSON codec is providedpublic abstract class AbstractMetricDescriptorCodec<T extends MetricDescriptor> extends AbstractJsonCodec<T>
MetricDescriptor
objects.Modifier and Type | Field and Description |
---|---|
protected static String |
APP_ID |
protected static String |
DESC |
protected static String |
DESCRIPTION |
protected static String |
ERROR |
protected static String |
FAIL_COUNT |
protected static String |
FAIL_NODE |
protected static String |
JMX |
protected static String |
NAME |
protected static String |
PERSISTENCE |
protected static String |
PRIMARY_TAG |
protected static String |
PRIMING_VALUE |
static String |
ROOT |
static String |
ROOTS |
protected static String |
SECONDARY_TAG |
protected static String |
STATUS |
protected static String |
SUCCESS_COUNT |
protected static String |
SUCCESS_NODE |
protected static String |
SUMMARY_INTERVAL |
protected static String |
TYPE |
log, mapper, NO_DECODING_SUP, root, roots
Constructor and Description |
---|
AbstractMetricDescriptorCodec() |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.node.ObjectNode |
encode(T md)
Encodes the given POJO to its JSON representation.
|
protected String |
getName(com.fasterxml.jackson.databind.JsonNode metricNode) |
protected MetricDescriptor.Type |
getType(com.fasterxml.jackson.databind.JsonNode metricNode) |
protected void |
setCommonMetricDescriptor(com.fasterxml.jackson.databind.JsonNode metricNode,
MetricDescriptor.MetricDescriptorBuilder<T> builder) |
arrayNode, decode, decodeList, encode, encodeIterator, encodeIterator, encodeList, encodeList, fromEnums, isMissingContent, longVal, objectNode, read, root, roots, toEnums, write
public static final String ROOT
public static final String ROOTS
protected static final String SUCCESS_NODE
protected static final String FAIL_NODE
protected static final String SUCCESS_COUNT
protected static final String FAIL_COUNT
protected static final String NAME
protected static final String DESCRIPTION
protected static final String APP_ID
protected static final String TYPE
protected static final String DESC
protected static final String PERSISTENCE
protected static final String JMX
protected static final String SUMMARY_INTERVAL
protected static final String PRIMARY_TAG
protected static final String SECONDARY_TAG
protected static final String PRIMING_VALUE
protected static final String STATUS
protected static final String ERROR
public com.fasterxml.jackson.databind.node.ObjectNode encode(T md)
JsonCodec
md
- POJO to encodeprotected MetricDescriptor.Type getType(com.fasterxml.jackson.databind.JsonNode metricNode)
protected void setCommonMetricDescriptor(com.fasterxml.jackson.databind.JsonNode metricNode, MetricDescriptor.MetricDescriptorBuilder<T> builder)
protected String getName(com.fasterxml.jackson.databind.JsonNode metricNode)
Copyright © 2015. All Rights Reserved.