public class ServerStartMsg extends StartMsg
generationId, groupId, MAX_WINDOW_SIZE, protocolVersion
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ServerStartMsg(int serverId2,
HostPort serverURL,
Dn baseDN,
long heartbeatInterval,
ServerState serverState,
long generationId,
boolean sslEncryption,
byte groupId)
Creates a new ServerStartMsg.
|
Modifier and Type | Method and Description |
---|---|
Dn |
getBaseDN()
Get the baseDN.
|
byte[] |
getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version.
|
long |
getHeartbeatInterval()
Get the heartbeat interval requested by the ldap server that created the message.
|
int |
getServerId()
Get the ServerID from the message.
|
ServerState |
getServerState()
Get the ServerState.
|
HostPort |
getServerURL()
Get the Server URL from the message.
|
boolean |
getSSLEncryption()
Get the SSL encryption value for the ldap server that created the message.
|
String |
toString() |
getGenerationId, getGroupId, getVersion, setGroupId
generateMsg
public ServerStartMsg(int serverId2, HostPort serverURL, Dn baseDN, long heartbeatInterval, ServerState serverState, long generationId, boolean sslEncryption, byte groupId)
serverId2
- The serverId of the server for which the ServerStartMsg is created.serverURL
- directory server URLbaseDN
- The base DN.heartbeatInterval
- The requested heartbeat interval.serverState
- The state of this server.generationId
- The generationId for this server.sslEncryption
- Whether to continue using SSL to encrypt messages after the start messages have been exchanged.groupId
- The group id of the DS for this DNpublic int getServerId()
public HostPort getServerURL()
public Dn getBaseDN()
public ServerState getServerState()
public 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 long getHeartbeatInterval()
public boolean getSSLEncryption()
Copyright 2010-2020 ForgeRock AS.