Package cdc.perfs.api

Interface Source


  • public interface Source
    Source of Measures.

    It can be configured to filter out measures that have an insufficient level. They are created in a Environment and are specific to an Environment. The same name can be used in several environments.

    Author:
    Damien Carbonne
    • Method Detail

      • getName

        String getName()
        Returns the name of this source.

        In a given environment, only one source can have a name.

        Returns:
        The name of this source.
      • setMaxLevel

        void setMaxLevel​(MeasureLevel maxLevel)
        Sets the maximum level of allowed measures for this source.
        Parameters:
        maxLevel - Maximum level of allowed measures.
      • getMaxLevel

        MeasureLevel getMaxLevel()
        Returns the finer level of measures that are generated for this source.
        Returns:
        The maximum level of this source.
      • isEnabled

        boolean isEnabled​(MeasureLevel level)
        Returns whether a level is allowed for this source.
        Parameters:
        level - The interrogated level.
        Returns:
        True when level is allowed for this source.
      • getMeasuresCount

        int getMeasuresCount()
        Returns:
        The number of measures associated to this Source.