Class QueryCall

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.util.List<com.elastisys.autoscaler.core.api.types.MetricValue>>

    public class QueryCall
    extends java.lang.Object
    implements java.util.concurrent.Callable<java.util.List<com.elastisys.autoscaler.core.api.types.MetricValue>>
    Executes a single remote query against a particular InfluxDB server.
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryCall​(org.slf4j.Logger logger, com.elastisys.scale.commons.net.http.Http httpClient, java.net.URI queryUrl, java.lang.String metricName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<com.elastisys.autoscaler.core.api.types.MetricValue> call()  
      • Methods inherited from class java.lang.Object

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

      • QueryCall

        public QueryCall​(org.slf4j.Logger logger,
                         com.elastisys.scale.commons.net.http.Http httpClient,
                         java.net.URI queryUrl,
                         java.lang.String metricName)
    • Method Detail

      • call

        public java.util.List<com.elastisys.autoscaler.core.api.types.MetricValue> call()
                                                                                 throws java.lang.Exception
        Specified by:
        call in interface java.util.concurrent.Callable<java.util.List<com.elastisys.autoscaler.core.api.types.MetricValue>>
        Throws:
        java.lang.Exception