| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.replication.common; |
| | | |
| | |
| | | public class RSInfo |
| | | { |
| | | // Server id of the RS |
| | | private short id = -1; |
| | | private int id = -1; |
| | | // Generation Id of the RS |
| | | private long generationId = -1; |
| | | // Group id of the RS |
| | |
| | | * @param generationId The generation id the RS is using |
| | | * @param groupId RS group id |
| | | */ |
| | | public RSInfo(short id, long generationId, byte groupId) |
| | | public RSInfo(int id, long generationId, byte groupId) |
| | | { |
| | | this.id = id; |
| | | this.generationId = generationId; |
| | |
| | | * Get the RS id. |
| | | * @return the RS id |
| | | */ |
| | | public short getId() |
| | | public int getId() |
| | | { |
| | | return id; |
| | | } |
| | |
| | | StringBuffer sb = new StringBuffer(); |
| | | sb.append("Id: "); |
| | | sb.append(id); |
| | | sb.append("\nGeneration id: "); |
| | | sb.append(" Generation id: "); |
| | | sb.append(generationId); |
| | | sb.append("\nGroup id: "); |
| | | sb.append(" Group id: "); |
| | | sb.append(groupId); |
| | | return sb.toString(); |
| | | } |