Class SendMetrics

  • All Implemented Interfaces:
    java.util.concurrent.Callable

    class SendMetrics
    extends java.lang.Object
    implements java.util.concurrent.Callable
    A Send metrics class that is used to send metrics to the metrics server using HTTP POST methods
    Author:
    vahi
    • Field Detail

      • mURL

        private java.lang.String mURL
    • Constructor Detail

      • SendMetrics

        public SendMetrics​(PlannerMetrics metrics,
                           java.lang.String url)
    • Method Detail

      • call

        public SendMetricsResult call()
                               throws java.io.IOException
        Specified by:
        call in interface java.util.concurrent.Callable
        Throws:
        java.io.IOException
      • send

        private SendMetricsResult send​(PlannerMetrics metrics,
                                       java.lang.String url)
                                throws java.io.IOException
        Sends the planner metrics to the metrics server
        Parameters:
        metrics - the metrics to log
        url - the url to send the metrics to
        Throws:
        java.io.IOException