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
  • 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 interface org.apache.helix.zookeeper.zkclient.IZkStateListener
    • handleNewSession

      public void handleNewSession(String s)
      Specified by:
      handleNewSession in interface org.apache.helix.zookeeper.zkclient.IZkStateListener
    • handleSessionEstablishmentError

      public void handleSessionEstablishmentError(Throwable error)
      Specified by:
      handleSessionEstablishmentError in interface org.apache.helix.zookeeper.zkclient.IZkStateListener