|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Monitorable
Interface which is to be implemented by any classes which are capable of being monitored.
Method Summary | |
---|---|
void |
addMetricListener(MetricListener metricListener,
Metric metric)
This method adds the passed instance of a MetricListener to the
list of MetricListener s which are notified of MetricEvents by an
instance of this class. |
MetricEvent |
getMeasurement(Metric metric)
Returns a MetricEvent that represents the measured Metric . |
MetricDefinition |
getMetricDefinitionByName(String name)
Gets the MetricDefinition using its name . |
List<MetricDefinition> |
getMetricDefinitions()
This method returns a List of MetricDefinition
instances. |
void |
removeMetricListener(MetricListener metricListener,
Metric metric)
Removes the passed MetricListener from the List
of MetricListener s which are notified of MetricEvents
corresponding to the passed Metric instance. |
Method Detail |
---|
void addMetricListener(MetricListener metricListener, Metric metric) throws GATInvocationException
MetricListener
to the
list of MetricListener
s which are notified of MetricEvents by an
instance of this class. The passed MetricListener
is only
notified of MetricEvents which correspond to Metric
instance
passed to this method.
metricListener
- The MetricListener
to notify of MetricEventsmetric
- The Metric
corresponding to the MetricEvents for
which the passed MetricListener
will be notified
GATInvocationException
- The MetricListener
cannot be addedvoid removeMetricListener(MetricListener metricListener, Metric metric) throws GATInvocationException
MetricListener
from the List
of MetricListener
s which are notified of MetricEvents
corresponding to the passed Metric
instance.
metricListener
- The MetricListener
to notify of MetricEventsmetric
- The Metric
corresponding to the MetricEvents for
which the passed MetricListener
has been notified
GATInvocationException
- The MetricListener
cannot be removedList<MetricDefinition> getMetricDefinitions() throws GATInvocationException
List
of MetricDefinition
instances. Each instance in this List
is a
MetricDefinition
which can be monitored on this instance.
List
of MetricDefinition
instances.
Each instance in this List
is a Metric
which can be monitored on this instance
GATInvocationException
- An error occurred while getting the list of metricsMetricDefinition getMetricDefinitionByName(String name) throws GATInvocationException
MetricDefinition
using its name
.
name
- The MetricDefinition name
MetricDefinition
with the given name
GATInvocationException
- An error occurred while getting the list of
Metric
s or no Metric
with this name
existsMetricEvent getMeasurement(Metric metric) throws GATInvocationException
MetricEvent
that represents the measured Metric
.
MetricEvent
that represents the measured Metric
.
GATInvocationException
- the measurement failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |