Package org.adempiere.webui.util
Class Statistic
java.lang.Object
org.adempiere.webui.util.Statistic
- All Implemented Interfaces:
org.zkoss.zk.ui.util.Monitor
Adapted from
Statistic
- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterUpdate
(org.zkoss.zk.ui.Desktop desktop) void
beforeUpdate
(org.zkoss.zk.ui.Desktop desktop, List<org.zkoss.zk.au.AuRequest> requests) void
desktopCreated
(org.zkoss.zk.ui.Desktop desktop) void
desktopDestroyed
(org.zkoss.zk.ui.Desktop desktop) long
Returns the number of active desktops.long
Returns the number of active sessions.long
Returns the number of active asynchronous updates.double
Returns the average number of desktops being created in an hour.double
Returns the average number of sessions being created in an hour.double
Returns the average number of asynchronous updates being created in an hour.long
Returns when the server (actually, this monitor) started.long
Returns the total number of desktops that have been created since the server started.long
Returns the total number of sessions that have been created since the server started.long
Returns the total number of asynchronous updates that have been received since the server started.void
sessionCreated
(org.zkoss.zk.ui.Session sess) void
sessionDestroyed
(org.zkoss.zk.ui.Session sess)
-
Constructor Details
-
Statistic
public Statistic()
-
-
Method Details
-
getStartTime
public long getStartTime()Returns when the server (actually, this monitor) started. -
getTotalSessionCount
public long getTotalSessionCount()Returns the total number of sessions that have been created since the server started. -
getActiveSessionCount
public long getActiveSessionCount()Returns the number of active sessions. -
getAverageSessionCount
public double getAverageSessionCount()Returns the average number of sessions being created in an hour. -
getTotalDesktopCount
public long getTotalDesktopCount()Returns the total number of desktops that have been created since the server started. -
getActiveDesktopCount
public long getActiveDesktopCount()Returns the number of active desktops. -
getAverageDesktopCount
public double getAverageDesktopCount()Returns the average number of desktops being created in an hour. -
getTotalUpdateCount
public long getTotalUpdateCount()Returns the total number of asynchronous updates that have been received since the server started. -
getActiveUpdateCount
public long getActiveUpdateCount()Returns the number of active asynchronous updates. -
getAverageUpdateCount
public double getAverageUpdateCount()Returns the average number of asynchronous updates being created in an hour. -
sessionCreated
public void sessionCreated(org.zkoss.zk.ui.Session sess) - Specified by:
sessionCreated
in interfaceorg.zkoss.zk.ui.util.Monitor
-
sessionDestroyed
public void sessionDestroyed(org.zkoss.zk.ui.Session sess) - Specified by:
sessionDestroyed
in interfaceorg.zkoss.zk.ui.util.Monitor
-
desktopCreated
public void desktopCreated(org.zkoss.zk.ui.Desktop desktop) - Specified by:
desktopCreated
in interfaceorg.zkoss.zk.ui.util.Monitor
-
desktopDestroyed
public void desktopDestroyed(org.zkoss.zk.ui.Desktop desktop) - Specified by:
desktopDestroyed
in interfaceorg.zkoss.zk.ui.util.Monitor
-
beforeUpdate
- Specified by:
beforeUpdate
in interfaceorg.zkoss.zk.ui.util.Monitor
-
afterUpdate
public void afterUpdate(org.zkoss.zk.ui.Desktop desktop) - Specified by:
afterUpdate
in interfaceorg.zkoss.zk.ui.util.Monitor
-