public class ZooKeeperModelReporter extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ZooKeeperModelReporter.ZooKeeperCallable<T> |
| Constructor and Description |
|---|
ZooKeeperModelReporter(ZooKeeperMetrics metrics) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkException(Exception ex,
String... tags) |
void |
connectionStateChanged(org.apache.curator.framework.state.ConnectionState newState) |
static ZooKeeperModelReporter |
noop() |
<T> T |
time(String tag,
String name,
ZooKeeperModelReporter.ZooKeeperCallable<T> callable) |
public ZooKeeperModelReporter(ZooKeeperMetrics metrics)
public <T> T time(String tag, String name, ZooKeeperModelReporter.ZooKeeperCallable<T> callable) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionpublic void connectionStateChanged(org.apache.curator.framework.state.ConnectionState newState)
public static ZooKeeperModelReporter noop()
Copyright © 2017. All rights reserved.