Class RemotePeerBean
java.lang.Object
org.apache.zookeeper.server.quorum.RemotePeerBean
- All Implemented Interfaces:
ZKMBeanInfo
,RemotePeerMXBean
A remote peer bean only provides limited information about the remote peer,
and the peer cannot be managed remotely.
-
Constructor Details
-
RemotePeerBean
-
-
Method Details
-
setQuorumServer
-
getName
- Specified by:
getName
in interfaceRemotePeerMXBean
- Specified by:
getName
in interfaceZKMBeanInfo
- Returns:
- name of the peer
-
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 interfaceZKMBeanInfo
- Returns:
- true if the MBean is hidden.
-
getQuorumAddress
- Specified by:
getQuorumAddress
in interfaceRemotePeerMXBean
- Returns:
- IP address of the quorum peer
-
getElectionAddress
- Specified by:
getElectionAddress
in interfaceRemotePeerMXBean
- Returns:
- the election address
-
getClientAddress
- Specified by:
getClientAddress
in interfaceRemotePeerMXBean
- Returns:
- the client address
-
getLearnerType
- Specified by:
getLearnerType
in interfaceRemotePeerMXBean
- Returns:
- the learner type
-
isLeader
public boolean isLeader()- Specified by:
isLeader
in interfaceRemotePeerMXBean
- Returns:
- true if the peer is the current leader
-