Class RemotePeerBean

  • All Implemented Interfaces:
    ZKMBeanInfo, RemotePeerMXBean

    public class RemotePeerBean
    extends java.lang.Object
    implements RemotePeerMXBean, ZKMBeanInfo
    A remote peer bean only provides limited information about the remote peer, and the peer cannot be managed remotely.
    • 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
        Returns:
        true if the MBean is hidden.
      • getQuorumAddress

        public java.lang.String getQuorumAddress()
        Specified by:
        getQuorumAddress in interface RemotePeerMXBean
        Returns:
        IP address of the quorum peer
      • isLeader

        public boolean isLeader()
        Specified by:
        isLeader in interface RemotePeerMXBean
        Returns:
        true if the peer is the current leader