Uses of Annotation Interface
com.tailf.dp.annotations.DBCallback
Package
Description
Data provider API package, for implementation of callbacks for validations, actions, transformation etc.
-
Uses of DBCallback in com.tailf.dp
Modifier and TypeMethodDescriptionvoid
DpDbCallback.activateCheckpointRunning
(DpDbContext dbx) This method should rollback running to the checkpoint created by addCheckpointRunning().void
DpDbCallback.addCheckpointRunning
(DpDbContext dbx) This method should be implemented only when ConfD owns the candidate, and confirmed-commit is enabled.void
DpDbCallback.candidateChkNotModified
(DpDbContext dbx) This method should check to see if the candidate has been modified or not.void
DpDbCallback.candidateCommit
(DpDbContext dbx, int timeout) This method should copy the candidate DB into the running DB.void
DpDbCallback.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.void
DpDbCallback.candidateReset
(DpDbContext dbx) This method is intended to copy the current running configuration into the candidate.void
DpDbCallback.candidateRollbackRunning
(DpDbContext dbx) If for some reason, apart from a timeout, something goes wrong, we get invoked in the candidateRollbackRunning() method.void
DpDbCallback.candidateValidate
(DpDbContext dbx) This callback is optional.void
DpDbCallback.copyRunningToStartup
(DpDbContext dbx) Copies the 'running' database to 'startup'.void
DpDbCallback.delCheckpointRunning
(DpDbContext dbx) This method should delete a checkpoint created by addCheckPointRunning().void
DpDbCallback.deleteConfig
(DpDbContext dbx, int dbname) Will be called for 'startup' or 'candidate' only.void
DpDbCallback.lock
(DpDbContext dbx, int dbname) This should only be implemented if our database supports locking from other sources than through ConfD.void
DpDbCallback.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.void
DpDbCallback.runningChkNotModified
(DpDbContext dbx) This function should check to see if running has been modified or not.void
DpDbCallback.unlock
(DpDbContext dbx, int dbname) Unlocks the database.void
DpDbCallback.unlockPartial
(DpDbContext dbx, int dbname, int lockid) Unlocks the partial locks that where previously locked withDpDbCallback.lockPartial(DpDbContext,int,int,ConfObject[][])
.