|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.JPPFDriverStatsUpdater
public final class JPPFDriverStatsUpdater
Instances of this class are used to collect statistics on the JPPF server.
| Constructor Summary | |
|---|---|
JPPFDriverStatsUpdater()
|
|
| Method Summary | |
|---|---|
void |
clientConnectionClosed()
Called to notify that a new client has disconnected from he JPPF server. |
int |
getNbNodes()
Get the current number of nodes connected to the server. |
JPPFStats |
getStats()
Get the stats maintained by this updater. |
void |
newClientConnection()
Called to notify that a new client is connected to he JPPF server. |
void |
newNodeConnection()
Called to notify that a new node is connected to he JPPF server. |
void |
nodeConnectionClosed()
Called to notify that a new node is connected to he JPPF server. |
void |
reset()
Notification that a reset of this server's statistics has been requested. |
void |
taskExecuted(int count,
long time,
long remoteTime,
long size)
Called when a task execution has completed. |
void |
taskInQueue(int count)
Called to notify that a task was added to the queue. |
void |
taskOutOfQueue(int count,
long time)
Called to notify that a task was removed from the queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFDriverStatsUpdater()
| Method Detail |
|---|
public void newClientConnection()
newClientConnection in interface JPPFDriverListenerpublic void clientConnectionClosed()
clientConnectionClosed in interface JPPFDriverListenerpublic void newNodeConnection()
newNodeConnection in interface JPPFDriverListenerpublic void nodeConnectionClosed()
nodeConnectionClosed in interface JPPFDriverListenerpublic void taskInQueue(int count)
taskInQueue in interface JPPFDriverListenercount - the number of tasks that have been added to the queue.
public void taskOutOfQueue(int count,
long time)
taskOutOfQueue in interface JPPFDriverListenercount - the number of tasks that have been removed from the queue.time - the time the task remained in the queue.
public void taskExecuted(int count,
long time,
long remoteTime,
long size)
taskExecuted in interface JPPFDriverListenercount - the number of tasks that have been executed.time - the time it took to execute the task, including transport to and from the node.remoteTime - the time it took to execute the tasks in the node only.size - the size in bytes of the bundle that was sent to the node.public JPPFStats getStats()
JPPFStats instance.public int getNbNodes()
public void reset()
reset in interface JPPFDriverListener
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||