java.lang.Object
com.zeroc.Ice.MetricsMap.Entry
- Enclosing class:
- com.zeroc.Ice.MetricsMap<T extends Metrics>
Represents a metrics entry within a metrics map.
-
Method Summary
Modifier and TypeMethodDescriptionclone()
void
detach
(long lifetime) Detaches this entry and updates its total lifetime.void
execute
(Observer.MetricsUpdate<T> func) Executes a metrics update function on this entry's metrics object.void
Records a failure for this metrics entry with the specified exception name.com.zeroc.Ice.MetricsMap<?>
getMap()
Gets the metrics map that contains this entry.getMatching
(String mapName, MetricsHelper<S> helper, Class<S> cl) Gets a matching entry from a sub-map with the specified parameters.
-
Method Details
-
failed
Records a failure for this metrics entry with the specified exception name.- Parameters:
exceptionName
- the name of the exception that caused the failure
-
getMatching
public <S extends Metrics> com.zeroc.Ice.MetricsMap<S>.Entry getMatching(String mapName, MetricsHelper<S> helper, Class<S> cl) Gets a matching entry from a sub-map with the specified parameters.- Type Parameters:
S
- the type of metrics- Parameters:
mapName
- the name of the sub-maphelper
- the metrics helpercl
- the metrics class- Returns:
- the matching entry or null if no sub-map is found
-
detach
public void detach(long lifetime) Detaches this entry and updates its total lifetime.- Parameters:
lifetime
- the lifetime to add to the total lifetime
-
execute
Executes a metrics update function on this entry's metrics object.- Parameters:
func
- the update function to execute
-
getMap
public com.zeroc.Ice.MetricsMap<?> getMap()Gets the metrics map that contains this entry.- Returns:
- the parent metrics map
-
clone
-