|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.util.Statistic
public class Statistic
An implementation of Monitor
to accumulate statistic data
in memory.
It has no effect until you specify it in WEB-INF/zk.xml.
Constructor Summary | |
---|---|
Statistic()
|
Method Summary | |
---|---|
void |
afterUpdate(Desktop desktop)
Called when an asynchronous updated has been processed. |
void |
beforeUpdate(Desktop desktop,
java.util.List<AuRequest> requests)
Called when an asynchronous updated is called (and not yet processed). |
void |
desktopCreated(Desktop desktop)
Called when a desktop is created. |
void |
desktopDestroyed(Desktop desktop)
Called when a desktop is being destroyed. |
int |
getActiveDesktopCount()
Returns the number of active desktops. |
int |
getActiveSessionCount()
Returns the number of active sessions. |
int |
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. |
int |
getTotalDesktopCount()
Returns the total number of desktops that have been created since the server started. |
int |
getTotalSessionCount()
Returns the total number of sessions that have been created since the server started. |
int |
getTotalUpdateCount()
Returns the total number of asynchronous updates that have been received since the server started. |
void |
sessionCreated(Session sess)
Called when a new session is created. |
void |
sessionDestroyed(Session sess)
Called when a session is being destroyed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Statistic()
Method Detail |
---|
public long getStartTime()
public int getTotalSessionCount()
public int getActiveSessionCount()
public double getAverageSessionCount()
public int getTotalDesktopCount()
public int getActiveDesktopCount()
public double getAverageDesktopCount()
public int getTotalUpdateCount()
public int getActiveUpdateCount()
public double getAverageUpdateCount()
public void sessionCreated(Session sess)
Monitor
sessionCreated
in interface Monitor
sess
- the session being createdpublic void sessionDestroyed(Session sess)
Monitor
sessionDestroyed
in interface Monitor
sess
- the session being destroyedpublic void desktopCreated(Desktop desktop)
Monitor
desktopCreated
in interface Monitor
desktop
- the desktop being createdpublic void desktopDestroyed(Desktop desktop)
Monitor
desktopDestroyed
in interface Monitor
desktop
- the desktop being destroyedpublic void beforeUpdate(Desktop desktop, java.util.List<AuRequest> requests)
Monitor
beforeUpdate
in interface Monitor
desktop
- the desktop that the update is sent torequests
- a list of AuRequest
that
are being processed.public void afterUpdate(Desktop desktop)
Monitor
afterUpdate
in interface Monitor
desktop
- the desktop that the update is sent to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |