Class UDPMetricEmitter

  • All Implemented Interfaces:
    MetricEmitter

    public class UDPMetricEmitter
    extends java.lang.Object
    implements MetricEmitter
    Generates EMF formatted metrics and send them to the CloudWatch Agent for publication.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void emitMetric​(Segment segment)
      Format the given metric and emit it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UDPMetricEmitter

        public UDPMetricEmitter()
                         throws java.net.SocketException
        Throws:
        java.net.SocketException
    • Method Detail

      • emitMetric

        public void emitMetric​(Segment segment)
        Format the given metric and emit it.
        Specified by:
        emitMetric in interface MetricEmitter
        Parameters:
        segment - Segment to emit metrics from