org.jppf.server
Class JPPFStats

java.lang.Object
  extended by org.jppf.server.JPPFStats
All Implemented Interfaces:
Serializable

public class JPPFStats
extends Object
implements Serializable

Instances of this class hold server-wide statitics and settings.

Author:
Laurent Cohen
See Also:
Serialized Form

Constructor Summary
JPPFStats()
           
 
Method Summary
 TimeSnapshot getExecution()
          Get the time statistics for the tasks execution, including network transport and node execution time.
 long getFootprint()
          Get the total footprint of all the data that was sent to the nodes.
 QueueStats getJobQueue()
          Get the statistics for the jobs in queue.
 int getMaxClients()
          Get the maximum number of clients connected to the server.
 int getMaxNodes()
          Get the maximum number of nodes connected to the server.
 int getNbClients()
          Get the current number of clients connected to the server.
 int getNbNodes()
          Get the current number of nodes connected to the server.
 TimeSnapshot getNodeExecution()
          Get the time statistics for execution within the nodes.
 TimeSnapshot getServer()
          Get the time statistics for the server overhead.
 QueueStats getTaskQueue()
          Get the statistics for the tasks in queue.
 int getTotalTasksExecuted()
          Get the total number of tasks executed.
 TimeSnapshot getTransport()
          Get the time statistics for the network transport between nodes and server.
 JPPFStats makeCopy()
          Build a copy of this stats object.
 void reset()
          Reset all fields of this JPPFStats object to their initial values.
 void setExecution(TimeSnapshot execution)
          Set the time statistics for the tasks execution, including network transport and node execution time.
 void setFootprint(long footprint)
          Set the total footprint of all the data that was sent to the nodes.
 void setJobQueue(QueueStats jobQueue)
          Set the statistics for the jobs in queue.
 void setMaxClients(int maxClients)
          Set the maximum number of clients connected to the server.
 void setMaxNodes(int maxNodes)
          Set the maximum number of nodes connected to the server.
 void setNbClients(int nbClients)
          Set the current number of clients connected to the server.
 void setNbNodes(int nbNodes)
          Set the current number of nodes connected to the server.
 void setNodeExecution(TimeSnapshot nodeExecution)
          Set the time statistics for execution within the nodes.
 void setServer(TimeSnapshot server)
          Set the time statistics for the server overhead.
 void setTaskQueue(QueueStats taskQueue)
          Set the statistics for the tasks in queue.
 void setTotalTasksExecuted(int totalTasksExecuted)
          Set the total number of tasks executed.
 void setTransport(TimeSnapshot transport)
          Set the time statistics for the network transport between nodes and server.
 String toString()
          Get a string representation of this stats object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JPPFStats

public JPPFStats()
Method Detail

makeCopy

public JPPFStats makeCopy()
Build a copy of this stats object.

Returns:
a new JPPFStats instance, populated with the current values of the fields in this stats object.

toString

public String toString()
Get a string representation of this stats object.

Overrides:
toString in class Object
Returns:
a string display the various stats values.
See Also:
Object.toString()

setTotalTasksExecuted

public void setTotalTasksExecuted(int totalTasksExecuted)
Set the total number of tasks executed.

Parameters:
totalTasksExecuted - - the number of tasks as an int value.

getTotalTasksExecuted

public int getTotalTasksExecuted()
Get the total number of tasks executed.

Returns:
the number of tasks as an int value.

setExecution

public void setExecution(TimeSnapshot execution)
Set the time statistics for the tasks execution, including network transport and node execution time.

Parameters:
execution - - a TimeSnapshot instance.

getExecution

public TimeSnapshot getExecution()
Get the time statistics for the tasks execution, including network transport and node execution time.

Returns:
a TimeSnapshot instance.

setNodeExecution

public void setNodeExecution(TimeSnapshot nodeExecution)
Set the time statistics for execution within the nodes.

Parameters:
nodeExecution - - a TimeSnapshot instance.

getNodeExecution

public TimeSnapshot getNodeExecution()
Get the time statistics for execution within the nodes.

Returns:
a TimeSnapshot instance.

setTransport

public void setTransport(TimeSnapshot transport)
Set the time statistics for the network transport between nodes and server.

Parameters:
transport - - a TimeSnapshot instance.

getTransport

public TimeSnapshot getTransport()
Get the time statistics for the network transport between nodes and server.

Returns:
a TimeSnapshot instance.

setServer

public void setServer(TimeSnapshot server)
Set the time statistics for the server overhead.

Parameters:
server - - a TimeSnapshot instance.

getServer

public TimeSnapshot getServer()
Get the time statistics for the server overhead.

Returns:
a TimeSnapshot instance.

setFootprint

public void setFootprint(long footprint)
Set the total footprint of all the data that was sent to the nodes.

Parameters:
footprint - - the footprint as a long value.

getFootprint

public long getFootprint()
Get the total footprint of all the data that was sent to the nodes.

Returns:
the footprint as a long value.

setNbNodes

public void setNbNodes(int nbNodes)
Set the current number of nodes connected to the server.

Parameters:
nbNodes - - the current number of nodes as an int value.

getNbNodes

public int getNbNodes()
Get the current number of nodes connected to the server.

Returns:
the current number of nodes as an int value.

setMaxNodes

public void setMaxNodes(int maxNodes)
Set the maximum number of nodes connected to the server.

Parameters:
maxNodes - - the maximum number of nodes as an int value.

getMaxNodes

public int getMaxNodes()
Get the maximum number of nodes connected to the server.

Returns:
the maximum number of nodes as an int value.

setNbClients

public void setNbClients(int nbClients)
Set the current number of clients connected to the server.

Parameters:
nbClients - - the current number of clients as an int value.

getNbClients

public int getNbClients()
Get the current number of clients connected to the server.

Returns:
the current number of clients as an int value.

setMaxClients

public void setMaxClients(int maxClients)
Set the maximum number of clients connected to the server.

Parameters:
maxClients - - the maximum number of clients as an int value.

getMaxClients

public int getMaxClients()
Get the maximum number of clients connected to the server.

Returns:
the maximum number of clients as an int value.

reset

public void reset()
Reset all fields of this JPPFStats object to their initial values.


getTaskQueue

public QueueStats getTaskQueue()
Get the statistics for the tasks in queue.

Returns:
a QueueStats instance.

setTaskQueue

public void setTaskQueue(QueueStats taskQueue)
Set the statistics for the tasks in queue.

Parameters:
taskQueue - a QueueStats instance.

getJobQueue

public QueueStats getJobQueue()
Get the statistics for the jobs in queue.

Returns:
a QueueStats instance.

setJobQueue

public void setJobQueue(QueueStats jobQueue)
Set the statistics for the jobs in queue.

Parameters:
jobQueue - a QueueStats instance.


Copyright © 2005-2010 JPPF Team.