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

gbellato
07.19.2009 ae408b6c09759f61754f3e7b39d5e5d6595c1fc4
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/PersistentServerState.java
@@ -73,7 +73,7 @@
   private final InternalClientConnection conn =
       InternalClientConnection.getRootConnection();
   private final ByteString asn1BaseDn;
   private final short serverId;
   private final int serverId;
   private final ServerState state;
@@ -97,7 +97,7 @@
   * @param baseDn The baseDN for which the ServerState is created
   * @param serverId The serverId
   */
  public PersistentServerState(DN baseDn, short serverId)
  public PersistentServerState(DN baseDn, int serverId)
  {
    this.baseDn = baseDn;
    this.serverId = serverId;
@@ -113,7 +113,7 @@
   * @param serverId  The serverId.
   * @param state     The serverState.
   */
  public PersistentServerState(DN baseDn, short serverId, ServerState state)
  public PersistentServerState(DN baseDn, int serverId, ServerState state)
  {
    this.baseDn = baseDn;
    this.serverId = serverId;
@@ -576,8 +576,8 @@
              Integer replicaId = Integer.parseInt(temp, 16);
              // No need to take into account the subSeqNum
              ChangeNumber cn = new ChangeNumber(timeStamp*1000, seqNum,
                  replicaId.shortValue());
              ChangeNumber cn =
                new ChangeNumber(timeStamp*1000, seqNum, replicaId);
              this.update(cn);
            }
@@ -673,7 +673,7 @@
   *
   * @return            The largest ChangeNumber seen.
   */
  public ChangeNumber getMaxChangeNumber(short serverID)
  public ChangeNumber getMaxChangeNumber(int serverID)
  {
    return state.getMaxChangeNumber(serverID);
  }