Class StatisticController
- java.lang.Object
-
- ro.pippo.controller.Controller
-
- li.pitschmann.knx.core.plugin.api.v1.controllers.StatisticController
-
public final class StatisticController extends ro.pippo.controller.ControllerController for requesting the statistic from KNX client
-
-
Constructor Summary
Constructors Constructor Description StatisticController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KnxClientgetKnxClient()KnxStatisticgetStatistic()Endpoint for status request to return the current statistic of KNX clientXmlProjectgetXmlProject()protected <T> List<T>limitAndGetAsList(Collection<T> list)Returns a range ofTelements from list.
-
-
-
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
-
getXmlProject
@Nullable public final XmlProject getXmlProject()
-
getKnxClient
public final KnxClient getKnxClient()
-
limitAndGetAsList
protected final <T> List<T> limitAndGetAsList(Collection<T> list)
Returns a range ofTelements from list. May be limited usingstartandlimitrequest 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
-
-