All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.ingester.Decoder Maven / Gradle / Ivy

package com.wavefront.ingester;

import java.util.List;

import wavefront.report.ReportPoint;

/**
 * A decoder of an input line.
 *
 * @author Clement Pang ([email protected]).
 */
public interface Decoder {
  /**
   * 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.
   *
   * @param msg        Message to parse.
   * @param out        List to output the parsed point.
   * @param customerId The customer id to use as the table for the result ReportPoint.
   */
  void decodeReportPoints(T msg, List out, String customerId);

  /**
   * Certain decoders support decoding the customer id from the input line itself.
   *
   * @param msg Message to parse.
   * @param out List to output the parsed point.
   */
  void decodeReportPoints(T msg, List out);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy