org.objectweb.proactive.calcium.statistics
Class StatsGlobalImpl

java.lang.Object
  extended by org.objectweb.proactive.calcium.statistics.StatsGlobalImpl
All Implemented Interfaces:
java.io.Serializable, StatsGlobal

public class StatsGlobalImpl
extends java.lang.Object
implements java.io.Serializable, StatsGlobal

This class contains a snapshot of the current Skernel statistics. Among others, the following information is kept: Number of solved root tasks, Number of solved tasks, Length of the ready queue, Wallclock time, Computation time

Author:
mleyton
See Also:
Serialized Form

Constructor Summary
StatsGlobalImpl()
           
 
Method Summary
 long getAverageComputationTime()
           
 long getAverageProcessingTime()
           
 long getAverageReadyTime()
           
 long getAverageResultsTime()
           
 long getAverageWaitingTime()
           
 long getAverageWallClockTime()
           
 int getProccessingQueueLength()
           
 int getReadyQueueLength()
           
 int getResultsQueueLength()
           
 int getSolvedNumberOfRootTasks()
           
 int getSolvedNumberOfTasks()
           
 int getWaitingQueueLength()
           
 void increaseSolvedTasks(Task<?> task)
           
 void setQueueLengths(int readyQ, int processingQ, int waitingQ, int resultsQ)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatsGlobalImpl

public StatsGlobalImpl()
Method Detail

setQueueLengths

public void setQueueLengths(int readyQ,
                            int processingQ,
                            int waitingQ,
                            int resultsQ)

increaseSolvedTasks

public void increaseSolvedTasks(Task<?> task)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getReadyQueueLength

public int getReadyQueueLength()
Specified by:
getReadyQueueLength in interface StatsGlobal

getSolvedNumberOfTasks

public int getSolvedNumberOfTasks()
Specified by:
getSolvedNumberOfTasks in interface StatsGlobal

getSolvedNumberOfRootTasks

public int getSolvedNumberOfRootTasks()
Specified by:
getSolvedNumberOfRootTasks in interface StatsGlobal

getProccessingQueueLength

public int getProccessingQueueLength()
Specified by:
getProccessingQueueLength in interface StatsGlobal

getWaitingQueueLength

public int getWaitingQueueLength()
Specified by:
getWaitingQueueLength in interface StatsGlobal

getResultsQueueLength

public int getResultsQueueLength()
Specified by:
getResultsQueueLength in interface StatsGlobal

getAverageWallClockTime

public long getAverageWallClockTime()
Specified by:
getAverageWallClockTime in interface StatsGlobal

getAverageProcessingTime

public long getAverageProcessingTime()
Specified by:
getAverageProcessingTime in interface StatsGlobal

getAverageWaitingTime

public long getAverageWaitingTime()
Specified by:
getAverageWaitingTime in interface StatsGlobal

getAverageResultsTime

public long getAverageResultsTime()
Specified by:
getAverageResultsTime in interface StatsGlobal

getAverageReadyTime

public long getAverageReadyTime()
Specified by:
getAverageReadyTime in interface StatsGlobal

getAverageComputationTime

public long getAverageComputationTime()
Specified by:
getAverageComputationTime in interface StatsGlobal


Copyright 2001-2007 INRIA All Rights Reserved.