public class RollingCounterDescriptorCodec extends AbstractMetricDescriptorCodec<RollingCounterDescriptor>
RollingCounterDescriptor
objects.APP_ID, DESC, DESCRIPTION, ERROR, FAIL_COUNT, FAIL_NODE, JMX, NAME, PERSISTENCE, PRIMARY_TAG, PRIMING_VALUE, ROOT, ROOTS, SECONDARY_TAG, STATUS, SUCCESS_COUNT, SUCCESS_NODE, SUMMARY_INTERVAL, TYPE
log, mapper, NO_DECODING_SUP, root, roots
Constructor and Description |
---|
RollingCounterDescriptorCodec() |
Modifier and Type | Method and Description |
---|---|
RollingCounterDescriptor |
decode(com.fasterxml.jackson.databind.node.ObjectNode node)
Decodes the JSON into a typed POJO.
|
com.fasterxml.jackson.databind.node.ObjectNode |
encode(RollingCounterDescriptor md)
Encodes the given POJO to its JSON representation.
|
getName, getType, setCommonMetricDescriptor
arrayNode, decode, decodeList, encode, encodeIterator, encodeIterator, encodeList, encodeList, fromEnums, isMissingContent, longVal, objectNode, read, root, roots, toEnums, write
public RollingCounterDescriptor decode(com.fasterxml.jackson.databind.node.ObjectNode node)
JsonCodec
node
- JSON representation of the typed POJO. This does not have a
"top" rootpublic com.fasterxml.jackson.databind.node.ObjectNode encode(RollingCounterDescriptor md)
JsonCodec
encode
in interface JsonCodec<RollingCounterDescriptor>
encode
in class AbstractMetricDescriptorCodec<RollingCounterDescriptor>
md
- POJO to encodeCopyright © 2015. All Rights Reserved.