public class PickleProtocolDecoder extends Object implements ReportableEntityDecoder<byte[],ReportPoint>
| Constructor and Description |
|---|
PickleProtocolDecoder(String hostName,
List<String> customSourceTags,
MetricMangler mangler,
int port)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(byte[] msg,
List<ReportPoint> out)
Certain decoders support decoding the customer id from the input line itself.
|
void |
decode(byte[] msg,
List<ReportPoint> out,
String customerId)
Decode entities (points, spans, etc) and dump them into an output array.
|
protected static final Logger logger
public PickleProtocolDecoder(String hostName, List<String> customSourceTags, MetricMangler mangler, int port)
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)public void decode(byte[] msg,
List<ReportPoint> out,
String customerId)
ReportableEntityDecoderdecode in interface ReportableEntityDecoder<byte[],ReportPoint>msg - Message to parse.out - List to output the parsed point.customerId - The customer id to use as the table for the resulting entities.public void decode(byte[] msg,
List<ReportPoint> out)
ReportableEntityDecoderdecode in interface ReportableEntityDecoder<byte[],ReportPoint>msg - Message to parse.out - List to output the parsed point.Copyright © 2020. All rights reserved.