Class AbstractStatsCollectionListener

  • All Implemented Interfaces:
    StatsCollectionListener
    Direct Known Subclasses:
    AbstractThresholdListener

    public abstract class AbstractStatsCollectionListener
    extends Object
    implements StatsCollectionListener
    The listener interface for receiving abstractStatsCollection events. The class that is interested in processing a abstractStatsCollection event implements this interface, and the object created with that class is registered with a component using the component's addAbstractStatsCollectionListener method. When the abstractStatsCollection event occurs, that object's appropriate method is invoked.
    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
        The logger.
      • propertyCategory

        private String propertyCategory
        The property category.
      • enabled

        private boolean enabled
        The enabled.
    • Constructor Detail

      • AbstractStatsCollectionListener

        public AbstractStatsCollectionListener()
    • Method Detail

      • setEnabled

        protected void setEnabled​(boolean enabled)
        Sets the enabled.
        Parameters:
        enabled - the new enabled
      • getPropertyValue

        protected String getPropertyValue​(String name,
                                          String attribute)
        Gets the property value.
        Parameters:
        name - the name
        attribute - the attribute
        Returns:
        the property value
      • getPropertyValue

        protected String getPropertyValue​(String key)
        Gets the property value.
        Parameters:
        key - the key
        Returns:
        the property value
      • getPropertyKey

        protected String getPropertyKey​(String name,
                                        String attribute)
        Gets the property key.
        Parameters:
        name - the name
        attribute - the attribute
        Returns:
        the property key
      • getPropertyKey

        private String getPropertyKey​(String category,
                                      String name,
                                      String attribute)
        Gets the property key.
        Parameters:
        category - the category
        name - the name
        attribute - the attribute
        Returns:
        the property key
      • reset

        public void reset()
        Reset.
      • getPropertyCategory

        public String getPropertyCategory()
        Gets the property category.
        Returns:
        the property category
      • setPropertyCategory

        public void setPropertyCategory​(String propertyCategory)
        Sets the property category.
        Parameters:
        propertyCategory - the new property category