public final class TopologyMemberImpl extends Object implements TopologyMember
Constructor and Description |
---|
TopologyMemberImpl(String nodeId,
String backupGroupName,
String scaleDownGroupName,
TransportConfiguration a,
TransportConfiguration b) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
TransportConfiguration |
getBackup()
Returns the TransportConfiguration relative to the backup server if any.
|
String |
getBackupGroupName()
Returns the
backup-group-name of the live server and backup servers associated with
Topology entry. |
Pair<TransportConfiguration,TransportConfiguration> |
getConnector() |
TransportConfiguration |
getLive() |
String |
getNodeId()
Returns the nodeId of the server.
|
String |
getScaleDownGroupName()
Returns the
scale-down-group-name of the live server with this Topology entry. |
long |
getUniqueEventID() |
int |
hashCode() |
boolean |
isMember(RemotingConnection connection)
We only need to check if the connection point to the same node,
don't need to compare the whole params map.
|
boolean |
isMember(TransportConfiguration configuration)
Returns true if this configuration is the target of this remoting connection
|
void |
setBackup(TransportConfiguration param) |
void |
setLive(TransportConfiguration param) |
void |
setUniqueEventID(long uniqueEventID) |
URI |
toBackupURI() |
String |
toString() |
String |
toURI() |
public TopologyMemberImpl(String nodeId, String backupGroupName, String scaleDownGroupName, TransportConfiguration a, TransportConfiguration b)
public TransportConfiguration getLive()
getLive
in interface TopologyMember
public TransportConfiguration getBackup()
TopologyMember
getBackup
in interface TopologyMember
TransportConfiguration
for the backup, or null} if the live server has no
backup server.public void setBackup(TransportConfiguration param)
public void setLive(TransportConfiguration param)
public String getNodeId()
TopologyMember
getNodeId
in interface TopologyMember
public long getUniqueEventID()
getUniqueEventID
in interface TopologyMember
public String getBackupGroupName()
TopologyMember
backup-group-name
of the live server and backup servers associated with
Topology entry.
This is a server configuration value. A (remote) backup will only work with live servers that
have a matching backup-group-name
.
This value does not apply to "shared-storage" backup and live pairs.
getBackupGroupName
in interface TopologyMember
backup-group-name
public String getScaleDownGroupName()
TopologyMember
scale-down-group-name
of the live server with this Topology entry.
This is a server configuration value. a live server will only send its messages to another live server
with matching scale-down-group-name
.
getScaleDownGroupName
in interface TopologyMember
scale-down-group-name
public void setUniqueEventID(long uniqueEventID)
uniqueEventID
- the uniqueEventID to setpublic Pair<TransportConfiguration,TransportConfiguration> getConnector()
public boolean isMember(RemotingConnection connection)
isMember
in interface TopologyMember
connection
- The connection to the target nodepublic boolean isMember(TransportConfiguration configuration)
TopologyMember
isMember
in interface TopologyMember
public String toURI()
toURI
in interface TopologyMember
public URI toBackupURI()
Copyright © 2019 JBoss by Red Hat. All rights reserved.