Package org.apache.ignite.metric
Interface MetricRegistry
- 
- All Superinterfaces:
- Iterable<Metric>,- ReadOnlyMetricRegistry
 
 public interface MetricRegistry extends ReadOnlyMetricRegistry Metric registry. Allows to get, add or remove metrics.- See Also:
- IgniteMetrics,- ReadOnlyMetricRegistry
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregister(String name, BooleanSupplier supplier, @Nullable String desc)Registers a boolean metric which value will be queried from the specified supplier.voidregister(String name, DoubleSupplier supplier, @Nullable String desc)Registers a double metric which value will be queried from the specified supplier.voidregister(String name, IntSupplier supplier, @Nullable String desc)Registers an int metric which value will be queried from the specified supplier.voidregister(String name, LongSupplier supplier, @Nullable String desc)Registers a long metric which value will be queried from the specified supplier.<T> voidregister(String name, Supplier<T> supplier, Class<T> type, @Nullable String desc)Registers an object metric which value will be queried from the specified supplier.voidremove(String name)Removes metrics with thename.- 
Methods inherited from interface java.lang.IterableforEach, iterator, spliterator
 - 
Methods inherited from interface org.apache.ignite.spi.metric.ReadOnlyMetricRegistryfindMetric, name
 
- 
 
- 
- 
- 
Method Detail- 
registervoid register(String name, IntSupplier supplier, @Nullable @Nullable String desc) Registers an int metric which value will be queried from the specified supplier.- Parameters:
- name- Metric short name. Doesn't include registry name.
- supplier- Metric value supplier.
- desc- Metric description.
 
 - 
registervoid register(String name, LongSupplier supplier, @Nullable @Nullable String desc) Registers a long metric which value will be queried from the specified supplier.- Parameters:
- name- Metric short name. Doesn't include registry name.
- supplier- Metric value supplier.
- desc- Metric description.
 
 - 
registervoid register(String name, DoubleSupplier supplier, @Nullable @Nullable String desc) Registers a double metric which value will be queried from the specified supplier.- Parameters:
- name- Metric short name. Doesn't include the registry name.
- supplier- Metric value supplier.
- desc- Metric description.
 
 - 
register<T> void register(String name, Supplier<T> supplier, Class<T> type, @Nullable @Nullable String desc) Registers an object metric which value will be queried from the specified supplier.- Type Parameters:
- T- Metric value type.
- Parameters:
- name- Metric short name. Doesn't include registry name.
- supplier- Metric value supplier.
- type- Metric value type.
- desc- Metric description.
 
 - 
registervoid register(String name, BooleanSupplier supplier, @Nullable @Nullable String desc) Registers a boolean metric which value will be queried from the specified supplier.- Parameters:
- name- Metric short name. Doesn't include registry name.
- supplier- Metric value supplier.
- desc- Metric description.
 
 - 
removevoid remove(String name) Removes metrics with thename.- Parameters:
- name- Metric short name. Doesn't include registry name.
 
 
- 
 
-