|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.loadvariance.LoadVarianceAlgorithm
This class defines an abstract algorithm that may be used to vary the load over time while a job is running by controlling the number of threads that are active at any given time. Actual subclasses must implement any abstract methods defined in this class.
| Constructor Summary | |
LoadVarianceAlgorithm()
This constructor is used to create a new instance of this load variation algorithm through reflection. |
|
| Method Summary | |
abstract int[][] |
calculateVariance(int duration,
int totalThreads,
int activeThreads)
Retrieves a two-dimensional array that provides information about the increase or decrease in active job threads that should be applied over time. |
abstract void |
initializeVariationAlgorithm(java.lang.String[] arguments)
Initializes this load variation algorithm based on the provided list of arguments. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LoadVarianceAlgorithm()
super().
| Method Detail |
public abstract void initializeVariationAlgorithm(java.lang.String[] arguments)
throws SLAMDException
arguments - The arguments that may be used to customize the behavior
of this load variation algorithm.
SLAMDException - If a problem occurs while trying to initialize
this load variation algorithm.
public abstract int[][] calculateVariance(int duration,
int totalThreads,
int activeThreads)
throws SLAMDException
duration - The length of time in seconds over which this load
variance algorithm should operate.totalThreads - The total number of threads that have been scheduled
for the job with which this algorithm is to be used.activeThreads - The number of threads that are already active at
the time that this method is called.
SLAMDException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||