Package com.linkedin.venice.stats
Class ZkClientStatusStats
java.lang.Object
com.linkedin.venice.stats.AbstractVeniceStats
com.linkedin.venice.stats.ZkClientStatusStats
- All Implemented Interfaces:
org.apache.helix.zookeeper.zkclient.IZkStateListener
public class ZkClientStatusStats
extends AbstractVeniceStats
implements org.apache.helix.zookeeper.zkclient.IZkStateListener
The stats keep track of ZK Client status changes. It maps statuses with integers.
Common status:
Watcher.Event.KeeperState.Unknown
code: -1 (used as init value)
Watcher.Event.KeeperState.Disconnected
code: 0
Watcher.Event.KeeperState.SyncConnected
code: 3-
Field Summary
Fields inherited from class com.linkedin.venice.stats.AbstractVeniceStats
DELIMITER
-
Constructor Summary
ConstructorDescriptionZkClientStatusStats
(io.tehuti.metrics.MetricsRepository metricsRepository, String zkClientName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
handleStateChanged
(org.apache.zookeeper.Watcher.Event.KeeperState state) Methods inherited from class com.linkedin.venice.stats.AbstractVeniceStats
avgAndMax, avgAndTotal, getMetricFullName, getMetricsRepository, getName, getSensorFullName, getSensorFullName, isTotalStats, minAndMax, registerOnlyTotalRate, registerOnlyTotalSensor, registerPerStoreAndTotalSensor, registerSensor, registerSensor, registerSensor, registerSensor, registerSensorAttributeGauge, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorWithAggregate, registerSensorWithAggregate, unregisterAllSensors
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.helix.zookeeper.zkclient.IZkStateListener
handleStateChanged
-
Constructor Details
-
ZkClientStatusStats
public ZkClientStatusStats(io.tehuti.metrics.MetricsRepository metricsRepository, String zkClientName)
-
-
Method Details
-
handleStateChanged
public void handleStateChanged(org.apache.zookeeper.Watcher.Event.KeeperState state) - Specified by:
handleStateChanged
in interfaceorg.apache.helix.zookeeper.zkclient.IZkStateListener
-
handleNewSession
- Specified by:
handleNewSession
in interfaceorg.apache.helix.zookeeper.zkclient.IZkStateListener
-
handleSessionEstablishmentError
- Specified by:
handleSessionEstablishmentError
in interfaceorg.apache.helix.zookeeper.zkclient.IZkStateListener
-