Class ServerStartMsg
java.lang.Object
org.opends.server.replication.protocol.ReplicationMsg
org.opends.server.replication.protocol.StartMsg
org.opends.server.replication.protocol.ServerStartMsg
This message is used by LDAP server when they first connect. to a replication server to let them know who they are
and what is their state (their RUV)
-
Field Summary
Fields inherited from class StartMsg
generationId, groupId, MAX_WINDOW_SIZE, protocolVersionFields inherited from class ReplicationMsg
MSG_TYPE_DISK_ENCODING -
Constructor Summary
ConstructorsConstructorDescriptionServerStartMsg(ReplicaId replicaId, com.forgerock.opendj.util.HostPort adminEndpoint, Dn baseDn, Duration heartbeatInterval, ServerState serverState, GenerationId generationId, boolean sslEncryption, GroupId groupId) Creates a new ServerStartMsg. -
Method Summary
Modifier and TypeMethodDescriptioncom.forgerock.opendj.util.HostPortGet the server host port from the message.Returns the base DN.byte[]getBytes(short protocolVersion) Serializes the PDU using the provided replication protocol version.longReturns the heartbeat interval requested by the ldap server that created the message.Get the replica ID from the message.Returns the ServerState.booleanReturns the SSL encryption value for the ldap server that created the message.toString()Methods inherited from class StartMsg
getGenerationId, getGroupId, getVersion, setGroupIdMethods inherited from class ReplicationMsg
decodeMsg, isRetryable
-
Constructor Details
-
ServerStartMsg
public ServerStartMsg(ReplicaId replicaId, com.forgerock.opendj.util.HostPort adminEndpoint, Dn baseDn, Duration heartbeatInterval, ServerState serverState, GenerationId generationId, boolean sslEncryption, GroupId groupId) Creates a new ServerStartMsg. This message is to be sent by an LDAP Server after being connected to a replication server for a given replication domain.- Parameters:
replicaId- The replicaId of the server for which the ServerStartMsg is createdadminEndpoint- directory server host portbaseDn- The base DNheartbeatInterval- The requested heartbeat intervalserverState- The state of this servergenerationId- The generationId for this serversslEncryption- Whether to continue using SSL to encrypt messages after the start messages have been exchanged.groupId- The group id of the DS for this DN
-
-
Method Details
-
getReplicaId
-
getAdminEndpoint
public com.forgerock.opendj.util.HostPort getAdminEndpoint()Get the server host port from the message.- Returns:
- the server host port
-
getBaseDn
-
getServerState
-
getBytes
public byte[] getBytes(short protocolVersion) Description copied from class:ReplicationMsgSerializes 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:
getBytesin 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
nullif the message isn't supported in that protocol version.
-
getHeartbeatIntervalMs
public long getHeartbeatIntervalMs()Returns the heartbeat interval requested by the ldap server that created the message.- Returns:
- the heartbeat interval requested by the ldap server that created the message
-
getSSLEncryption
public boolean getSSLEncryption()Returns the SSL encryption value for the ldap server that created the message.- Returns:
- the SSL encryption value for the ldap server that created the message
-
toString
-