public class RemotePeerBean extends Object implements RemotePeerMXBean, ZKMBeanInfo
Constructor and Description |
---|
RemotePeerBean(QuorumPeer localPeer,
QuorumPeer.QuorumServer peer) |
Modifier and Type | Method and Description |
---|---|
String |
getClientAddress() |
String |
getElectionAddress() |
String |
getLearnerType() |
String |
getName() |
String |
getQuorumAddress() |
boolean |
isHidden()
If isHidden returns true, the MBean won't be registered with MBean server,
and thus won't be available for management tools.
|
boolean |
isLeader() |
void |
setQuorumServer(QuorumPeer.QuorumServer peer) |
public RemotePeerBean(QuorumPeer localPeer, QuorumPeer.QuorumServer peer)
public void setQuorumServer(QuorumPeer.QuorumServer peer)
public String getName()
getName
in interface ZKMBeanInfo
getName
in interface RemotePeerMXBean
public boolean isHidden()
ZKMBeanInfo
isHidden
in interface ZKMBeanInfo
public String getQuorumAddress()
getQuorumAddress
in interface RemotePeerMXBean
public String getElectionAddress()
getElectionAddress
in interface RemotePeerMXBean
public String getClientAddress()
getClientAddress
in interface RemotePeerMXBean
public String getLearnerType()
getLearnerType
in interface RemotePeerMXBean
public boolean isLeader()
isLeader
in interface RemotePeerMXBean
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.