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 the AWS CloudWatch API.
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryCall​(org.slf4j.Logger logger, MetricStreamConfig config, org.joda.time.Interval queryInterval)
      Creates a new QueryCall.
    • 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,
                         MetricStreamConfig config,
                         org.joda.time.Interval queryInterval)
        Creates a new QueryCall.
        Parameters:
        logger -
        config -
        queryInterval -
    • 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