public class JmxPublisher extends Object implements MetricsPublisher
Constructor and Description |
---|
JmxPublisher(String instanceName,
String domainPrefix) |
Modifier and Type | Method and Description |
---|---|
String |
name()
Name of the publisher, only used for debugging purposes.
|
void |
publishDouble(String metricName,
double value,
Set<MetricTarget> excludedTargets)
Publish the given metric with a double value.
|
void |
publishLong(String metricName,
long value,
Set<MetricTarget> excludedTargets)
Publish the given metric with a long value.
|
void |
shutdown()
Perform any necessary cleanup before shutdown.
|
void |
whenComplete()
Callback is called after all metrics are published for a given
metric collection round.
|
public String name()
MetricsPublisher
name
in interface MetricsPublisher
public void publishLong(String metricName, long value, Set<MetricTarget> excludedTargets)
MetricsPublisher
publishLong
in interface MetricsPublisher
public void publishDouble(String metricName, double value, Set<MetricTarget> excludedTargets)
MetricsPublisher
publishDouble
in interface MetricsPublisher
public void whenComplete()
MetricsPublisher
whenComplete
in interface MetricsPublisher
public void shutdown()
MetricsPublisher
shutdown
in interface MetricsPublisher
Copyright © 2019 Hazelcast, Inc.. All rights reserved.