Package com.wavefront.ingester
Class PickleProtocolMetricDecoder
- java.lang.Object
-
- com.wavefront.ingester.PickleProtocolMetricDecoder
-
- All Implemented Interfaces:
ReportableEntityDecoder<byte[],ReportMetric>
public class PickleProtocolMetricDecoder extends Object implements ReportableEntityDecoder<byte[],ReportMetric>
Pickle protocol format decoder. https://docs.python.org/2/library/pickle.html- Author:
- Mike McLaughlin (mike@wavefront.com)
-
-
Constructor Summary
Constructors Constructor Description PickleProtocolMetricDecoder(String hostName, List<String> customSourceTags, MetricMangler mangler, int port)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(byte[] msg, List<ReportMetric> out, String customerId, IngesterContext ctx)Decode graphite points and dump them into an output array.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.wavefront.ingester.ReportableEntityDecoder
decode, decode
-
-
-
-
Field Detail
-
logger
protected static final Logger logger
-
-
Constructor Detail
-
PickleProtocolMetricDecoder
public PickleProtocolMetricDecoder(String hostName, List<String> customSourceTags, MetricMangler mangler, int port)
Constructor.- Parameters:
hostName- the default host name.customSourceTags- list of source tags for this host.mangler- the metric mangler object.port- the listening port (for debug logging)
-
-
Method Detail
-
decode
public void decode(byte[] msg, List<ReportMetric> out, String customerId, IngesterContext ctx)Description copied from interface:ReportableEntityDecoderDecode graphite points and dump them into an output array. The supplied customer id will be set and no customer id extraction will be attempted.- Specified by:
decodein interfaceReportableEntityDecoder<byte[],ReportMetric>- Parameters:
msg- Message to parse.out- List to output the parsed point.customerId- The customer id to use as the table for the result ReportPoint.ctx- The ingester context with extra params for decoding.
-
-