public class RollingCounterMetricCodec extends AbstractJsonCodec<TimeStampedRollingCounter>
TimeStampedRollingCounter
objects.Modifier and Type | Field and Description |
---|---|
static String |
ROOT |
static String |
ROOTS |
log, mapper, NO_DECODING_SUP, root, roots
Constructor and Description |
---|
RollingCounterMetricCodec() |
Modifier and Type | Method and Description |
---|---|
TimeStampedRollingCounter |
decode(com.fasterxml.jackson.databind.node.ObjectNode node)
Decodes the JSON into a typed POJO.
|
com.fasterxml.jackson.databind.node.ObjectNode |
encode(TimeStampedRollingCounter pojo)
Encodes the given POJO to its JSON representation.
|
protected RollingCounterDescriptorCodec |
getRollingCounterDescriptorCodec() |
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
public TimeStampedRollingCounter decode(com.fasterxml.jackson.databind.node.ObjectNode node)
JsonCodec
node
- JSON representation of the typed POJO. This does not have a
"top" rootprotected RollingCounterDescriptorCodec getRollingCounterDescriptorCodec()
public com.fasterxml.jackson.databind.node.ObjectNode encode(TimeStampedRollingCounter pojo)
JsonCodec
pojo
- POJO to encodeCopyright © 2015. All Rights Reserved.