Package org.zkoss.zk.ui.util
Class Statistic
- java.lang.Object
-
- org.zkoss.zk.ui.util.Statistic
-
-
Constructor Summary
Constructors Constructor Description Statistic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterUpdate(Desktop desktop)Called when an asynchronous updated has been processed.voidbeforeUpdate(Desktop desktop, java.util.List<AuRequest> requests)Called when an asynchronous updated is called (and not yet processed).voiddesktopCreated(Desktop desktop)Called when a desktop is created.voiddesktopDestroyed(Desktop desktop)Called when a desktop is being destroyed.intgetActiveDesktopCount()Returns the number of active desktops.intgetActiveSessionCount()Returns the number of active sessions.intgetActiveUpdateCount()Returns the number of active asynchronous updates.doublegetAverageDesktopCount()Returns the average number of desktops being created in an hour.doublegetAverageSessionCount()Returns the average number of sessions being created in an hour.doublegetAverageUpdateCount()Returns the average number of asynchronous updates being created in an hour.longgetStartTime()Returns when the server (actually, this monitor) started.intgetTotalDesktopCount()Returns the total number of desktops that have been created since the server started.intgetTotalSessionCount()Returns the total number of sessions that have been created since the server started.intgetTotalUpdateCount()Returns the total number of asynchronous updates that have been received since the server started.voidsessionCreated(Session sess)Called when a new session is created.voidsessionDestroyed(Session sess)Called when a session is being destroyed.
-
-
-
Method Detail
-
getStartTime
public long getStartTime()
Returns when the server (actually, this monitor) started.
-
getTotalSessionCount
public int getTotalSessionCount()
Returns the total number of sessions that have been created since the server started.
-
getActiveSessionCount
public int getActiveSessionCount()
Returns the number of active sessions.
-
getAverageSessionCount
public double getAverageSessionCount()
Returns the average number of sessions being created in an hour.
-
getTotalDesktopCount
public int getTotalDesktopCount()
Returns the total number of desktops that have been created since the server started.
-
getActiveDesktopCount
public int getActiveDesktopCount()
Returns the number of active desktops.
-
getAverageDesktopCount
public double getAverageDesktopCount()
Returns the average number of desktops being created in an hour.
-
getTotalUpdateCount
public int getTotalUpdateCount()
Returns the total number of asynchronous updates that have been received since the server started.
-
getActiveUpdateCount
public int 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(Session sess)
Description copied from interface:MonitorCalled when a new session is created.- Specified by:
sessionCreatedin interfaceMonitor- Parameters:
sess- the session being created
-
sessionDestroyed
public void sessionDestroyed(Session sess)
Description copied from interface:MonitorCalled when a session is being destroyed.- Specified by:
sessionDestroyedin interfaceMonitor- Parameters:
sess- the session being destroyed
-
desktopCreated
public void desktopCreated(Desktop desktop)
Description copied from interface:MonitorCalled when a desktop is created.- Specified by:
desktopCreatedin interfaceMonitor- Parameters:
desktop- the desktop being created
-
desktopDestroyed
public void desktopDestroyed(Desktop desktop)
Description copied from interface:MonitorCalled when a desktop is being destroyed.- Specified by:
desktopDestroyedin interfaceMonitor- Parameters:
desktop- the desktop being destroyed
-
beforeUpdate
public void beforeUpdate(Desktop desktop, java.util.List<AuRequest> requests)
Description copied from interface:MonitorCalled when an asynchronous updated is called (and not yet processed).- Specified by:
beforeUpdatein interfaceMonitor- Parameters:
desktop- the desktop that the update is sent torequests- a list ofAuRequestthat are being processed.
-
afterUpdate
public void afterUpdate(Desktop desktop)
Description copied from interface:MonitorCalled when an asynchronous updated has been processed.- Specified by:
afterUpdatein interfaceMonitor- Parameters:
desktop- the desktop that the update is sent to
-
-