public class TopologyMsg extends ReplicationMsg
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
TopologyMsg(Collection<DSInfo> dsInfos,
List<RSInfo> rsInfos)
Creates a new message of the currently connected servers.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(short version)
Serializes the PDU using the provided replication protocol version.
|
Map<Integer,DSInfo> |
getReplicaInfos()
Get the DS infos.
|
List<RSInfo> |
getRsInfos()
Get the RS infos.
|
String |
toString() |
generateMsg
public TopologyMsg(Collection<DSInfo> dsInfos, List<RSInfo> rsInfos)
dsInfos
- The collection of currently connected DS servers ID.rsInfos
- The list of currently connected RS servers ID.public byte[] getBytes(short version)
getBytes
in class ReplicationMsg
version
- The protocol version to use for serialization. The version should
normally be older than the current one.null
if the message isn't supported
in that protocol version.public Map<Integer,DSInfo> getReplicaInfos()
public List<RSInfo> getRsInfos()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.