public class RepNodeImpl extends Object implements ReplicationNode, Serializable
| Constructor and Description |
|---|
RepNodeImpl(NameIdPair nameIdPair,
NodeType type,
boolean quorumAck,
boolean isRemoved,
String hostName,
int port,
CleanerBarrierState barrierState,
int changeVersion,
JEVersion jeVersion) |
RepNodeImpl(NameIdPair nameIdPair,
NodeType type,
boolean quorumAck,
boolean isRemoved,
String hostName,
int port,
int changeVersion,
JEVersion jeVersion) |
RepNodeImpl(NameIdPair nameIdPair,
NodeType type,
String hostName,
int port,
JEVersion jeVersion) |
RepNodeImpl(Protocol.NodeGroupInfo mi) |
RepNodeImpl(ReplicationConfig repConfig) |
RepNodeImpl(String nodeName,
String hostName,
int port,
JEVersion jeVersion) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
equivalent(RepNodeImpl mi)
Checks if the argument represents the same node, ignoring fields that
might legitimately vary over time.
|
CleanerBarrierState |
getBarrierState() |
int |
getChangeVersion() |
String |
getHostName()
Returns the host name associated with the node.
|
String |
getHostPortPair() |
JEVersion |
getJEVersion()
Returns the JE Version most recently noted running on this node, or
null if not known. |
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()
Returns whether the node was acknowledged by a quorum and its entry is
therefore considered durable.
|
boolean |
isRemoved() |
CleanerBarrierState |
setBarrierState(CleanerBarrierState barrierState) |
void |
setChangeVersion(int changeVersion) |
void |
setHostName(String hostName) |
void |
setPort(int port) |
void |
setQuorumAck(boolean quorumAck) |
void |
setRemoved(boolean isRemoved) |
String |
toString() |
void |
updateJEVersion(JEVersion otherJEVersion)
Updates the JE version most recently known running on this node to match
the version specified.
|
public RepNodeImpl(NameIdPair nameIdPair, NodeType type, boolean quorumAck, boolean isRemoved, String hostName, int port, CleanerBarrierState barrierState, int changeVersion, JEVersion jeVersion)
public RepNodeImpl(NameIdPair nameIdPair, NodeType type, boolean quorumAck, boolean isRemoved, String hostName, int port, int changeVersion, JEVersion jeVersion)
public RepNodeImpl(NameIdPair nameIdPair, NodeType type, String hostName, int port, JEVersion jeVersion)
public RepNodeImpl(ReplicationConfig repConfig)
public RepNodeImpl(Protocol.NodeGroupInfo mi)
public InetSocketAddress getSocketAddress()
ReplicationNodegetSocketAddress in interface ReplicationNodepublic boolean isQuorumAck()
public boolean isRemoved()
public void setChangeVersion(int changeVersion)
public int getChangeVersion()
public NameIdPair getNameIdPair()
public String getName()
ReplicationNodegetName in interface ReplicationNodepublic int getNodeId()
public NodeType getType()
ReplicationNodegetType in interface ReplicationNodepublic String getHostName()
ReplicationNodegetHostName in interface ReplicationNodepublic void setHostName(String hostName)
public int getPort()
ReplicationNodegetPort in interface ReplicationNodepublic void setPort(int port)
public String getHostPortPair()
public CleanerBarrierState getBarrierState()
public CleanerBarrierState setBarrierState(CleanerBarrierState barrierState)
public void setQuorumAck(boolean quorumAck)
public void setRemoved(boolean isRemoved)
public JEVersion getJEVersion()
null if not known.public void updateJEVersion(JEVersion otherJEVersion)
otherJEVersion - the version or nullpublic boolean equivalent(RepNodeImpl mi)
mi - the other object in the comparisonCopyright © 2024. All rights reserved.