Class StatisticsVisitorCallbackToXML

  • All Implemented Interfaces:
    com.helger.commons.callback.ICallback, com.helger.commons.statistics.util.IStatisticsVisitorCallback, Serializable

    public class StatisticsVisitorCallbackToXML
    extends Object
    implements com.helger.commons.statistics.util.IStatisticsVisitorCallback
    Special implementation of the IStatisticsVisitorCallback interface that fills a micro element with all current values
    Author:
    Philip Helger
    See Also:
    Serialized Form
    • Constructor Detail

      • StatisticsVisitorCallbackToXML

        public StatisticsVisitorCallbackToXML​(@Nonnull
                                              IMicroElement eRoot)
    • Method Detail

      • getRoot

        @Nonnull
        public IMicroElement getRoot()
        Returns:
        The root element passed in the constructor. Never null .
      • onCache

        public void onCache​(String sName,
                            com.helger.commons.statistics.IStatisticsHandlerCache aHandler)
        Specified by:
        onCache in interface com.helger.commons.statistics.util.IStatisticsVisitorCallback
      • onTimer

        public void onTimer​(String sName,
                            com.helger.commons.statistics.IStatisticsHandlerTimer aHandler)
        Specified by:
        onTimer in interface com.helger.commons.statistics.util.IStatisticsVisitorCallback
      • onKeyedTimer

        public void onKeyedTimer​(String sName,
                                 com.helger.commons.statistics.IStatisticsHandlerKeyedTimer aHandler)
        Specified by:
        onKeyedTimer in interface com.helger.commons.statistics.util.IStatisticsVisitorCallback
      • onSize

        public void onSize​(String sName,
                           com.helger.commons.statistics.IStatisticsHandlerSize aHandler)
        Specified by:
        onSize in interface com.helger.commons.statistics.util.IStatisticsVisitorCallback
      • onKeyedSize

        public void onKeyedSize​(String sName,
                                com.helger.commons.statistics.IStatisticsHandlerKeyedSize aHandler)
        Specified by:
        onKeyedSize in interface com.helger.commons.statistics.util.IStatisticsVisitorCallback
      • onCounter

        public void onCounter​(String sName,
                              com.helger.commons.statistics.IStatisticsHandlerCounter aHandler)
        Specified by:
        onCounter in interface com.helger.commons.statistics.util.IStatisticsVisitorCallback
      • onKeyedCounter

        public void onKeyedCounter​(String sName,
                                   com.helger.commons.statistics.IStatisticsHandlerKeyedCounter aHandler)
        Specified by:
        onKeyedCounter in interface com.helger.commons.statistics.util.IStatisticsVisitorCallback