Uses of Annotation Interface
com.tailf.dp.annotations.DBCallback
Packages that use DBCallback
Package
Description
Data provider API package, for implementation of callbacks for validations,
actions, transformation etc.
-
Uses of DBCallback in com.tailf.dp
Methods in com.tailf.dp with annotations of type DBCallbackModifier and TypeMethodDescriptionvoidDpDbCallback.activateCheckpointRunning(DpDbContext dbx) This method should rollback running to the checkpoint created by addCheckpointRunning().voidDpDbCallback.addCheckpointRunning(DpDbContext dbx) This method should be implemented only when ConfD owns the candidate, and confirmed-commit is enabled.voidDpDbCallback.candidateChkNotModified(DpDbContext dbx) This method should check to see if the candidate has been modified or not.voidDpDbCallback.candidateCommit(DpDbContext dbx, int timeout) This method should copy the candidate DB into the running DB.voidDpDbCallback.candidateConfirmingCommit(DpDbContext dbx) If the timeout in the candidate_commit() method is != 0, we will be either invoked here or in the candidateRollbackRunning() method within timeout seconds.voidDpDbCallback.candidateReset(DpDbContext dbx) This method is intended to copy the current running configuration into the candidate.voidDpDbCallback.candidateRollbackRunning(DpDbContext dbx) If for some reason, apart from a timeout, something goes wrong, we get invoked in the candidateRollbackRunning() method.voidDpDbCallback.candidateValidate(DpDbContext dbx) This callback is optional.voidDpDbCallback.copyRunningToStartup(DpDbContext dbx) Copies the 'running' database to 'startup'.voidDpDbCallback.delCheckpointRunning(DpDbContext dbx) This method should delete a checkpoint created by addCheckPointRunning().voidDpDbCallback.deleteConfig(DpDbContext dbx, int dbname) Will be called for 'startup' or 'candidate' only.voidDpDbCallback.lock(DpDbContext dbx, int dbname) This should only be implemented if our database supports locking from other sources than through ConfD.voidDpDbCallback.lockPartial(DpDbContext dbx, int dbname, int lockid, ConfObject[][] paths) This should only be implemented if our database supports locking from other sources than through ConfD, seeDpDbCallback.lock(DpDbContext,int)above.voidDpDbCallback.runningChkNotModified(DpDbContext dbx) This function should check to see if running has been modified or not.voidDpDbCallback.unlock(DpDbContext dbx, int dbname) Unlocks the database.voidDpDbCallback.unlockPartial(DpDbContext dbx, int dbname, int lockid) Unlocks the partial locks that where previously locked withDpDbCallback.lockPartial(DpDbContext,int,int,ConfObject[][]).