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()
MetricsPublishername in interface MetricsPublisherpublic void publishLong(String metricName, long value, Set<MetricTarget> excludedTargets)
MetricsPublisherpublishLong in interface MetricsPublisherpublic void publishDouble(String metricName, double value, Set<MetricTarget> excludedTargets)
MetricsPublisherpublishDouble in interface MetricsPublisherpublic void whenComplete()
MetricsPublisherwhenComplete in interface MetricsPublisherpublic void shutdown()
MetricsPublishershutdown in interface MetricsPublisherCopyright © 2019 Hazelcast, Inc.. All rights reserved.