Uses of Class
org.opends.server.replication.common.CSN
-
Packages that use CSN Package Description org.opends.server.controls Contains classes that represent specific LDAP controls and their values.org.opends.server.plugins Contains the implementation for various Directory Server plugins.org.opends.server.replication.common This package contains utilities that can are used by all the packages below org.opends.server.replication.org.opends.server.replication.plugin This package contains the part of the Multi-master replication code that works on the Directory Server side.org.opends.server.replication.protocol This package contains the code used by the replication server and by the code running on the Directory Server side to exchange their information.org.opends.server.replication.server.changelog.api This package contains the API for the changelog database.org.opends.server.replication.server.changelog.file This package contains a file-based log implementation for the changelog database API.org.opends.server.replication.service This package contains the generic of the Multi-Master replication code that works on the Directory Server side.org.opends.server.tasks Contains implementations for various Directory Server tasks. -
-
Uses of CSN in org.opends.server.controls
Methods in org.opends.server.controls that return CSN Modifier and Type Method Description CSNReplicatedRequestControl. getCSN()Returns the CSN.Constructors in org.opends.server.controls with parameters of type CSN Constructor Description ReplicatedRequestControl(boolean isCritical, CSN csn, UUID entryUuid)Constructs a new control.ReplicatedRequestControl(boolean isCritical, CSN csn, UUID entryUuid, UUID parentUuid)Constructs a new control. -
Uses of CSN in org.opends.server.plugins
Methods in org.opends.server.plugins that return CSN Modifier and Type Method Description CSNChangeNumberControlPlugin.ChangeNumberResponseControl. getCSN()Retrieves the CSN.Constructors in org.opends.server.plugins with parameters of type CSN Constructor Description ChangeNumberResponseControl(boolean isCritical, CSN csn)Constructs a new change number control. -
Uses of CSN in org.opends.server.replication.common
Fields in org.opends.server.replication.common declared as CSN Modifier and Type Field Description static CSNCSN. MAX_VALUEThe maximum possible value for a CSN.static CSNCSN. MIN_VALUEThe minimum possible value for a CSN.Methods in org.opends.server.replication.common that return CSN Modifier and Type Method Description CSNMultiDomainServerState. getCSN(Dn baseDN, ReplicaId replicaId)Returns the CSN associated to the provided replication domain's baseDN and replicaId.CSNServerState. getCSN(ReplicaId replicaId)Returns theCSNcontained in this server state which corresponds to the provided replica ID.CSNCSNGenerator. newCSN()Generate a newCSN.static CSNCSN. newestCsn(long timeStamp)Return the newest possible CSN for the given time.static CSNCSN. newestCsn(ReplicaId replicaId)Returns the newest possible CSN for a replica.static CSNCSN. oldestCsn(long timeStamp)Returns the oldest possible CSN for the given time.static CSNCSN. oldestCsn(ReplicaId replicaId)Returns the oldest possible CSN for a replica.static CSNCSN. valueOf(String str)Parses the providedtoString()representation of a CSN.static CSNCSN. valueOf(ByteSequence bs)Decodes the providedtoByteString(CsnVersion)representation of a CSN.static CSNCSN. valueOf(ByteSequenceReader reader)Decodes the providedtoByteString(CsnVersion)representation of a CSN, possibly embedded in a larger sequence.Methods in org.opends.server.replication.common that return types with arguments of type CSN Modifier and Type Method Description Map<ReplicaId,CSN>ServerState. getReplicaIdToCSNMap()Returns a copy of this ServerState's content as a Map of replicaId to CSN.Map<Dn,Set<CSN>>MultiDomainServerState. getSnapshot()Returns a snapshot of this object.Set<CSN>ServerState. getSnapshot()Returns a snapshot of this object.Iterator<CSN>ServerState. iterator()Methods in org.opends.server.replication.common with parameters of type CSN Modifier and Type Method Description voidCSNGenerator. adjust(CSN csn)Adjust the lastTime of thisCSNGeneratorwith aCSNthat we have received from another server.static intCSN. compare(CSN csn1, CSN csn2)Compares this CSN with the provided CSN for order and returns a negative number ifcsn1is older thancsn2, zero if they have the same age, or a positive number ifcsn1is newer thancsn2.intCSN. compareTo(CSN csn)Compares this CSN with the provided CSN for order and returns a negative number if this CSN is older thancsn, zero if they have the same age, or a positive number if this CSN is newer thancsn.booleanMultiDomainServerState. cover(Dn baseDN, CSN csn)Test if this object covers the provided CSN for the provided baseDN.booleanServerState. cover(CSN covered)Checks that the CSN given as a parameter is in this ServerState.booleanCSN. isNewerThan(CSN csn)Returnstrueif this CSN is newer than the provided CSN.booleanCSN. isNewerThanOrEqualTo(CSN csn)Returnstrueif this CSN is newer than or equal to the provided CSN.booleanCSN. isOlderThan(CSN csn)Returnstrueif this CSN is older than the provided CSN.booleanCSN. isOlderThanOrEqualTo(CSN csn)Returnstrueif this CSN is older than or equal to the provided CSN.booleanServerState. removeCSN(CSN expectedCSN)Removes the mapping to the provided CSN if it is present in this ServerState.booleanMultiDomainServerState. update(Dn baseDN, CSN csn)Update the ServerState of the provided baseDN with the replicationCSNprovided.booleanServerState. update(CSN csn)Forward update the Server State with a CSN. -
Uses of CSN in org.opends.server.replication.plugin
Methods in org.opends.server.replication.plugin that return CSN Modifier and Type Method Description abstract CSNAttrHistorical. getDeleteTime()Returns the last time when this attribute was deleted.CSNAttrHistoricalMultiple. getDeleteTime()CSNAttrHistoricalSingle. getDeleteTime()CSNEntryHistorical. getEntryADDDate()Returns the CSN of the operation that added this entry.CSNEntryHistorical. getEntryMODDNDate()Returns the CSN of the operation that renamed this entry.CSNAttrValueHistorical. getValueDeleteTime()Get the last time when the value was deleted.CSNAttrValueHistorical. getValueUpdateTime()Get the last time when the value was updated.Methods in org.opends.server.replication.plugin with parameters of type CSN Modifier and Type Method Description voidEntryHistorical. addAttrHistoricalAddValue(AttributeDescription attributeDescription, CSN csn, ByteString value)Updates this entry historical information with the provided add modification.voidEntryHistorical. addAttrHistoricalDeleteAttr(AttributeDescription attributeDescription, CSN csn)Updates this entry historical information with the provided delete attribute modification.voidEntryHistorical. addAttrHistoricalDeleteValue(AttributeDescription attributeDescription, CSN csn, ByteString value)Updates this entry historical information with the provided delete modification.voidEntryHistorical. addAttrHistoricalReplaceValue(AttributeDescription attributeDescription, CSN csn, ByteString value)Updates this entry historical information with the provided replace modification.abstract voidAttrHistorical. processLocalOrNonConflictModification(CSN csn, Modification mod)This method calculates the historical information and update the hist attribute to store the historical information for modify operation that does not conflict with previous operation.voidAttrHistoricalMultiple. processLocalOrNonConflictModification(CSN csn, Modification mod)voidAttrHistoricalSingle. processLocalOrNonConflictModification(CSN csn, Modification mod)abstract ModificationAttrHistorical. replayOperation(CSN csn, Entry modifiedEntry, Modification mod)This method will be called when replaying an operation.ModificationAttrHistoricalMultiple. replayOperation(CSN csn, Entry modifiedEntry, Modification m)ModificationAttrHistoricalSingle. replayOperation(CSN csn, Entry modifiedEntry, Modification mod)voidEntryHistorical. setEntryADDDate(CSN csn)Sets the CSN of the operation that added this entry.voidEntryHistorical. setEntryMODDNDate(CSN csn)Sets the CSN of the operation that renamed this entry. -
Uses of CSN in org.opends.server.replication.protocol
Methods in org.opends.server.replication.protocol that return CSN Modifier and Type Method Description CSNChangeTimeHeartbeatMsg. getCSN()Get a CSN with the transmitted change time.CSNOperationContext. getCSN()Gets the CSN of the Operation.static CSNOperationContext. getCSN(PluginOperation op)Get the CSN of an operation from the synchronization context attached to the provided operation.CSNUpdateMsg. getCSN()Get the CSN from the message.CSNByteArrayScanner. nextCsn()Reads the next CSN.CSNByteArrayScanner. nextCsnUtf8()Reads the next CSN that was encoded as a UTF8 string.Methods in org.opends.server.replication.protocol with parameters of type CSN Modifier and Type Method Description ByteArrayBuilderByteArrayBuilder. appendCsn(CSN csn, CSN.CsnVersion version)Append a CSN to this ByteArrayBuilder.ByteArrayBuilderByteArrayBuilder. appendCsnUtf8(CSN csn, CSN.CsnVersion version)Append a CSN to this ByteArrayBuilder by converting it to a String then encoding that string to a UTF-8 byte array.Constructors in org.opends.server.replication.protocol with parameters of type CSN Constructor Description AddContext(CSN csn, UUID entryUUID, UUID parentEntryUUID)Creates a new AddContext with the provided information.AddMsg(CSN csn, Dn dn, UUID entryUuid, UUID parentEntryUuid, byte[] encodedAttributes, byte[] encodedEclIncludes)Creates a new AddMessage.AddMsg(CSN csn, Entry entry, UUID entryUuid, UUID parentEntryUuid)Creates a new AddMessage.ChangeTimeHeartbeatMsg(CSN csn)Constructor of a Change Time Heartbeat message providing the change time value in a CSN.DeleteContext(CSN csn, UUID entryUUID)Creates a new DeleteContext with the provided information.DeleteMsg(Dn dn, CSN csn, UUID entryUUID)Creates a new delete message.DeleteMsg(CSN csn, Dn dn, UUID entryUUID, String initiatorsName, byte[] encodedEclIncludes, boolean subtreeDelete)Creates a new delete message.ModifyContext(CSN csn, UUID entryUUID)Creates a new Modify Context with the provided parameters.ModifyDnContext(CSN csn, UUID entryUUID, UUID newSuperiorEntryUUID)Creates a new ModifyDN Context with the provided parameters.ModifyDNMsg(Dn dn, CSN csn, UUID entryUUID, UUID newSuperiorEntryUUID, boolean deleteOldRdn, Dn newSuperior, Rdn newRDN)Construct a new Modify DN message (no mods).ModifyDNMsg(Dn dn, CSN csn, UUID entryUUID, UUID newSuperiorEntryUUID, boolean deleteOldRdn, Dn newSuperior, Rdn newRDN, List<Modification> mods)Construct a new Modify DN message (with mods).ModifyDNMsg(CSN csn, Dn dn, UUID entryUUID, Rdn newRdn, Dn newSuperior, UUID newSuperiorEntryUUID, boolean deleteOldRdn, byte[] encodedMods, byte[] encodedEclIncludes)Creates a new ModifyDN message.ModifyMsg(CSN csn, Dn dn, UUID entryUUID, byte[] encodedMods, byte[] encodedEclIncludes)Creates a new Modify message using the provided information.ModifyMsg(CSN csn, Dn dn, UUID entryUUID, List<Modification> mods)Creates a new Modify message using the provided information.OperationContext(CSN csn, UUID entryUUID)Create a new OperationContext.ReplicaOfflineMsg(CSN offlineCSN)Constructor of a replica offline message providing the offline timestamp in a CSN.UpdateMsg(CSN csn)Creates a new UpdateMsg with the given informations. -
Uses of CSN in org.opends.server.replication.server.changelog.api
Methods in org.opends.server.replication.server.changelog.api that return CSN Modifier and Type Method Description CSNUpdateRecord. getCsn()Returns the CSN of the message.CSNChangeNumberIndexRecord. getCSN()Getter for the replication CSN field.CSNDBCursor.CursorOptions. getDefaultCSN()Returns the default CSN.CSNRemovedReplicasStates. getLastMessageCsn(ReplicaId replica)Returns the CSN for the last LDAP message from the provided replica.CSNRemovedReplicasStates. getLastUpdateCsn(ReplicaId replica)Returns the CSN for the lastLDAPUpdateMsgfrom the provided replica.CSNReplicationDomainDB.ReplicaDbFileContent. getNewestCsn()Returns the newest CSN in the Replica DB file.CSNReplicationDomainDB.ReplicaDbFileContent. getOldestCsn()Returns the oldest CSN in the Replica DB file.Methods in org.opends.server.replication.server.changelog.api with parameters of type CSN Modifier and Type Method Description DBCursor<UpdateMsg>ReplicationDomainDB. getCursorFrom(DomainReplicaId replica, CSN startCSN, DBCursor.CursorOptions options)voidReplicationDomainDB. replicaHeartbeat(Dn baseDN, CSN heartbeatCSN)Let the DB know this replica is alive.voidChangeNumberIndexDB. resetChangeNumberTo(long newFirstCN, Dn baseDN, CSN newFirstCSN)Resets ChangeNumber index to the given number and CSN.voidRemovedReplicasStates. update(CSN lastUpdate, CSN lastMessage)Updates the removed replicas states with the provided CSNs.Constructors in org.opends.server.replication.server.changelog.api with parameters of type CSN Constructor Description ChangeNumberIndexRecord(long changeNumber, Dn baseDN, CSN csn)Builds an instance of this class.ChangeNumberIndexRecord(Dn baseDN, CSN csn)Builds an instance of this class, with changeNumber equal to 0.CursorOptions(DBCursor.PositionStrategy strategy, CSN defaultCSN)Creates options with provided positioning strategy and default CSN.ReplicaDbFileContent(CSN oldestCsn, CSN newestCsn, int numberOfUpdates, int numberOfReplicaOfflineMessages)Constructs a new ReplicaDbFileContent with the specified parameters. -
Uses of CSN in org.opends.server.replication.server.changelog.file
Methods in org.opends.server.replication.server.changelog.file with parameters of type CSN Modifier and Type Method Description voidDomainDBCursor. addReplicaDB(DomainReplicaId replicaId, CSN startCSN)Adds a replicaDB for this cursor to iterate over.DBCursor<UpdateMsg>FileChangelogDB. getCursorFrom(DomainReplicaId replica, CSN startCsn, DBCursor.CursorOptions options)static voidFileChangelogDB. migrateOfflineStateToChangelog(Path replicationDbDir, Path replicaIdDir, LogCryptoCfg cryptoCfg, CSN offlineCsn)Used by upgrade only: Append the CSN at which the server/domains was considered offline if this CSN appears to be more recent than the last message already contained in the log, otherwise the changelog is not modified.voidChangeNumberIndexer. notifyHeartbeat(Dn baseDn, CSN heartbeatCsn)Ensures the medium consistency point is updated by heartbeats.voidFileChangelogDB. replicaHeartbeat(Dn baseDN, CSN heartbeatCsn) -
Uses of CSN in org.opends.server.replication.service
Methods in org.opends.server.replication.service that return CSN Modifier and Type Method Description CSNReplicationDomain. getLastLocalChange()Returns the CSN of the last Change that was fully processed by this ReplicationDomain. -
Uses of CSN in org.opends.server.tasks
Methods in org.opends.server.tasks with parameters of type CSN Modifier and Type Method Description voidPurgeConflictsHistoricalTask. setProgressStats(CSN lastCSN, int purgeCount)Set the last CSN purged and the count of purged values in order to monitor the historical purge.
-