public class ServerStartMsg extends StartMsg
generationId, groupId, protocolVersion
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ServerStartMsg(int serverId2,
String serverURL,
org.forgerock.opendj.ldap.Dn baseDN,
int windowSize,
long heartbeatInterval,
ServerState serverState,
long generationId,
boolean sslEncryption,
byte groupId)
Creates a new ServerStartMsg.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.ldap.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 |
getMaxReceiveDelay()
Get the maxReceiveDelay.
|
int |
getMaxReceiveQueue()
Get the maxReceiveQueue.
|
int |
getMaxSendDelay()
Get the maxSendDelay.
|
int |
getMaxSendQueue()
Get the maxSendQueue.
|
int |
getServerId()
Get the ServerID from the message.
|
ServerState |
getServerState()
Get the ServerState.
|
String |
getServerURL()
Get the Server URL from the message.
|
boolean |
getSSLEncryption()
Get the SSL encryption value for the ldap server that created the
message.
|
int |
getWindowSize()
Get the window size for the ldap server that created the message.
|
String |
toString() |
getGenerationId, getGroupId, getVersion, setGroupId
generateMsg
public ServerStartMsg(int serverId2, String serverURL, org.forgerock.opendj.ldap.Dn baseDN, int windowSize, 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.windowSize
- The window size used by this server.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 String getServerURL()
public org.forgerock.opendj.ldap.Dn getBaseDN()
public int getMaxReceiveDelay()
public int getMaxReceiveQueue()
public int getMaxSendDelay()
public int getMaxSendQueue()
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 int getWindowSize()
public long getHeartbeatInterval()
public boolean getSSLEncryption()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.