Class 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 Detail

      • ZkClientStatusStats

        public ZkClientStatusStats​(io.tehuti.metrics.MetricsRepository metricsRepository,
                                   java.lang.String zkClientName)
    • Method Detail

      • 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​(java.lang.String s)
        Specified by:
        handleNewSession in interface org.apache.helix.zookeeper.zkclient.IZkStateListener
      • handleSessionEstablishmentError

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