public class ZooKeeperMetricsImpl extends Object implements ZooKeeperMetrics
| Constructor and Description |
|---|
ZooKeeperMetricsImpl(String group,
com.codahale.metrics.MetricRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionStateChanged(org.apache.curator.framework.state.ConnectionState newState) |
void |
updateTimer(String name,
long duration,
TimeUnit timeUnit)
Call this to update the appropriate timer with an event duration.
|
void |
zookeeperTransientError()
Call this to report a transient ZooKeeper error.
|
public ZooKeeperMetricsImpl(String group, com.codahale.metrics.MetricRegistry registry)
public void zookeeperTransientError()
ZooKeeperMetricszookeeperTransientError in interface ZooKeeperMetricspublic void updateTimer(String name, long duration, TimeUnit timeUnit)
ZooKeeperMetricsupdateTimer in interface ZooKeeperMetricsname - Durations with the same name get recorded under the same timer.duration - Duration of the event.timeUnit - Time unit of the duration.public void connectionStateChanged(org.apache.curator.framework.state.ConnectionState newState)
connectionStateChanged in interface ZooKeeperMetricsCopyright © 2017. All rights reserved.