@Immutable public final class RSInfo extends Object
Constructor and Description |
---|
RSInfo(int rsServerId,
HostPort rsHostPort,
long generationId,
byte groupId,
int weight)
Creates a new instance of RSInfo with every given info.
|
Modifier and Type | Method and Description |
---|---|
RSInfo |
changeHostPort(HostPort newHostPort)
Returns a new RSInfo object where the host port has been changed to the provided value.
|
boolean |
equals(Object obj)
Test if the passed object is equal to this one.
|
long |
getGenerationId()
Get the generation id RS is using.
|
byte |
getGroupId()
Get the RS group id.
|
HostPort |
getHostPort()
Gets the server host port.
|
int |
getServerId()
Get the RS server id.
|
int |
getWeight()
Get the RS weight.
|
int |
hashCode()
Computes hash code for this object instance.
|
String |
toString()
Returns a string representation of the DS info.
|
public RSInfo(int rsServerId, HostPort rsHostPort, long generationId, byte groupId, int weight)
rsServerId
- The RS idrsHostPort
- host port of the RSgenerationId
- The generation id the RS is usinggroupId
- RS group idweight
- RS weightpublic RSInfo changeHostPort(HostPort newHostPort)
newHostPort
- the new host portpublic int getServerId()
public long getGenerationId()
public byte getGroupId()
public int getWeight()
public boolean equals(Object obj)
public int hashCode()
public HostPort getHostPort()
Copyright 2010-2018 ForgeRock AS.