mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

mrossign
06.11.2009 3a9e211d36ee94ff99941943b3b51e0f768624f5
opends/src/server/org/opends/server/replication/server/ServerHandler.java
@@ -244,6 +244,10 @@
   */
  private AtomicBoolean shuttingDown = new AtomicBoolean(false);
  /**
   * Weight of this remote server.
   */
  protected int weight = 1;
  /**
   * Creates a new server handler instance with the provided socket.
@@ -1215,12 +1219,23 @@
   */
  public RSInfo toRSInfo()
  {
    RSInfo rsInfo = new RSInfo(serverId, generationId, groupId);
    RSInfo rsInfo = new RSInfo(serverId, generationId, groupId, weight);
    return rsInfo;
  }
  /**
   * Starts the monitoring publisher for the domain if not already started.
   */
  protected void createMonitoringPublisher()
  {
    if (!replicationServerDomain.isRunningMonitoringPublisher())
    {
      replicationServerDomain.startMonitoringPublisher();
    }
  }
  /**
   * Performs any processing periodic processing that may be desired to update
   * the information associated with this monitor.  Note that best-effort
   * attempts will be made to ensure that calls to this method come