Package | Description |
---|---|
com.tailf.dp |
Data provider API package, for implementation of callbacks for validations, actions, transformation etc.
|
com.tailf.dp.annotations |
Annotations and proxy helper classes for callbacks.
|
Modifier and Type | Method and Description |
---|---|
void |
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, see
DpDbCallback.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 with
DpDbCallback.lockPartial(DpDbContext,int,int,ConfObject[][]) . |
Modifier and Type | Method and Description |
---|---|
void |
DBCallbackProxy.activateCheckpointRunning(DpDbContext dbx) |
void |
DBCallbackProxy.addCheckpointRunning(DpDbContext dbx) |
void |
DBCallbackProxy.candidateChkNotModified(DpDbContext dbx) |
void |
DBCallbackProxy.candidateCommit(DpDbContext dbx,
int timeout) |
void |
DBCallbackProxy.candidateConfirmingCommit(DpDbContext dbx) |
void |
DBCallbackProxy.candidateReset(DpDbContext dbx) |
void |
DBCallbackProxy.candidateRollbackRunning(DpDbContext dbx) |
void |
DBCallbackProxy.candidateValidate(DpDbContext dbx) |
void |
DBCallbackProxy.copyRunningToStartup(DpDbContext dbx) |
void |
DBCallbackProxy.delCheckpointRunning(DpDbContext dbx) |
void |
DBCallbackProxy.deleteConfig(DpDbContext dbx,
int dbname) |
void |
DBCallbackProxy.lock(DpDbContext dbx,
int dbname) |
void |
DBCallbackProxy.lockPartial(DpDbContext dbx,
int dbname,
int lockid,
ConfObject[][] paths) |
void |
DBCallbackProxy.runningChkNotModified(DpDbContext dbx) |
void |
DBCallbackProxy.unlock(DpDbContext dbx,
int dbname) |
void |
DBCallbackProxy.unlockPartial(DpDbContext dbx,
int dbname,
int lockid) |