Uses of Class
org.opends.server.replication.server.changelog.api.ChangelogException
-
Packages that use ChangelogException Package Description org.opends.server.backends Contains various Directory Server backend implementations.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. -
-
Uses of ChangelogException in org.opends.server.backends
Methods in org.opends.server.backends that throw ChangelogException Modifier and Type Method Description void
ChangelogBackend. 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.void
ChangelogBackend. notifyCookieEntryAdded(Dn baseDN, LDAPUpdateMsg updateMsg)
Notifies persistent searches of this backend that a new cookie entry was added to it.static void
ChangelogBackend. 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.changelog.api
Subclasses of ChangelogException in org.opends.server.replication.server.changelog.api Modifier and Type Class Description class
AbortedChangelogCursorException
This exception is thrown when a cursor that has been aborted is used.class
PurgedReplicaDbException
This 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 ChangelogException Modifier and Type Method Description long
ChangeNumberIndexDB. 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.DBCursor<ChangeNumberIndexRecord>
ChangeNumberIndexDB. getCursorFrom(long startChangeNumber)
Generate a newDBCursor
that allows to browse the db managed by this object and starting at the position defined by a given changeNumber.DBCursor<UpdateMsg>
ReplicationDomainDB. getCursorFrom(Dn baseDN, ServerState startState, DBCursor.CursorOptions options)
Generates aDBCursor
across all the replicaDBs for the specified replication domain starting before, at or after the providedServerState
for each replicaDB, depending on the provided matching and positioning strategies.MultiDomainDBCursor
ReplicationDomainDB. getCursorFrom(MultiDomainServerState startState, DBCursor.CursorOptions options)
Generates aDBCursor
across all the domains starting before, at or after the providedMultiDomainServerState
for each domain, depending on the provided matching and positioning strategies.MultiDomainDBCursor
ReplicationDomainDB. getCursorFrom(MultiDomainServerState startState, DBCursor.CursorOptions options, Set<Dn> excludedDomainDns)
Generates aDBCursor
across all the domains starting before, at or after the providedMultiDomainServerState
for each domain, excluding a provided set of domain DNs.DBCursor<UpdateMsg>
ReplicationDomainDB. getCursorFrom(DomainReplicaId replica, CSN startCSN, DBCursor.CursorOptions options)
ChangeNumberIndexRecord
ChangeNumberIndexDB. getNewestRecord()
Get the newest record stored in this DB.ChangeNumberIndexRecord
ChangeNumberIndexDB. getOldestRecord()
Get the oldest record stored in this DB.boolean
DBCursor. next()
Skip to the next record of the database.boolean
ReplicationDomainDB. publishUpdateMsg(Dn baseDN, UpdateMsg updateMsg)
Publishes the provided change to the changelog DB for the specified replica id and replication domain.void
ChangelogDB. removeDB()
Removes the changelog database directory.void
ReplicationDomainDB. removeDomain(Dn baseDN)
Removes all the data relating to the specified replication domain and shutdown all its replica databases.void
ReplicationDomainDB. replicaHeartbeat(Dn baseDN, CSN heartbeatCSN)
Let the DB know this replica is alive.void
ChangeNumberIndexDB. resetChangeNumberTo(long newFirstCN, Dn baseDN, CSN newFirstCSN)
Resets ChangeNumber index to the given number and CSN.void
ChangelogDB. setComputeChangeNumber(boolean computeChangeNumber)
Sets whether the replication database must compute change numbers for replicated changes.void
ChangelogDB. 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 ChangelogException Modifier and Type Method Description void
FileChangelogDB. clearDB()
Clears all records from the changelog (does not remove the changelog itself).protected void
DomainDBCursor. incorporateNewCursors()
protected void
MultiDomainDBCursor. incorporateNewCursors()
static void
FileChangelogDB. migrateEncryptedHeadLogFile(Path headLogFilePath, LogCryptoCfg cryptoCfg)
Used by upgrade only: Rewrite the head log file to take confidentiality settings into account.static void
FileChangelogDB. 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.boolean
ECLMultiDomainDBCursor. next()
boolean
FileChangelogDB. publishUpdateMsg(Dn baseDN, UpdateMsg updateMsg)
void
FileChangelogDB. removeDomain(Dn baseDN)
static void
FileChangelogDB. renameHeadLogFileToUseOldestKey(Path headLogFilePath, LogCryptoCfg cryptoCfg)
Renames thehead.log
files to a name using the oldest key in the file.
-