Uses of Class
org.opends.server.replication.server.changelog.api.ChangelogException
Packages that use ChangelogException
Package
Description
Contains various Directory Server backend implementations.
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 a file-based log implementation for the changelog database API.
-
Uses of ChangelogException in org.opends.server.backends
Methods in org.opends.server.backends that throw ChangelogExceptionModifier and TypeMethodDescriptionvoidChangelogBackend.notifyChangeNumberEntryAdded(Dn baseDN, long changeNumber, String cookie, LDAPUpdateMsg updateMsg) Notifies persistent searches of this backend that a new change number entry was added to it.voidChangelogBackend.notifyCookieEntryAdded(Dn baseDN, LDAPUpdateMsg updateMsg) Notifies persistent searches of this backend that a new cookie entry was added to it.static voidChangelogBackend.updateCookieToMediumConsistencyPoint(MultiDomainServerState cookie, ECLMultiDomainDBCursor cursor, ChangeNumberIndexRecord cnIndexRecord) Rebuilds the changelogcookie starting at the newest change number index record. -
Uses of ChangelogException in org.opends.server.replication.server
Methods in org.opends.server.replication.server that throw ChangelogExceptionModifier and TypeMethodDescriptionvoidReplicationServerDomain.put(UpdateMsg updateMsg, org.opends.server.replication.server.PeerServer sourceServer) Processes an update message received from a peer server, updating the server state and publishing the message to the changelog. -
Uses of ChangelogException in org.opends.server.replication.server.changelog.api
Subclasses of ChangelogException in org.opends.server.replication.server.changelog.apiModifier and TypeClassDescriptionclassThis exception is thrown when a cursor that has been aborted is used.static final classThis exception is thrown when the Log on which a cursor is operating has been closed (shutdown) OR cleared (reset generation-id).static final classThis exception is thrown when a cursor is operating on a log file which has been purged because it's too old in regard of the configured "purge delay".final classThis exception is thrown when a replica DB is fully purged by deleting all log files, invalidating all open cursors on them.Methods in org.opends.server.replication.server.changelog.api that throw ChangelogExceptionModifier and TypeMethodDescriptionlongChangeNumberIndexDB.addRecord(ChangeNumberIndexRecord record) Add an update to the list of messages that must be saved to this DB managed by this DB and return the changeNumber associated to this record.ChangeNumberIndexDB.getCursorFrom(long startChangeNumber) Generate a newDBCursorthat allows to browse the db managed by this object and starting at the position defined by a given changeNumber.ReplicationDomainDB.getCursorFrom(Dn baseDN, ServerState startState, DBCursor.CursorOptions options) Generates aDBCursoracross all the replicaDBs for the specified replication domain starting before, at or after the providedServerStatefor each replicaDB, depending on the provided matching and positioning strategies.ReplicationDomainDB.getCursorFrom(MultiDomainServerState startState, DBCursor.CursorOptions options) Generates aDBCursoracross all the domains starting before, at or after the providedMultiDomainServerStatefor each domain, depending on the provided matching and positioning strategies.ReplicationDomainDB.getCursorFrom(MultiDomainServerState startState, DBCursor.CursorOptions options, Set<Dn> excludedDomainDns) Generates aDBCursoracross all the domains starting before, at or after the providedMultiDomainServerStatefor each domain, excluding a provided set of domain DNs.ReplicationDomainDB.getCursorFrom(DomainReplicaId replica, CSN startCSN, DBCursor.CursorOptions options) longChangelogDB.getNewestChangeNumber()Returns the newest changelog change number.ChangeNumberIndexDB.getNewestRecord()Get the newest record stored in this DB.longChangelogDB.getOldestChangeNumber()Returns the oldest changelog change number.ChangeNumberIndexDB.getOldestRecord()Get the oldest record stored in this DB.ReplicationDomainDB.getReplicaDbDescription(DomainReplicaId replica) Returns a textual description of the contents of the changelog of the provided replica and domain.voidChangelogDB.initializeDB()Initializes the replication database by reading its previous state and building the relevant ReplicaDBs according to the previous state.booleanDBCursor.next()Skip to the next record of the database.booleanReplicationDomainDB.publishUpdateMsg(Dn baseDN, UpdateMsg updateMsg) Publishes the provided change to the changelog DB for the specified replica id and replication domain.voidChangelogDB.removeDB()Removes the changelog database directory.voidReplicationDomainDB.removeDomain(Dn baseDN) Removes all the data relating to the specified replication domain and shutdown all its replica databases.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.voidChangelogDB.shutdownDB()Shutdown the replication database. -
Uses of ChangelogException in org.opends.server.replication.server.changelog.file
Methods in org.opends.server.replication.server.changelog.file that throw ChangelogExceptionModifier and TypeMethodDescriptionvoidFileChangelogDB.clearDB()Clears all records from the changelog (does not remove the changelog itself).voidReplicationEnvironment.clearDomainStateAndWriteGenId(Dn domainDn, GenerationId generationId) Clears the domain state of the provided domain DN, and rewrite its generation id file with the provided generation id.longFileChangelogDB.getNewestChangeNumber()longFileChangelogDB.getOldestChangeNumber()FileChangelogDB.getReplicaDbDescription(DomainReplicaId replica) protected voidDomainDBCursor.incorporateNewCursors()protected voidMultiDomainDBCursor.incorporateNewCursors()voidFileChangelogDB.initializeDB()static voidFileChangelogDB.migrateEncryptedHeadLogFile(Path headLogFilePath, LogCryptoCfg cryptoCfg) Used by upgrade only: Rewrite the head log file to take confidentiality settings into account.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.static ReplicationEnvironmentReplicationEnvironment.newReplicationEnvironment(Path rootPath, ReplicationServerId replicationServerId, LogCryptoCfg cryptoCfg, Clock clock) Creates the replication environment that can modify the file system.booleanECLMultiDomainDBCursor.next()booleanFileChangelogDB.publishUpdateMsg(Dn baseDN, UpdateMsg updateMsg) ReplicationEnvironment.readDomainsState(Path replicationRootPath) Returns the content of the domains state file.voidFileChangelogDB.removeDomain(Dn baseDN) static voidFileChangelogDB.renameHeadLogFileToUseOldestKey(Path headLogFilePath, LogCryptoCfg cryptoCfg) Renames thehead.logfiles to a name using the oldest key in the file.