edu.wpi.cs.dsrg.xmldb.xat.component.statisticsgatherer
Class OperatorUtilization
java.lang.Object
|
+--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
|
+--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
|
+--edu.wpi.cs.dsrg.xmldb.xat.component.statisticsgatherer.StatisticsObject
|
+--edu.wpi.cs.dsrg.xmldb.xat.component.statisticsgatherer.OperatorUtilization
- public class OperatorUtilization
- extends StatisticsObject
Calculates the (true, not weighed) average workload for each operator in the system.
This will allow for the system to determine how fully each operator
is being used by the scheduler
- See Also:
- Serialized Form
Method Summary |
void |
calculateNewValue()
Calculates the new Value of the given property of this operator. |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.component.statisticsgatherer.StatisticsObject |
calculateNewValue,
compareTo,
equals,
getAssociatedQueryObject,
getCategory,
getPropertyName,
getPropertyValue,
setAssociatedQueryObject,
setCategory,
setPropertyName,
setPropertyValue,
toString |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
OperatorUtilization
public OperatorUtilization()
- OperatorUtilization constructor comment.
OperatorUtilization
public OperatorUtilization(java.lang.String name,
XATQueryObject queryObject)
- OperatorUtilization constructor comment.
- Parameters:
name
- java.lang.StringqueryObject
- edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObject
calculateNewValue
public void calculateNewValue()
- Calculates the new Value of the given property of this operator. This
should be overwritten by subclasses who can tailor this method to calculating 1
specific property.
This method should update at least the local propertyValue and possibly the
value with the operator The entire StatisticsGatherer is available for assistance.
The procedure for calculating new values should be as follows:
- Consult the statsTable for any propertyValues that are needed.
- Perform the required calculations using the propertyValues from step 1
- Update the local propertyValue.
- Update the lastTimeUpdated value by using lastTimeUpdated = System.currentTimeMillis();
- Overrides:
- calculateNewValue in class StatisticsObject