Uses of Class
org.opends.server.replication.common.ReplicaId
Package
Description
This package contains utilities that can are used by all the packages below org.opends.server.replication.
This package contains the part of the Multi-master replication code that works on the Directory Server side.
This package contains the code used by the replication server and by the code running on the Directory Server side to
exchange their information.
This package contains the code for the Replication Server part of the Multimaster replication feature.
This package contains the API for the changelog database.
This package contains the generic of the Multi-Master replication code that works on the Directory Server side.
-
Uses of ReplicaId in org.opends.server.replication.common
Modifier and TypeMethodDescriptionstatic ReplicaId
ReplicaId.allReplicas()
Returns the special id corresponding to "all replicas".static ReplicaId
ReplicaId.fromNumericId
(int numericId) Generates a newReplicaId
from the provided integer value.static ReplicaId
ReplicaId.fromReplicaName
(String name) Generates a newReplicaId
from the provided string value.CSN.getReplicaId()
Getter for the replica ID.static ReplicaId
ReplicaId.nullReplicaId()
Returns the special id corresponding to the null replica id.DSInfo.replicaId()
Returns the value of thereplicaId
record component.Modifier and TypeMethodDescriptionServerState.getReplicaIdToCSNMap()
Returns a copy of this ServerState's content as a Map of replicaId to CSN.Modifier and TypeMethodDescriptionvoid
Topology.addLocalReplicationDomain
(ReplicaId replicaId, Dn baseDn) Adds a replication domain to the local server in the topology.int
Returns the CSN associated to the provided replication domain's baseDN and replicaId.Returns theCSN
contained in this server state which corresponds to the provided replica ID.boolean
CSN.isOldestCsn
(ReplicaId replicaId) Returns if this is the oldest possible CSN for a replica.static CSNGenerator
CSNGenerator.newCSNGenerator
(ReplicaId replicaId, long timestamp) Create a newCSNGenerator
.static CSNGenerator
CSNGenerator.newCSNGenerator
(ReplicaId replicaId, ServerState state) Create a newCSNGenerator
.static CSN
Returns the newest possible CSN for a replica.static CSN
Returns the oldest possible CSN for a replica.void
Topology.removeLocalReplicationDomain
(ReplicaId replicaId, Dn baseDn) Removes a replication domain from the local server in the topology.Topology.toDSInfoOrNull
(ReplicaId replicaId) Returns the information available from the topology for this replica ID as aDSInfo
object.ModifierConstructorDescriptionCreate a newCSN
.DSInfo
(ReplicaId replicaId, com.forgerock.opendj.util.HostPort adminEndpoint, ReplicationServerId rsId, GenerationId generationId, ServerStatus status, com.forgerock.opendj.discovery.GroupId groupId, ProcessId processId, Set<String> refUrls, Set<String> eclIncludes, Set<String> eclIncludesForDeletes, short protocolVersion, Set<com.forgerock.opendj.util.HostPort> adminEndpoints, Map<ConnectionSecurity, Set<com.forgerock.opendj.util.HostPort>> ldapEndpoints) Canonical constructor. -
Uses of ReplicaId in org.opends.server.replication.plugin
Modifier and TypeMethodDescriptionLDAPReplicationDomain.decodeSource
(String sourceReplicaName) Verifies that the given string represents a valid source from which this server can be initialized.Modifier and TypeMethodDescriptionvoid
LDAPReplicationDomain.addMetricsForRemoteReplica
(MeterRegistryHolder registry, ReplicaId remoteReplicaId) protected void
LDAPReplicationDomain.initializeRemote
(ReplicaId target, ReplicaId requestorID, Task initTask, int initWindow) Process the initialization of some other server or servers in the topology specified by the target argument when this initialization specifying the server that requests the initialization. -
Uses of ReplicaId in org.opends.server.replication.protocol
Modifier and TypeFieldDescriptionprotected ReplicaId
InitializationMsg.destination
The destination server or servers of this message.Modifier and TypeMethodDescriptionInitializationMsg.getDestination()
Get the destination.InitializeTargetMsg.getInitiatorID()
Get the replica id of the server that initiated the export.ServerStartMsg.getReplicaId()
Get the replica ID from the message.DoneMsg.getSenderID()
EntryMsg.getSenderID()
InitializeRcvAckMsg.getSenderID()
InitializeRequestMsg.getSenderID()
InitializeTargetMsg.getSenderID()
ByteArrayScanner.nextReplicaId()
Reads the next replica id.Modifier and TypeMethodDescriptionByteArrayBuilder.appendReplicaId
(ReplicaId replicaId) Appends the encoded version of thisReplicaId
to this ByteArrayBuilder.ModifierConstructorDescriptionCreates a message.Creates a new EntryMsg.EntryMsg
(ReplicaId sender, ReplicaId destination, byte[] entryBytes, int startPos, int length, int msgId) Creates a new EntryMsg.ErrorMsg
(ServerId<?> sender, ReplicaId destination, LocalizableMessage details) Creates an ErrorMsg providing the destination server.InitializationMsg
(ServerId<?> sender, ReplicaId destination) Creates an initialization message.InitializeRcvAckMsg
(ReplicaId sender, ReplicaId destination, int numAck) Create a new message..InitializeRequestMsg
(Dn baseDN, ReplicaId replicaId, ReplicaId destination, int initWindow) Creates a InitializeRequestMsg message.InitializeTargetMsg
(Dn baseDN, ReplicaId replicaId, ReplicaId destination, ReplicaId requestorID, long entryCount, int initWindow) Creates a InitializeTargetMsg.ServerStartMsg
(ReplicaId replicaId, com.forgerock.opendj.util.HostPort adminEndpoint, Dn baseDN, long heartbeatInterval, ServerState serverState, GenerationId generationId, boolean sslEncryption, com.forgerock.opendj.discovery.GroupId groupId) Creates a new ServerStartMsg. -
Uses of ReplicaId in org.opends.server.replication.server
Modifier and TypeMethodDescriptionReplicationServerDomain.getConnectedDSs()
Get the map of connected DSs.Modifier and TypeMethodDescriptionboolean
ReplicationServerDomain.hasDifferentGenerationIdThan
(ReplicaId replicaId) Returns whether the provided replica has a different generationId than this replication domain. -
Uses of ReplicaId in org.opends.server.replication.server.changelog.api
Modifier and TypeMethodDescriptionUpdateRecord.getReplicaId()
Returns the replica ID of the replica the message belongs to.DomainReplicaId.replicaId()
Returns the value of thereplicaId
record component.Modifier and TypeMethodDescriptionRemovedReplicasStates.getLastMessageCsn
(ReplicaId replica) Returns the CSN for the last LDAP message from the provided replica.RemovedReplicasStates.getLastUpdateCsn
(ReplicaId replica) Returns the CSN for the lastLDAPUpdateMsg
from the provided replica.static DomainReplicaId
Creates a ReplicaId with the provided parameters.void
RemovedReplicasStates.replicaRejoined
(ReplicaId replica) Removes the provided replica from the removed replica states, because it rejoined.ModifierConstructorDescriptionDomainReplicaId
(Dn baseDn, ReplicaId replicaId) Creates an instance of aDomainReplicaId
record class. -
Uses of ReplicaId in org.opends.server.replication.service
Modifier and TypeMethodDescriptionReplicationDomain.decodeTarget
(String targetString) Verifies that the given string represents a valid source from which this server can be initialized.ReplicationDomain.ImportExportContext.getImportSource()
Gets the server id of the importing server.ReplicationBroker.getReplicaId()
Gets the replica id.ReplicationDomain.getReplicaId()
Get the replica ID which identifies this Replication Domain inside the Replication Service.Modifier and TypeMethodDescriptionvoid
ReplicationDomain.addMetricsForRemoteReplica
(MeterRegistryHolder registry, ReplicaId remoteReplicaId) Subclasses should use this method to add additional monitoring information in the Remote Replica Monitor.void
ReplicationDomain.initializeFromRemote
(ReplicaId source, Task initTask) Initializes asynchronously this domain from a remote source server.void
ReplicationDomain.initializeRemote
(ReplicaId target, Task initTask) Initializes a remote server from this server.protected void
ReplicationDomain.initializeRemote
(ReplicaId replicaToInitialize, ReplicaId replicaRunningTheTask, Task initTask, int initWindow) Process the initialization of some other server or servers in the topology specified by the target argument when this initialization specifying the server that requests the initialization.boolean
ReplicationDomain.setEclIncludes
(ReplicaId replicaId, Set<String> includeAttributes, Set<String> includeAttributesForDeletes) Set the attributes configured on a server to be included in the ECL.