org.jppf.server
Interface JPPFDriverListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
JPPFDriverStatsManager, JPPFDriverStatsUpdater

public interface JPPFDriverListener
extends EventListener

Instances of this class are used to collect statistics on the JPPF server.

Author:
Laurent Cohen

Method Summary
 void clientConnectionClosed()
          Called to notify that a new client has disconnected from he JPPF server.
 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.
 

Method Detail

newClientConnection

void newClientConnection()
Called to notify that a new client is connected to he JPPF server.


clientConnectionClosed

void clientConnectionClosed()
Called to notify that a new client has disconnected from he JPPF server.


newNodeConnection

void newNodeConnection()
Called to notify that a new node is connected to he JPPF server.


nodeConnectionClosed

void nodeConnectionClosed()
Called to notify that a new node is connected to he JPPF server.


taskInQueue

void taskInQueue(int count)
Called to notify that a task was added to the queue.

Parameters:
count - the number of tasks that have been added to the queue.

taskOutOfQueue

void taskOutOfQueue(int count,
                    long time)
Called to notify that a task was removed from the queue.

Parameters:
count - the number of tasks that have been removed from the queue.
time - the time the task remained in the queue.

taskExecuted

void taskExecuted(int count,
                  long time,
                  long remoteTime,
                  long size)
Called when a task execution has completed.

Parameters:
count - 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 in the node only.
size - the size in bytes of the bundle that was sent to the node.

reset

void reset()
Notification that a reset of this server's statistics has been requested.



Copyright © 2005-2010 JPPF Team.