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 |
|---|---|
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() |
boolean |
isMember(RemotingConnection connection)
Returns true if this TopologyMember is the target of this remoting connection
|
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) |
String |
toString() |
String |
toURI() |
public TopologyMemberImpl(String nodeId, String backupGroupName, String scaleDownGroupName, TransportConfiguration a, TransportConfiguration b)
public TransportConfiguration getLive()
getLive in interface TopologyMemberpublic TransportConfiguration getBackup()
TopologyMembergetBackup in interface TopologyMemberTransportConfiguration 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()
TopologyMembergetNodeId in interface TopologyMemberpublic long getUniqueEventID()
getUniqueEventID in interface TopologyMemberpublic String getBackupGroupName()
TopologyMemberbackup-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 TopologyMemberbackup-group-namepublic String getScaleDownGroupName()
TopologyMemberscale-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 TopologyMemberscale-down-group-namepublic void setUniqueEventID(long uniqueEventID)
uniqueEventID - the uniqueEventID to setpublic Pair<TransportConfiguration,TransportConfiguration> getConnector()
public boolean isMember(RemotingConnection connection)
TopologyMemberisMember in interface TopologyMemberpublic boolean isMember(TransportConfiguration configuration)
TopologyMemberisMember in interface TopologyMemberpublic String toURI()
toURI in interface TopologyMemberCopyright © 2018 JBoss by Red Hat. All rights reserved.