Class RSInfo
- java.lang.Object
-
- org.opends.server.replication.common.RSInfo
-
public final class RSInfo extends Object
This class holds information about a RS connected to the topology. This information is to be exchanged through the replication protocol in topology messages, to keep every member DS of the topology aware of the RS topology.This class is immutable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Test if the passed object is equal to this one.longgetGenerationId()Get the generation id RS is using.bytegetGroupId()Get the RS group id.intgetId()Get the RS id.StringgetServerUrl()Gets the server URL.intgetWeight()Get the RS weight.inthashCode()Computes hash code for this object instance.StringtoString()Returns a string representation of the DS info.
-
-
-
Constructor Detail
-
RSInfo
public RSInfo(int rsServerId, String rsServerURL, long generationId, byte groupId, int weight)Creates a new instance of RSInfo with every given info.- Parameters:
rsServerId- The RS idrsServerURL- Url of the RSgenerationId- The generation id the RS is usinggroupId- RS group idweight- RS weight
-
-
Method Detail
-
getId
public int getId()
Get the RS id.- Returns:
- the RS id
-
getGenerationId
public long getGenerationId()
Get the generation id RS is using.- Returns:
- the generation id RS is using.
-
getGroupId
public byte getGroupId()
Get the RS group id.- Returns:
- The RS group id
-
getWeight
public int getWeight()
Get the RS weight.- Returns:
- The RS weight
-
equals
public boolean equals(Object obj)
Test if the passed object is equal to this one.
-
hashCode
public int hashCode()
Computes hash code for this object instance.
-
getServerUrl
public String getServerUrl()
Gets the server URL.- Returns:
- the serverUrl
-
-