|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.scheduler.bundle.BundleDataHolder
public class BundleDataHolder
Each instance of this class acts as a container for the performance data related to a node.
| Constructor Summary | |
|---|---|
BundleDataHolder(int performanceCacheSize)
Initialize this data holder with the maximum number of samples in the performance cache. |
|
| Method Summary | |
|---|---|
void |
addSample(BundlePerformanceSample sample)
Add the specified performance sample to the list of samples. |
double |
getMean()
Get the computed mean execution time for the corresponding node. |
long |
getNbSamples()
Get the current number of samples. |
int |
getPerformanceCacheSize()
Get the number of samples required to compute the moving average. |
double |
getPreviousMean()
Get the previously computed mean execution time for the corresponding node. |
void |
setMean(double mean)
Get the computed mean execution time for the corresponding node. |
void |
setPerformanceCacheSize(int performanceCacheSize)
Set the number of samples required to compute the moving average. |
String |
toString()
Get a string representation of this bundler data holder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BundleDataHolder(int performanceCacheSize)
performanceCacheSize - - the number of samples as an int.| Method Detail |
|---|
public void addSample(BundlePerformanceSample sample)
sample - - the performance sample to add.public double getMean()
public void setMean(double mean)
mean - - the mean value as a double.public double getPreviousMean()
public int getPerformanceCacheSize()
public void setPerformanceCacheSize(int performanceCacheSize)
performanceCacheSize - - the number of samples as an int.public String toString()
toString in class ObjectObject.toString()public long getNbSamples()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||