|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.rep.impl.RepNodeImpl
public class RepNodeImpl
Describes a node that is a member of the replication group.
Field Summary | |
---|---|
(package private) static int |
NULL_CHANGE
|
Constructor Summary | |
---|---|
RepNodeImpl(NameIdPair nameIdPair,
NodeType type,
boolean quorumAck,
boolean isRemoved,
String hostName,
int port,
int changeVersion)
|
|
RepNodeImpl(NameIdPair nameIdPair,
NodeType type,
boolean quorumAck,
boolean isRemoved,
String hostName,
int port,
RepGroupImpl.BarrierState barrierState,
int changeVersion)
|
|
RepNodeImpl(NameIdPair nameIdPair,
NodeType type,
String hostName,
int port)
|
|
RepNodeImpl(Protocol.NodeGroupInfo mi)
|
|
RepNodeImpl(ReplicationConfig repConfig)
|
|
RepNodeImpl(String nodeName,
String hostName,
int port)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
boolean |
equivalent(RepNodeImpl mi)
Like the equals method. |
RepGroupImpl.BarrierState |
getBarrierState()
|
int |
getChangeVersion()
|
String |
getHostName()
Returns the host name associated with the node. |
String |
getHostPortPair()
|
String |
getName()
Returns the unique name associated with the node. |
NameIdPair |
getNameIdPair()
|
int |
getNodeId()
|
int |
getPort()
Returns the port number associated with the node. |
InetSocketAddress |
getSocketAddress()
The socket address used by other nodes in the replication group to communicate with this node. |
NodeType |
getType()
Returns the type associated with the node. |
int |
hashCode()
|
boolean |
isQuorumAck()
|
boolean |
isRemoved()
|
RepGroupImpl.BarrierState |
setBarrierState(RepGroupImpl.BarrierState barrierState)
|
void |
setChangeVersion(int changeVersion)
|
void |
setQuorumAck(boolean quorumAck)
|
void |
setRemoved(boolean isRemoved)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final int NULL_CHANGE
Constructor Detail |
---|
public RepNodeImpl(NameIdPair nameIdPair, NodeType type, boolean quorumAck, boolean isRemoved, String hostName, int port, RepGroupImpl.BarrierState barrierState, int changeVersion)
public RepNodeImpl(NameIdPair nameIdPair, NodeType type, boolean quorumAck, boolean isRemoved, String hostName, int port, int changeVersion)
public RepNodeImpl(NameIdPair nameIdPair, NodeType type, String hostName, int port)
public RepNodeImpl(ReplicationConfig repConfig)
public RepNodeImpl(String nodeName, String hostName, int port)
public RepNodeImpl(Protocol.NodeGroupInfo mi)
Method Detail |
---|
public InetSocketAddress getSocketAddress()
ReplicationNode
getSocketAddress
in interface ReplicationNode
public boolean isQuorumAck()
public boolean isRemoved()
public void setChangeVersion(int changeVersion)
public int getChangeVersion()
public NameIdPair getNameIdPair()
public String getName()
ReplicationNode
getName
in interface ReplicationNode
public int getNodeId()
public NodeType getType()
ReplicationNode
getType
in interface ReplicationNode
ELECTABLE
or MONITOR
public String getHostName()
ReplicationNode
getHostName
in interface ReplicationNode
public int getPort()
ReplicationNode
getPort
in interface ReplicationNode
public String getHostPortPair()
public RepGroupImpl.BarrierState getBarrierState()
public RepGroupImpl.BarrierState setBarrierState(RepGroupImpl.BarrierState barrierState)
public void setQuorumAck(boolean quorumAck)
public void setRemoved(boolean isRemoved)
public String toString()
toString
in class Object
public boolean equivalent(RepNodeImpl mi)
mi
- the other object in the comparison
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |