public class StartSessionMsg extends ReplicationMsg
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
StartSessionMsg(ServerStatus status,
Collection<String> referralsURLs,
boolean assuredFlag,
AssuredMode assuredMode,
byte safeDataLevel)
Creates a new message with the given required parameters.
|
Modifier and Type | Method and Description |
---|---|
AssuredMode |
getAssuredMode()
Get the assured mode.
|
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.
|
List<String> |
getReferralsURLs()
Get the list of referrals URLs.
|
byte |
getSafeDataLevel()
Get the safe data level.
|
ServerStatus |
getStatus()
Get the status from this message.
|
boolean |
isAssured()
Returns true if assured mode is enabled.
|
void |
setEclIncludes(Set<String> includeAttributes,
Set<String> includeAttributesForDeletes)
Set the attributes configured on a server to be included in the ECL.
|
String |
toString() |
generateMsg
public StartSessionMsg(ServerStatus status, Collection<String> referralsURLs, boolean assuredFlag, AssuredMode assuredMode, byte safeDataLevel)
status
- Status we are starting withreferralsURLs
- Referrals URLs to be used by peer DSsassuredFlag
- If assured mode is enabled or notassuredMode
- Assured typesafeDataLevel
- Assured mode safe data levelpublic byte[] getBytes(short protocolVersion)
getBytes
in class ReplicationMsg
protocolVersion
- 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 List<String> getReferralsURLs()
public ServerStatus getStatus()
public boolean isAssured()
public AssuredMode getAssuredMode()
public byte getSafeDataLevel()
public void setEclIncludes(Set<String> includeAttributes, Set<String> includeAttributesForDeletes)
includeAttributes
- attributes to be included with all change records.includeAttributesForDeletes
- additional attributes to be included with delete change records.public Set<String> getEclIncludes()
public Set<String> getEclIncludesForDeletes()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.