Class ReplServerStartDSMsg


  • public final class ReplServerStartDSMsg
    extends StartMsg
    Message sent by a replication server to a directory server in reply to the ServerStartMsg.
    • Constructor Detail

      • ReplServerStartDSMsg

        public ReplServerStartDSMsg​(ReplicationServerId rsId,
                                    com.forgerock.opendj.util.HostPort changelogEndpoint,
                                    Dn baseDN,
                                    ServerState serverState,
                                    GenerationId generationId,
                                    boolean sslEncryption,
                                    com.forgerock.opendj.discovery.GroupId groupId,
                                    int weight,
                                    int connectedDSNumber)
        Create a ReplServerStartDSMsg.
        Parameters:
        rsId - replication server id
        changelogEndpoint - replication server host port
        baseDN - base DN for which the ReplServerStartDSMsg is created.
        serverState - our ServerState for this baseDN.
        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 RS
        weight - The weight affected to the replication server.
        connectedDSNumber - Number of currently connected DS to the replication server.
    • Method Detail

      • getServerId

        public ReplicationServerId getServerId()
        Get the Server Id.
        Returns:
        the server id
      • getBaseDN

        public Dn getBaseDN()
        Get the base DN from this ReplServerStartDSMsg.
        Returns:
        the base DN from this ReplServerStartDSMsg.
      • getServerState

        public ServerState getServerState()
        Get the serverState.
        Returns:
        Returns the serverState.
      • 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 class ReplicationMsg
        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.
      • getSSLEncryption

        public boolean getSSLEncryption()
        Get the SSL encryption value for the server that created the message.
        Returns:
        The SSL encryption value for the server that created the message.
      • getDegradedStatusThreshold

        public int getDegradedStatusThreshold()
        Get the degraded status threshold value.
        Returns:
        The degraded status threshold value.
      • getWeight

        public int getWeight()
        Gets the weight of the replication server.
        Returns:
        The weight of the replication server.
      • getConnectedDSNumber

        public int getConnectedDSNumber()
        Gets the number of directory servers connected to the replication server.
        Returns:
        The number of directory servers connected to the replication server.