Package com.tailf.conf
Interface ConfIterate
- All Known Subinterfaces:
CdbDiffIterate,MaapiDiffIterate,MaapiIterate
- All Known Implementing Classes:
NavuContainer,NavuListEntry
public interface ConfIterate
The subinterfaces to this interfaces is used as parameter to various
diffIterate methods.
CDB API:
CdbSubscription.diffIterate(int,CdbDiffIterate),
CdbSubscription#diffIterate(int,CdbDiffIterate, EnumSet,Object),
CdbSubscription#CLIdiffIterate(int,CdbCLIDiffIterate),
CdbSubscription#CLIdiffIterate(int,CdbCLIDiffIterate,
DiffIterateFlags,Object}
MAAPI:
Maapi.diffIterate(int,MaapiDiffIterate,Object,String,Object...)
The implementation of this interface is passed to the above various methods and that will go through the set of changes and call the the implementation method for each change.
The implementation methods of have the common parameters:
- Keypath - uniquely identifies which element that
is affected and is a reverted array of
ConfObjectwhit each element asConfTagorConfKey. - Operation flag - uniquely indicates the type of change,
MOP_CREATED,MOP_DELETEDorMOP_MODIFIED. If the node is a leaf node, operation flag is one ofMOP_DELETEDorMOP_VALUE_SET - New value - newly set value for a leaf nodes
- Old value - old value if available
The implementation methods of have the common return values:
- Stop -
ITER_STOPno more iteration is done. - Recursive -
ITER_RECURSEiteration continues with all children to the node. - Continue -
ITER_CONTINUEiteration ignores the children to the node (if any), and continues with the node's sibling