Class StartSessionMsg
- java.lang.Object
-
- org.opends.server.replication.protocol.ReplicationMsg
-
- org.opends.server.replication.protocol.StartSessionMsg
-
public final class StartSessionMsg extends ReplicationMsg
This message is used by DS to confirm a RS he wants to connect to him (open a session).Handshake sequence between DS and RS is like this:
DS --- ServerStartMsg ---> RS DS <--- ReplServerStartMsg --- RS DS --- StartSessionMsg ---> RS DS <--- TopologyMsg --- RS
- status: the status we are entering the topology with
- referrals URLs: the referrals URLs we allow peer DSs to use to refer to our domain when needed
-
-
Field Summary
-
Fields inherited from class org.opends.server.replication.protocol.ReplicationMsg
COMPACT_MASK, COMPACT_TYPE_ADD, COMPACT_TYPE_DELETE, COMPACT_TYPE_MODIFY, COMPACT_TYPE_MODIFY_DN, COMPACT_TYPE_REPLICA_OFFLINE, MSG_TYPE_DISK_ENCODING
-
-
Constructor Summary
Constructors Constructor Description StartSessionMsg(ServerStatus status, Set<String> referralsURLs)
Creates a new message with the given required parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version.Set<String>
getEclIncludes()
Get the attributes to include in each change for the ECL.Set<String>
getEclIncludesForDeletes()
Get the attributes to include in each delete change for the ECL.Set<String>
getReferralsURLs()
Get the set of referrals URLs.ServerStatus
getStatus()
Get the status from this message.void
setEclIncludes(Set<String> includeAttributes, Set<String> includeAttributesForDeletes)
Set the attributes configured on a server to be included in the ECL.String
toString()
-
Methods inherited from class org.opends.server.replication.protocol.ReplicationMsg
decodeMsg, isRetryable
-
-
-
-
Constructor Detail
-
StartSessionMsg
public StartSessionMsg(ServerStatus status, Set<String> referralsURLs)
Creates a new message with the given required parameters.- Parameters:
status
- Status we are starting withreferralsURLs
- Referrals URLs to be used by peer DSs
-
-
Method Detail
-
getBytes
public byte[] getBytes(short protocolVersion)
Description copied from class:ReplicationMsg
Serializes the PDU using the provided replication protocol version. WARNING: should be overwritten by a PDU (sub class) we want to support older protocol version serialization for.- Specified by:
getBytes
in classReplicationMsg
- Parameters:
protocolVersion
- The protocol version to use for serialization. The version should normally be older than the current one.- Returns:
- The encoded PDU, or
null
if the message isn't supported in that protocol version.
-
getReferralsURLs
public Set<String> getReferralsURLs()
Get the set of referrals URLs.- Returns:
- The set of referrals URLs.
-
getStatus
public ServerStatus getStatus()
Get the status from this message.- Returns:
- The status.
-
setEclIncludes
public void setEclIncludes(Set<String> includeAttributes, Set<String> includeAttributesForDeletes)
Set the attributes configured on a server to be included in the ECL.- Parameters:
includeAttributes
- attributes to be included with all change records.includeAttributesForDeletes
- additional attributes to be included with delete change records.
-
getEclIncludes
public Set<String> getEclIncludes()
Get the attributes to include in each change for the ECL.- Returns:
- The attributes to include in each change for the ECL.
-
-