4812N/A * The contents of this file are subject to the terms of the 4812N/A * Common Development and Distribution License, Version 1.0 only 4812N/A * (the "License"). You may not use this file except in compliance 4812N/A * You can obtain a copy of the license at 4812N/A * See the License for the specific language governing permissions 4812N/A * and limitations under the License. 4812N/A * When distributing Covered Code, include this CDDL HEADER in each 4812N/A * file and include the License file at 4812N/A * add the following below this CDDL HEADER, with the fields enclosed 4812N/A * by brackets "[]" replaced with your own identifying information: 4812N/A * Portions Copyright [yyyy] [name of copyright owner] 4812N/A * Copyright 2009 Sun Microsystems, Inc. 6334N/A * Portions copyright 2013 ForgeRock AS. 4812N/A * Message sent by a replication server to a directory server in reply to the 4812N/A * Whether to continue using SSL to encrypt messages after the start 4812N/A * messages have been exchanged. 4812N/A * Threshold value used by the RS to determine if a DS must be put in 4812N/A * degraded status because the number of pending changes for him has crossed 4812N/A * this value. This field is only used by a DS. 4812N/A * The weight affected to the replication server. 4812N/A * Number of currently connected DS to the replication server. 4812N/A * Create a ReplServerStartDSMsg. 4812N/A * @param serverId replication server id 4812N/A * @param serverURL replication server URL 4812N/A * @param baseDn base DN for which the ReplServerStartDSMsg is created. 4812N/A * @param windowSize The window size. 4812N/A * @param serverState our ServerState for this baseDn. 4812N/A * @param generationId The generationId for this server. 4812N/A * @param sslEncryption Whether to continue using SSL to encrypt messages 4812N/A * after the start messages have been exchanged. 4812N/A * @param groupId The group id of the RS 4812N/A * @param degradedStatusThreshold The degraded status threshold 4812N/A * @param weight The weight affected to the replication server. 4812N/A * @param connectedDSNumber Number of currently connected DS to the 4812N/A * Creates a new ReplServerStartDSMsg by decoding the provided byte array. 4812N/A * @param in A byte array containing the encoded information for the 4812N/A * @throws DataFormatException If the in does not contain a properly 4812N/A * encoded ReplServerStartDSMsg. 4812N/A /* The ReplServerStartDSMsg payload is stored in the form : 4812N/A * <baseDn><serverId><serverURL><windowSize><sslEncryption> 4812N/A * <degradedStatusThreshold><weight><connectedDSNumber> 4812N/A /* first bytes are the header */ 4812N/A * first calculate the length then construct the string 4812N/A * read the sslEncryption setting 4812N/A * read the degraded status threshold 4812N/A * read the connected DS number 4812N/A // Caution: ServerState MUST be the last field. Because ServerState can 4812N/A // contain null character (string termination of serverid string ..) it 4812N/A // cannot be decoded using getNextLength() like the other fields. The 4812N/A // only way is to rely on the end of the input buffer : and that forces 4812N/A // the ServerState to be the last. This should be changed and we want to 4812N/A // have more than one ServerState field. 4812N/A * Get the base DN from this ReplServerStartDSMsg. 4812N/A * @return the base DN from this ReplServerStartDSMsg. 4812N/A * @return Returns the serverState. 4812N/A /* The ReplServerStartDSMsg is stored in the form : 4812N/A * <operation type><baseDn><serverId><serverURL><windowSize><sslEncryption> 4812N/A * <degradedStatusThreshold><weight><connectedDSNumber> 4812N/A /* encode the header in a byte[] large enough */ 4812N/A /* put the baseDN and a terminating 0 */ 4812N/A /* put the SSL Encryption setting */ 4812N/A /* put the degraded status threshold */ 4812N/A /* put the connected DS number */ 4812N/A * get the window size for the server that created this message. 4812N/A * @return The window size for the server that created this message. 4812N/A * Get the SSL encryption value for the server that created the 4812N/A * @return The SSL encryption value for the server that created the 4812N/A * Get the degraded status threshold value. 4812N/A * @return The degraded status threshold value. 4812N/A * Set the degraded status threshold (For test purpose). 4812N/A * @param degradedStatusThreshold The degraded status threshold to set. 4812N/A return "ReplServerStartDSMsg content: " +
4812N/A * Gets the weight of the replication server. 4812N/A * @return The weight of the replication server. 4812N/A * Gets the number of directory servers connected to the replication server. 4812N/A * @return The number of directory servers connected to the replication