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

Jean-Noël Rouvignac
19.51.2016 ad326bc588eb60ff6dafd6320eb2c74d8f37cd58
opendj-server-legacy/src/main/java/org/opends/admin/ads/ServerDescriptor.java
@@ -54,7 +54,7 @@
 * <p>
 * It can represent either a DS-only, a RS-only or a combined DS-RS.
 */
public class ServerDescriptor
public class ServerDescriptor implements Comparable<ServerDescriptor>
{
  private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
  private static final String TRUSTSTORE_DN = "cn=ads-truststore";
@@ -483,6 +483,12 @@
    return buf.toString();
  }
  @Override
  public int compareTo(ServerDescriptor o)
  {
    return getId().compareTo(o.getId());
  }
  /**
   * Returns the instance-key public-key certificate retrieved from the
   * truststore backend of the instance referenced through this descriptor.