Class ControlMetricsRequest


  • public class ControlMetricsRequest
    extends java.lang.Object
    A container class that is used to request control metric of remote node.
    • Constructor Summary

      Constructors 
      Constructor Description
      ControlMetricsRequest​(ControlMetricType type, int duration, java.util.concurrent.TimeUnit unit, java.lang.String resourceName)
      Instantiates a new control metric request of the control metric type and resource name with the given projected time range.
      ControlMetricsRequest​(ControlMetricType type, int duration, java.util.concurrent.TimeUnit unit, java.util.Optional<DeviceId> deviceId)
      Instantiates a new control metric request of the control metric type and device identifier with the given projected time range.
      ControlMetricsRequest​(ControlMetricType type, java.lang.String resourceName)
      Instantiates a new control metric request of the control metric type and resource name.
      ControlMetricsRequest​(ControlMetricType type, java.util.Optional<DeviceId> deviceId)
      Instantiates a new control metric request of the control metric type and device identifier.
    • Constructor Detail

      • ControlMetricsRequest

        public ControlMetricsRequest​(ControlMetricType type,
                                     java.util.Optional<DeviceId> deviceId)
        Instantiates a new control metric request of the control metric type and device identifier.
        Parameters:
        type - control metric type
        deviceId - device identifier
      • ControlMetricsRequest

        public ControlMetricsRequest​(ControlMetricType type,
                                     int duration,
                                     java.util.concurrent.TimeUnit unit,
                                     java.util.Optional<DeviceId> deviceId)
        Instantiates a new control metric request of the control metric type and device identifier with the given projected time range.
        Parameters:
        type - control metric type
        duration - projected time duration
        unit - projected time unit
        deviceId - device dientifer
      • ControlMetricsRequest

        public ControlMetricsRequest​(ControlMetricType type,
                                     java.lang.String resourceName)
        Instantiates a new control metric request of the control metric type and resource name.
        Parameters:
        type - control metric type
        resourceName - resource name
      • ControlMetricsRequest

        public ControlMetricsRequest​(ControlMetricType type,
                                     int duration,
                                     java.util.concurrent.TimeUnit unit,
                                     java.lang.String resourceName)
        Instantiates a new control metric request of the control metric type and resource name with the given projected time range.
        Parameters:
        type - control metric type
        duration - projected time duration
        unit - projected time unit
        resourceName - resource name
    • Method Detail

      • getType

        public ControlMetricType getType()
        Obtains control metric type.
        Returns:
        control metric type
      • getResourceName

        public java.lang.String getResourceName()
        Obtains resource name.
        Returns:
        resource name
      • getDeviceId

        public java.util.Optional<DeviceId> getDeviceId()
        Obtains device identifier.
        Returns:
        device identifier
      • getDuration

        public int getDuration()
        Obtains projected time duration.
        Returns:
        projected time duration
      • getUnit

        public java.util.concurrent.TimeUnit getUnit()
        Obtains projected time unit.
        Returns:
        projected time unit
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object