Package com.wavefront.ingester
Interface ReportableEntityDecoder<T,E>
-
- All Known Implementing Classes:
EventDecoder,GraphiteReportMetricDecoder,OpenTSDBMetricDecoder,PickleProtocolDecoder,PickleProtocolMetricDecoder,ReportHistogramDecoder,ReportMetricDecoder,ReportPointDecoder,ReportPointDecoderWrapper,ReportSourceTagDecoder,SpanDecoder,SpanLogsDecoder,SpyApiMetricDecoder
public interface ReportableEntityDecoder<T,E>A decoder for input data. A more generic version ofDecoder, that supports other object types besides points.- Author:
- vasily@wavefront.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voiddecode(T msg, List<E> out)Certain decoders support decoding the customer id from the input line itself.default voiddecode(T msg, List<E> out, String customerId)Decode entities (points, spans, etc) and dump them into an output array.voiddecode(T msg, List<E> out, String customerId, IngesterContext ctx)Decode graphite points and dump them into an output array.
-
-
-
Method Detail
-
decode
void decode(T msg, List<E> out, String customerId, @Nullable IngesterContext ctx)
Decode graphite points and dump them into an output array. The supplied customer id will be set and no customer id extraction will be attempted.- 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.
-
decode
default void decode(T msg, List<E> out, String customerId)
Decode entities (points, spans, etc) and dump them into an output array. The supplied customer id will be set and no customer id extraction will be attempted.- Parameters:
msg- Message to parse.out- List to output the parsed point.customerId- The customer id to use as the table for the resulting entities.
-
-