org.cougaar.core.qos.metrics.MetricsService
-
Metric getValue(String path,
VariableEvaluator evaluator,
Properties qos_tags)
- The most general query function in the Metric Service. The
path specifies the metric to be returned. For a
description of the syntax, see the Path
section. The evaluator is used to handle
shell-variable-style references in generic paths. For more
details on this, see VariableEvaluator. The
qos_tags are for future use.
-
Metric getValue(String path,
Properties qos_tags)
- As above but with no variable replacement.
-
Metric getValue(String path,
VariableEvaluator evaluator)
- As above but with no QoS tags.
-
Metric getValue(String path)
- As above but with neither variable replacement
nor QoS tags.
-
Object subscribeToValue(String path,
Observer observer,
VariableEvaluator evaluator,
MetricNotificationQualifier qualifier)
-
The most general subscription function in the Metric Service. The
path specifies the metric to subscribe to. For a
description of the syntax, see the Path
section. The observer is the entity which will
receive a callback when the specified metric changes. The
evaluator is used to handle shell-variable-style
references in generic paths. For more details on this, see VariableEvaluator. The
qualifierw is used to restrict the frequency of
callbacks, for example by specifying the smallest change that
should trigger one. For more details, see MetricNotificationQualifier. The
value returned by this method is a subscription handle and
should only be used for a subsquent call to
unsubscribeToValue.
-
Object subscribeToValue(String path,
Observer observer,
VariableEvaluator evaluator)
- As above but without callback qualification.
-
Object subscribeToValue(String path,
Observer observer,
MetricNotificationQualifier qualifier)
- As above but without variable replacement.
-
Object subscribeToValue(String path,
Observer observer)
- As above but with neither variable replacement
nor callback qualification.
-
void unsubscribeToValue(Object handle)
- Terminates a previously established subscription. The handle
is as returned by one of the
subscribeToValue calls.