Class CeilometerMetricStreamerConfig

    • Constructor Detail

      • CeilometerMetricStreamerConfig

        public CeilometerMetricStreamerConfig​(com.elastisys.scale.commons.openstack.AuthConfig auth,
                                              java.lang.String region,
                                              com.elastisys.scale.commons.json.types.TimeInterval pollInterval,
                                              java.util.List<CeilometerMetricStreamDefinition> metricStreams)
        Parameters:
        auth - The authentication block, either in version 2 or version 3 format. Required.
        region - The particular OpenStack region (out of the ones available in Keystone's service catalog) to connect to. For example, RegionOne. Required.
        pollInterval - The polling interval for metric streams.
        metricStreams - The collection of published MetricStreams. May be null.
    • Method Detail

      • getAuth

        public com.elastisys.scale.commons.openstack.AuthConfig getAuth()
        Declares how to authenticate with the OpenStack identity service (Keystone).
        Returns:
      • getRegion

        public java.lang.String getRegion()
        The particular OpenStack region (out of the ones available in Keystone's service catalog) to connect to. For example, RegionOne.
        Returns:
      • getPollInterval

        public com.elastisys.scale.commons.json.types.TimeInterval getPollInterval()
        Returns the polling interval (given in seconds) for metric streams.
        Returns:
      • validate

        public void validate()
                      throws java.lang.IllegalArgumentException
        Validates the configuration. On validation error, an IllegalArgumentException is thrown.
        Throws:
        java.lang.IllegalArgumentException
      • 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