public interface MeasureManager
MeasureManager aims at managing a set of Measures.
Typically, a Measurable entity would create a single
MeasureManager to store all the Measures it would like to
support, each of them being identified by a key.Measure can be whether a PullMeasure or a
PushMeasure, the two methods getPullMeasure(Object) and
getPushMeasure(Object) are provided. It could be that a single
Measure is also available through both (via a single instance
implementing both interfaces or two different instances implementing each
interface), leading to have both methods returning a non-null
value for the same key.| Modifier and Type | Method and Description |
|---|---|
Collection<Object> |
getMeasureKeys()
This method should return all the keys identifying the
Measures
managed by this MeasureManager. |
<T> PullMeasure<T> |
getPullMeasure(Object key) |
<T> PushMeasure<T> |
getPushMeasure(Object key) |
Collection<Object> getMeasureKeys()
Measures
managed by this MeasureManager. More precisely, if
getPullMeasure(Object) or getPushMeasure(Object)
returns a non-null value for a given key, then this key
should be returned by getMeasureKeys(). However, it is not
because a key is returned by getMeasureKeys() that it
necessarily has a PullMeasure or a PushMeasure returned
by this MeasureManager.Measures<T> PullMeasure<T> getPullMeasure(Object key)
key - the key of the MeasurePullMeasure identified by this key<T> PushMeasure<T> getPushMeasure(Object key)
key - the key of the MeasurePushMeasure identified by this keyCopyright © 2018. All rights reserved.