...
The APIs are supposed to be experimental.
...
Code Block | ||
---|---|---|
| ||
package org.apache.ignite.metric; public interface IgniteMetrics extends IgniteIterable<ReadOnlyMetricRegistry> { IgniteMetrics metrics(); } |
package org.apache.ignite.metric;
...
MetricRegistry customRegistry(String registryName); |
...
@Nullable ReadOnlyMetricRegistry findRegistry(String registryName); |
...
void removeCustomRegistry(String registryName); } |
Code Block |
---|
...
|
...
| |
package org.apache.ignite.metric; |
...
public interface MetricRegistry extends ReadOnlyMetricRegistry { |
...
IntMetric register(String name, IntSupplier supplier, @Nullable String desc); |
...
LongMetric register(String name, LongSupplier supplier, @Nullable String desc); |
...
DoubleMetric register(String name, DoubleSupplier supplier, @Nullable String desc); |
...
...
<T> ObjectMetric<T> register(String name, |
...
Supplier<T> supplier, |
...
Class<T> type, @Nullable String desc); |
...
BooleanMetric register(String name, BooleanSupplier supplier, @Nullable String desc); |
...
IntValueMetric intMetric(String name, @Nullable String desc); |
...
LongValueMetric longMetric(String name, @Nullable String desc); |
...
LongSumMetric longAdderMetric(String name, @Nullable String desc); |
...
DoubleValueMetric doubleMetric(String name, @Nullable String desc); |
...
...
<T> ObjectValueMetric<T> objectMetric(String name, |
...
Class<T> type, @Nullable String desc); |
...
void remove(String name); |
...
void reset(); |
...
} |
...