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, wait
shutdown
public ManagementCenterPublisher(@Nonnull LoggingService loggingService, @Nonnull ObjLongConsumer<byte[]> writeFn)
public String name()
MetricsPublisher
name
in interface MetricsPublisher
public void publishLong(String name, long value, Set<MetricTarget> excludedTargets)
MetricsPublisher
publishLong
in interface MetricsPublisher
public void publishDouble(String name, double value, Set<MetricTarget> excludedTargets)
MetricsPublisher
publishDouble
in interface MetricsPublisher
public void whenComplete()
MetricsPublisher
whenComplete
in interface MetricsPublisher
public int getCount()
Copyright © 2019 Hazelcast, Inc.. All rights reserved.