public class ManagementCenterPublisher extends Object implements MetricsPublisher
[metric=<oldName>].| Constructor and Description |
|---|
ManagementCenterPublisher(LoggingService loggingService,
ObjLongConsumer<byte[]> writeFn) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCount() |
String |
name()
Name of the publisher, only used for debugging purposes.
|
void |
publishDouble(String name,
double value,
Set<MetricTarget> excludedTargets)
Publish the given metric with a double value.
|
void |
publishLong(String name,
long value,
Set<MetricTarget> excludedTargets)
Publish the given metric with a long value.
|
void |
whenComplete()
Callback is called after all metrics are published for a given
metric collection round.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshutdownpublic ManagementCenterPublisher(@Nonnull LoggingService loggingService, @Nonnull ObjLongConsumer<byte[]> writeFn)
public String name()
MetricsPublishername in interface MetricsPublisherpublic void publishLong(String name, long value, Set<MetricTarget> excludedTargets)
MetricsPublisherpublishLong in interface MetricsPublisherpublic void publishDouble(String name, double value, Set<MetricTarget> excludedTargets)
MetricsPublisherpublishDouble in interface MetricsPublisherpublic void whenComplete()
MetricsPublisherwhenComplete in interface MetricsPublisherpublic int getCount()
Copyright © 2019 Hazelcast, Inc.. All rights reserved.