Package org.adempiere.webui.util
Class Statistic
- java.lang.Object
-
- org.adempiere.webui.util.Statistic
-
- All Implemented Interfaces:
org.zkoss.zk.ui.util.Monitor
public class Statistic extends Object implements org.zkoss.zk.ui.util.Monitor
Adapted fromStatistic
- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description Statistic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
getActiveDesktopCount()
Returns the number of active desktops.long
getActiveSessionCount()
Returns the number of active sessions.long
getActiveUpdateCount()
Returns the number of active asynchronous updates.double
getAverageDesktopCount()
Returns the average number of desktops being created in an hour.double
getAverageSessionCount()
Returns the average number of sessions being created in an hour.double
getAverageUpdateCount()
Returns the average number of asynchronous updates being created in an hour.long
getStartTime()
Returns when the server (actually, this monitor) started.long
getTotalDesktopCount()
Returns the total number of desktops that have been created since the server started.long
getTotalSessionCount()
Returns the total number of sessions that have been created since the server started.long
getTotalUpdateCount()
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)
-
-
-
Method Detail
-
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
public void beforeUpdate(org.zkoss.zk.ui.Desktop desktop, List<org.zkoss.zk.au.AuRequest> requests)
- 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
-
-