public class CounterMetricCodec extends AbstractJsonCodec<TimeStampedCounter>
TimeStampedCounter
objects.| Modifier and Type | Field and Description |
|---|---|
static String |
ROOT |
static String |
ROOTS |
log, mapper, NO_DECODING_SUP, root, roots| Constructor and Description |
|---|
CounterMetricCodec() |
| Modifier and Type | Method and Description |
|---|---|
TimeStampedCounter |
decode(com.fasterxml.jackson.databind.node.ObjectNode node)
Decodes the JSON into a typed POJO.
|
com.fasterxml.jackson.databind.node.ObjectNode |
encode(TimeStampedCounter pojo)
Encodes the given POJO to its JSON representation.
|
protected CounterDescriptorCodec |
getCounterDescriptorCodec() |
arrayNode, decode, decodeList, encode, encodeList, encodeList, fromEnums, isMissingContent, longVal, objectNode, read, root, roots, toEnums, writepublic static final String ROOT
public static final String ROOTS
public TimeStampedCounter decode(com.fasterxml.jackson.databind.node.ObjectNode node)
JsonCodecnode - JSON representation of the typed POJO. This does not have a
"top" rootprotected CounterDescriptorCodec getCounterDescriptorCodec()
public com.fasterxml.jackson.databind.node.ObjectNode encode(TimeStampedCounter pojo)
JsonCodecpojo - POJO to encodeCopyright © 2014. All Rights Reserved.