Uses of Class
org.opends.server.replication.common.Csn
Packages that use Csn
Package
Description
This package contains the main class of the leader based replication.
Contains classes that represent specific LDAP controls and their values.
Contains the implementation for various Directory Server plugins.
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 API for the changelog database.
This package contains a file-based log implementation for the changelog database API.
This package contains the generic of the Multi-Master replication code that works on the Directory Server side.
Contains implementations for various Directory Server tasks.
-
Uses of Csn in org.forgerock.opendj.server.leaderbasedreplication
Subclasses with type arguments of type Csn in org.forgerock.opendj.server.leaderbasedreplicationMethods in org.forgerock.opendj.server.leaderbasedreplication that return CsnModifier and TypeMethodDescriptionStreamId.asCsn()Returns this stream as csn.RegistrationToCoreExtendedRequest.csnNow()Returns the value of thecsnNowrecord component.ReplicaChangelog.csnNow()Returns a Csn representing the current time, not attached to an update.ReplicaChangelogImpl.csnNow()ReplicaClient.RegistrationToCoreRequest.csnNow()Returns the value of thecsnNowrecord component.Returns the CSN associated with the provided StreamId.ReplicaChangelog.getOldestChangeOfStream(Domain domain, StreamId streamId) Returns the oldest change of the provided stream for the given domain.ReplicaChangelogImpl.getOldestChangeOfStream(Domain domain, StreamId streamId) Methods in org.forgerock.opendj.server.leaderbasedreplication that return types with arguments of type CsnMethods in org.forgerock.opendj.server.leaderbasedreplication with parameters of type CsnModifier and TypeMethodDescriptionstatic StreamIdvoidPurge the state by deleting streams (excepting the newest for each replica) which have an older CSN than the provided CSN.voidPurges the changelog up to the provided point.voidRemoves all the changes from the changelog which have aCsnolder than the one specified.protected voidPurge the data state by deleting streams (excepting the newest for each replica) which have an older CSN than the provided CSN.voidAdds a StreamId starting with the provided CSN to the state.booleanReplicaState.putIfMoreRecent(Csn csn) Updates the current state with the provided CSN, creating the StreamId if necessary.voidReplicatedDomain.updateReplicaState(Csn csn) Update the data state with the given CSN.Constructors in org.forgerock.opendj.server.leaderbasedreplication with parameters of type CsnModifierConstructorDescriptionRegistrationToCoreExtendedRequest(Topology.ReplicaCoordinate replicaCoordinate, Domain domain, ReplicaState dataState, ReplicaState changelogState, Csn csnNow, List<Control> controls) Create a newRegistrationToCoreExtendedRequest.RegistrationToCoreRequest(Topology.ReplicaCoordinate replicaCoordinate, Domain domain, ReplicaState dataState, ReplicaState changelogState, Csn csnNow) Creates an instance of aRegistrationToCoreRequestrecord class. -
Uses of Csn in org.opends.server.controls
Methods in org.opends.server.controls that return CsnConstructors in org.opends.server.controls with parameters of type CsnModifierConstructorDescriptionReplicatedRequestControl(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 CsnModifier and TypeMethodDescriptionChangeNumberControlPlugin.CsnResponseControl.getCsn()Returns the CSN.Constructors in org.opends.server.plugins with parameters of type CsnModifierConstructorDescriptionCsnResponseControl(boolean isCritical, Csn csn) Constructs a new change number control. -
Uses of Csn in org.opends.server.replication.common
Classes in org.opends.server.replication.common that implement interfaces with type arguments of type CsnModifier and TypeClassDescriptionfinal classClass used to represent Change Sequence Numbers.final classFields in org.opends.server.replication.common declared as CsnModifier and TypeFieldDescriptionstatic final CsnCsn.MAX_VALUEThe maximum possible value for a CSN; used for comparisons and initialization, the stream id does not count.static final CsnCsn.MIN_VALUEThe minimum possible value for a CSN; used for comparisons and initialization, the stream id does not count.Methods in org.opends.server.replication.common that return CsnModifier and TypeMethodDescriptionCsnGenerator.generateCsn()Returns the generatedCsn.CsnGenerator.generateCsnV3(long streamTimeStamp, long curTime, CsnGenerator.StreamSequenceNumberGenerator streamSeqNumGen) Generate a newCsnusing the V3 format.Returns the CSN associated to the provided replication domain's baseDN and replicaId.Returns theCSNcontained in this server state which corresponds to the provided replica ID.static CsnCsn.newCsn(long streamTimeStamp, long timeStamp, int seqNum, long streamSeqNum, ReplicaId replicaId) Create a newCsn.static CsnCreate a newCsn.static CsnCsn.newCsnV1(long timeStamp, int seqNum, int replicaId) Create a newCsn.static CsnCreate a newCsn.static CsnCsn.newestCsn(long timeStamp) Returns the newest possible CSN for the given time.static CsnReturns the newest possible CSN for a replica.static CsnCsn.oldestCsn(long timeStamp) Returns the oldest possible CSN for the given time.static CsnReturns the oldest possible CSN for a replica.static CsnParses the providedCsn.toString()representation of a CSN.static CsnCsn.valueOf(ByteString bs) Decodes the providedCsn.toByteString(CsnVersion)representation of a CSN.static CsnCsn.valueOf(ByteStringReader reader) Decodes the providedCsn.toByteString(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 CsnModifier and TypeMethodDescriptionServerState.getReplicaIdToCsnMap()Returns a copy of this ServerState's content as a Map of replicaId to CSN.MultiDomainServerState.getSnapshot()Returns a snapshot of this object.ServerState.getSnapshot()Returns a snapshot of this object.ServerState.iterator()Methods in org.opends.server.replication.common with parameters of type CsnModifier and TypeMethodDescriptionvoidAdjust the lastTime of thisCsnGeneratorwith aCsnthat we have received from another server.static intCompares 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.intCompares 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.booleanTest if this object covers the provided CSN for the provided baseDN.booleanChecks 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.static booleanCsnGenerator.isSequenceBroken(Csn csn1, Csn csn2) Checks whether the sequence is broken between twoCsns.booleanRemoves the mapping to the provided CSN if it is present in this ServerState.booleanUpdate the ServerState of the provided baseDN with the replicationCsnprovided.booleanForward 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 CsnModifier and TypeMethodDescriptionHistoricalAttributeValue.csn()Returns the value of thecsnrecord component.abstract CsnAttrHistorical.getDeleteTime()Returns the last time when this attribute was deleted.AttrHistoricalMultiple.getDeleteTime()AttrHistoricalSingle.getDeleteTime()EntryHistorical.getEntryAddDate()Returns the CSN of the operation that added this entry.EntryHistorical.getEntryModDnDate()Returns the CSN of the operation that renamed this entry.AttrValueHistorical.getValueDeleteTime()Returns the last time when the value was deleted.AttrValueHistorical.getValueUpdateTime()Returns the last time when the value was updated.Methods in org.opends.server.replication.plugin with parameters of type CsnModifier and TypeMethodDescriptionabstract voidAttrHistorical.attributeDeleteTime(Csn csn) Sets the attribute delete time.voidAttrHistoricalMultiple.attributeDeleteTime(Csn csn) voidAttrHistoricalSingle.attributeDeleteTime(Csn csn) static HistoricalAttributeValueHistoricalAttributeValue.attributeModification(AttributeDescription attrDesc, HistAttrModificationKey histKey, Csn csn, ByteString attributeValue) Returns a ds-sync-hist value encoding a modification that adds/replaces with/deletes an attribute value.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.AttrHistoricalMultiple.replayOperation(Csn csn, Entry modifiedEntry, Modification m) AttrHistoricalSingle.replayOperation(Csn csn, Entry modifiedEntry, Modification mod) Constructors in org.opends.server.replication.plugin with parameters of type CsnModifierConstructorDescriptionEntryHistorical(Csn entryAddDate, Csn entryModDnDate) Constructor.HistoricalAttributeValue(AttributeDescription attributeDescription, HistoricalAttributeValue.HistOperation operation, Csn csn, HistAttrModificationKey histKey, ByteString attributeValue) Canonical constructor. -
Uses of Csn in org.opends.server.replication.protocol
Methods in org.opends.server.replication.protocol that return CsnModifier and TypeMethodDescriptionOperationContext.AddContext.csn()Returns the value of thecsnrecord component.OperationContext.csn()Returns the CSN of the Operation.OperationContext.DeleteContext.csn()Returns the value of thecsnrecord component.OperationContext.ModifyContext.csn()Returns the value of thecsnrecord component.OperationContext.ModifyDnContext.csn()Returns the value of thecsnrecord component.ChangeTimeHeartbeatMsg.getCsn()Get a CSN with the transmitted change time.static CsnOperationContext.getCsn(PluginOperation op) Get the CSN of an operation from the synchronization context attached to the provided operation.UpdateMsg.getCsn()Get the CSN from the message.ByteArrayScanner.nextCsn()Reads the next CSN.ByteArrayScanner.nextCsnUtf8()Reads the next CSN that was encoded as a UTF8 string.Methods in org.opends.server.replication.protocol with parameters of type CsnModifier and TypeMethodDescriptionByteArrayBuilder.appendCsn(Csn csn, Csn.CsnVersion version) Append a CSN to this ByteArrayBuilder.ByteArrayBuilder.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 CsnModifierConstructorDescriptionAddContext(Csn csn, UUID entryUuid, UUID parentEntryUuid) Creates an instance of aAddContextrecord class.AddMsg(Csn csn, Dn dn, UUID entryUuid, UUID parentEntryUuid, byte[] encodedAttributes, byte[] encodedEclIncludes) Creates a new AddMessage.Creates a new AddMessage.Constructor of a Change Time Heartbeat message providing the change time value in a CSN.DeleteContext(Csn csn, UUID entryUuid) Creates an instance of aDeleteContextrecord class.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 an instance of aModifyContextrecord class.ModifyDnContext(Csn csn, UUID entryUuid, UUID newSuperiorEntryUuid) Creates an instance of aModifyDnContextrecord class.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.Creates a new Modify message using the provided information.Creates a new Modify message using the provided information.ReplicaOfflineMsg(Csn offlineCsn) Constructor of a replica offline message providing the offline timestamp in a CSN.Creates a new UpdateMsg with the given information. -
Uses of Csn in org.opends.server.replication.server.changelog.api
Methods in org.opends.server.replication.server.changelog.api that return CsnModifier and TypeMethodDescriptionChangeNumberIndexRecord.csn()Returns the value of thecsnrecord component.UpdateRecord.getCsn()Returns the CSN of the message.DBCursor.CursorOptions.getDefaultCsn()Returns the default CSN.RemovedReplicasStates.getLastMessageCsn(ReplicaId replica) Returns the CSN for the last LDAP message from the provided replica.RemovedReplicasStates.getLastUpdateCsn(ReplicaId replica) Returns the CSN for the lastLdapUpdateMsgfrom the provided replica.ReplicationDomainDB.getReplicaOldestCsn(DomainReplicaId domainReplicaId) Returns the oldestCsnfor the specified replica in a replication domain.ReplicationDomainDB.ReplicaDbFileContent.newestCsn()Returns the value of thenewestCsnrecord component.ReplicationDomainDB.ReplicaDbFileContent.oldestCsn()Returns the value of theoldestCsnrecord component.Methods in org.opends.server.replication.server.changelog.api that return types with arguments of type CsnModifier and TypeMethodDescriptionReplicationDomainDB.getChangelogCursors(Dn baseDN) GeneratesDBCursorfor all streams of a given domain.ReplicationDomainDB.getStreamIdCursor(DomainReplicaId domainReplicaId, StreamId streamId) Generates aDBCursorfor a given stream of a replica.Methods in org.opends.server.replication.server.changelog.api with parameters of type CsnModifier and TypeMethodDescriptionReplicationDomainDB.getCursorFrom(DomainReplicaId replica, Csn startCsn, DBCursor.CursorOptions options) voidUpdates the removed replicas states with the provided CSNs.Constructors in org.opends.server.replication.server.changelog.api with parameters of type CsnModifierConstructorDescriptionChangeNumberIndexRecord(long changeNumber, Dn baseDn, Csn csn, MultiDomainServerState cookie) Builds an instance of this record.ChangeNumberIndexRecord(Dn baseDN, Csn csn, MultiDomainServerState cookie) Builds an instance of this record, 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) Creates an instance of aReplicaDbFileContentrecord class. -
Uses of Csn in org.opends.server.replication.server.changelog.file
Methods in org.opends.server.replication.server.changelog.file that return CsnModifier and TypeMethodDescriptionFileChangelogDB.getReplicaOldestCsn(DomainReplicaId domainReplicaId) FileChangelogDB.getStreamOldestCsn(DomainReplicaId domainReplicaId, StreamId streamId) Returns the oldest CSN for a given stream of a replica.Methods in org.opends.server.replication.server.changelog.file that return types with arguments of type CsnModifier and TypeMethodDescriptionFileChangelogDB.getChangelogCursors(Dn baseDN) ReplicationEnvironment.getOrCreateReplicaDB(DomainReplicaId domainReplicaId, GenerationId generationId) Finds or creates the log used to store changes from the replication server with the given replica id and the given baseDN.FileChangelogDB.getStreamIdCursor(DomainReplicaId replicaId, StreamId streamId) Returns a cursor for a given replicaId and streamId.Methods in org.opends.server.replication.server.changelog.file with parameters of type CsnModifier and TypeMethodDescriptionvoidDomainDBCursor.addReplicaDB(DomainReplicaId replicaId, Csn startCsn) Adds a replicaDB for this cursor to iterate over.FileChangelogDB.getCursorFrom(DomainReplicaId replica, Csn startCsn, DBCursor.CursorOptions options) static voidFileChangelogDB.migrateOfflineStateToChangelog(Path replicationDbDir, Path replicaIdDir, LogFileCfg logFileCfg, 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.voidPurges the changelog up to the provided CSN. -
Uses of Csn in org.opends.server.replication.service
Methods in org.opends.server.replication.service that return CsnModifier and TypeMethodDescriptionReplicationDomain.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 CsnModifier and TypeMethodDescriptionvoidPurgeConflictsHistoricalTask.setProgressStats(Csn lastCsn, int purgeCount) Set the last CSN purged and the count of purged values in order to monitor the historical purge.