Package com.saperion.ngc.statistics
Class WebClientStatistics
- java.lang.Object
-
- org.zkoss.zk.ui.util.Statistic
-
- com.saperion.ngc.statistics.WebClientStatistics
-
- All Implemented Interfaces:
WebClientStatisticsMBean
,org.zkoss.zk.ui.util.Monitor
public class WebClientStatistics extends org.zkoss.zk.ui.util.Statistic implements WebClientStatisticsMBean
A listener that monitors the usage-statistics of the application. This listener must be added to the zk.xml file to activate it.
-
-
Constructor Summary
Constructors Constructor Description WebClientStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
desktopCreated(org.zkoss.zk.ui.Desktop desktop)
double
getAverageDesktopCount()
double
getAverageSessionCount()
double
getAverageUpdateCount()
java.lang.String
getStarted()
-
Methods inherited from class org.zkoss.zk.ui.util.Statistic
afterUpdate, beforeUpdate, desktopDestroyed, getActiveDesktopCount, getActiveSessionCount, getActiveUpdateCount, getStartTime, getTotalDesktopCount, getTotalSessionCount, getTotalUpdateCount, sessionCreated, sessionDestroyed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.saperion.ngc.statistics.WebClientStatisticsMBean
getActiveDesktopCount, getActiveSessionCount, getActiveUpdateCount, getTotalDesktopCount, getTotalSessionCount, getTotalUpdateCount
-
-
-
-
Method Detail
-
desktopCreated
public void desktopCreated(org.zkoss.zk.ui.Desktop desktop)
- Specified by:
desktopCreated
in interfaceorg.zkoss.zk.ui.util.Monitor
- Overrides:
desktopCreated
in classorg.zkoss.zk.ui.util.Statistic
-
getStarted
public java.lang.String getStarted()
- Specified by:
getStarted
in interfaceWebClientStatisticsMBean
- Returns:
- the time when the application was started.
-
getAverageSessionCount
public double getAverageSessionCount()
- Specified by:
getAverageSessionCount
in interfaceWebClientStatisticsMBean
- Overrides:
getAverageSessionCount
in classorg.zkoss.zk.ui.util.Statistic
- Returns:
- the average number of
Session
s per hour.
-
getAverageDesktopCount
public double getAverageDesktopCount()
- Specified by:
getAverageDesktopCount
in interfaceWebClientStatisticsMBean
- Overrides:
getAverageDesktopCount
in classorg.zkoss.zk.ui.util.Statistic
- Returns:
- the average number of
Desktop
s per hour.
-
getAverageUpdateCount
public double getAverageUpdateCount()
- Specified by:
getAverageUpdateCount
in interfaceWebClientStatisticsMBean
- Overrides:
getAverageUpdateCount
in classorg.zkoss.zk.ui.util.Statistic
- Returns:
- the average number of asynchronous updates processed by ZK engine per hour.
-
-