Class DomainReplicaId
- java.lang.Object
-
- org.opends.server.replication.server.changelog.api.DomainReplicaId
-
- All Implemented Interfaces:
Comparable<DomainReplicaId>
public final class DomainReplicaId extends Object implements Comparable<DomainReplicaId>
Identifier comprised of the domain baseDN and its replicaId within this domain.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DomainReplicaId.MigrateToDomainReplicaId
Marker annotation during the migration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DomainReplicaId o)
boolean
equals(Object obj)
Dn
getBaseDN()
Returns the baseDN.ReplicaId
getReplicaId()
Returns the replicaId.int
hashCode()
static DomainReplicaId
of(Dn baseDN, ReplicaId replicaId)
Creates a ReplicaId with the provided parameters.String
toString()
-
-
-
Method Detail
-
of
public static DomainReplicaId of(Dn baseDN, ReplicaId replicaId)
Creates a ReplicaId with the provided parameters.- Parameters:
baseDN
- domain baseDNreplicaId
- replicaId within the domain- Returns:
- a new ReplicaId
-
getBaseDN
public Dn getBaseDN()
Returns the baseDN.- Returns:
- the baseDN
-
getReplicaId
public ReplicaId getReplicaId()
Returns the replicaId.- Returns:
- the replicaId
-
compareTo
public int compareTo(DomainReplicaId o)
- Specified by:
compareTo
in interfaceComparable<DomainReplicaId>
-
-