Class StatisticController


  • public final class StatisticController
    extends ro.pippo.controller.Controller
    Controller for requesting the statistic from KNX client
    • Constructor Detail

      • StatisticController

        public StatisticController()
    • Method Detail

      • getStatistic

        @GET("/statistic")
        @Consumes("application/json")
        @Produces("application/json")
        public KnxStatistic getStatistic()
        Endpoint for status request to return the current statistic of KNX client
        Returns:
        a new instance of KnxStatistic
      • getKnxClient

        public final KnxClient getKnxClient()
      • limitAndGetAsList

        protected final <T> List<T> limitAndGetAsList​(Collection<T> list)
        Returns a range of T elements from list. May be limited using start and limit request parameters.
        Type Parameters:
        T - the type of list value to be limited
        Parameters:
        list - the list that may be limited
        Returns:
        a new list of elements from Collection