public final class ReplicationServerId extends Object implements ServerId<ReplicationServerId>
The Replication Server ID is represented both with a name and a numeric value:
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ReplicationServerId o) |
boolean |
equals(Object o) |
static ReplicationServerId |
fromLegacyNumericId(int numericId)
Generates a new
ReplicationServerId from the provided integer value. |
static ReplicationServerId |
fromReplicationServerName(String name)
Generates a new
ReplicationServerId from the provided string value. |
int |
hashCode() |
boolean |
isNullReplicationServerId()
Tests whether this id corresponds to the null replication server id.
|
String |
name()
Returns the name of this serverId, as a
String . |
String |
normalizedName()
Returns the normalized name of this serverId.
|
static ReplicationServerId |
nullReplicationServerId()
Returns the special id corresponding to the null replication server id.
|
int |
numericId()
Returns the numeric value of this serverId, as an int.
|
String |
toString() |
public static ReplicationServerId nullReplicationServerId()
public static ReplicationServerId fromLegacyNumericId(int numericId)
ReplicationServerId
from the provided integer value.
Replication Servers need an integer value only for protocol compatibility purposes, the method can be deleted once support for replication topologies running versions before 6.5.0 is dropped.
numericId
- the numeric part of this IDReplicationServerId
public static ReplicationServerId fromReplicationServerName(String name)
ReplicationServerId
from the provided string value.name
- the name of this IDReplicationServerId
public String name()
ServerId
String
.name
in interface ServerId<ReplicationServerId>
String
valuepublic String normalizedName()
ServerId
normalizedName
in interface ServerId<ReplicationServerId>
String
valuepublic int numericId()
ServerId
The numeric value is used in the CSNs.
numericId
in interface ServerId<ReplicationServerId>
public boolean isNullReplicationServerId()
true
iff the id is the null replication server id.public int compareTo(ReplicationServerId o)
compareTo
in interface Comparable<ReplicationServerId>
Copyright 2010-2022 ForgeRock AS.