Class LocalPeerBean

    • Constructor Detail

      • LocalPeerBean

        public LocalPeerBean​(QuorumPeer peer)
    • Method Detail

      • isHidden

        public boolean isHidden()
        Description copied from interface: ZKMBeanInfo
        If isHidden returns true, the MBean won't be registered with MBean server, and thus won't be available for management tools. Used for grouping MBeans.
        Specified by:
        isHidden in interface ZKMBeanInfo
        Overrides:
        isHidden in class ServerBean
        Returns:
        true if the MBean is hidden.
      • getTickTime

        public int getTickTime()
        Specified by:
        getTickTime in interface LocalPeerMXBean
        Returns:
        the number of milliseconds of each tick
      • getMinSessionTimeout

        public int getMinSessionTimeout()
        Specified by:
        getMinSessionTimeout in interface LocalPeerMXBean
        Returns:
        the minimum number of milliseconds allowed for a session timeout
      • getMaxSessionTimeout

        public int getMaxSessionTimeout()
        Specified by:
        getMaxSessionTimeout in interface LocalPeerMXBean
        Returns:
        the maximum number of milliseconds allowed for a session timeout
      • getInitLimit

        public int getInitLimit()
        Specified by:
        getInitLimit in interface LocalPeerMXBean
        Returns:
        the number of ticks that the initial sync phase can take
      • getSyncLimit

        public int getSyncLimit()
        Specified by:
        getSyncLimit in interface LocalPeerMXBean
        Returns:
        the number of ticks that can pass between sending a request and getting a acknowledgment
      • getTick

        public int getTick()
        Specified by:
        getTick in interface LocalPeerMXBean
        Returns:
        the current tick
      • getState

        public java.lang.String getState()
        Specified by:
        getState in interface LocalPeerMXBean
        Returns:
        the current server state