Uses of Class
com.tailf.dp.DpTrans
Packages that use DpTrans
Package
Description
Data provider API package, for implementation of callbacks for validations,
actions, transformation etc.
Annotations and proxy helper classes for callbacks.
Service callback specific context and utilities.
-
Uses of DpTrans in com.tailf.dp
Subclasses of DpTrans in com.tailf.dpModifier and TypeClassDescriptionclassThe action transaction context.classThe validate transaction context.Methods in com.tailf.dp with parameters of type DpTransModifier and TypeMethodDescriptionvoidThis callback is responsible for undoing whatever was done in the prepare() phase.voidThis callback is responsible for undoing whatever was done in the prepare() phase.intDpDataCallback.create(DpTrans trans, ConfObject[] kp) This callback creates a new presence container, list entry or empty leaf.booleanDpDataCallback.existsOptional(DpTrans trans, ConfObject[] kp) If we have presence containers or optional leafs (empty leafs) without a type, we cannot use the getElem() callback to read such a leaf - since the element is typeless.DpDataFindNextIterator.findNext(DpTrans trans, ConfObject[] kp, ConfFindNextType type, ConfKey key) This method is called by Dp when a FIND_NEXT or a FIND_NEXT_OBJECT call is issued.voidThis callback is responsible for releasing resources allocated in the init() phase.intDpDataCallback.getAttrs(DpTrans trans, ConfObject[] kp, List<ConfAttributeValue> attrList) This callback only needs to be implemented for callpoints specified for configuration data, and only if attributes are enabled in the server configuration (/confdConfig/enableAttributes set to true).DpDataCallback.getCase(DpTrans trans, ConfObject[] kp, ConfObject[] choice) This callback method needs to return the currently chosen 'case' for a 'choice' construct.DpDataCallback.getElem(DpTrans trans, ConfObject[] kp) This callback method needs to return a specific leaf value.DpDataCallback.getIteratorKey(DpTrans trans, ConfObject[] kp, Object obj) The following callback is used with the iterators above.DpDataCallback.getIteratorObject(DpTrans trans, ConfObject[] kp, Object obj) The following callback is used with the iterators above.List<ConfObject[]>DpDataCallback.getIteratorObjectList(DpTrans trans, ConfObject[] kp, Object obj, Iterator<? extends Object> iterator) This callback is used in place of getIteratorObject when aListof objects is requested rather than a single instance.DpDataCallback.getObject(DpTrans trans, ConfObject[] kp) The purpose of the callback is to return an array of values, corresponding to a complete list entry in one swoop.Dp.getServicePointMaapi(DpTrans trans) voidThe callback must indicate which WORKER_SOCKET should be used for future communications in this transaction.voidDpDataCallback.iterator(DpTrans trans, ConfObject[] kp) This callback makes it possible for ConfD/NCS to traverse a set of list entries.DpDataCallback.iterator(DpTrans trans, ConfObject[] kp, ConfFindNextType type, ConfKey key) This iterator method is a specialization ofDpDataCallback.iterator(DpTrans, ConfObject[])in that it returns an extended iterator i.e.DpDataCallback.iterator(DpTrans trans, ConfObject[] kp, ConfFindNextType type, ConfKey key, DpListFilter filter) Variant of the DpDataFindNextIterator-returning iterator above that may receive a DpListFilter instance which can be used to filter the list.DpDataCallback.iterator(DpTrans trans, ConfObject[] kp, DpListFilter filter) Variant of iterator that may receive a DpListFilter which can be used to filter the list.intDpDataCallback.moveAfter(DpTrans trans, ConfObject[] kp, ConfKey prevkey) This callback only needs to be implemented if we provide configuration data that has YANG lists with a ordered-by user statement.intDpDataCallback.numInstances(DpTrans trans, ConfObject[] kp) This callback can optionally be implemented.voidIf we have multiple sources of data it is highly recommended that the callback is implemented.intDpDataCallback.remove(DpTrans trans, ConfObject[] kp) This callback is used to remove a presence container, list entry or empty leaf and all its sub elements.intDpDataCallback.setAttr(DpTrans trans, ConfObject[] kp, ConfAttributeValue attr) This callback also only needs to be implemented for callpoints specified for configuration data, and only if attributes are enabled in the server configuration (/confdConfig/enableAttributes set to true).intDpDataCallback.setCase(DpTrans trans, ConfObject[] kp, ConfObject[] choice, ConfTag caseval) This callback method sets the currently chosen 'case' for a 'choice' construct.intDpDataCallback.setElem(DpTrans trans, ConfObject[] kp, ConfValue newval) This callback writes a data leaf.voidvoidThis callback is invoked when the validation phase of the transaction starts.voidDpTransCallback.transUnlock(DpTrans trans) This callback is called when the validation of the transaction failed, or the validation is triggered explicitly (i.e.voidDpValpointCallback.validate(DpTrans trans, ConfObject[] kp, ConfValue newval) The validate() callback should validate the values and throw aDpCallbackExceptionif the validation fails.intDpDataCallback.writeAll(DpTrans trans, ConfObject[] kp) This callback method sets the currently chosen 'case' for a 'choice' construct.voidDpTransCallback.writeStart(DpTrans trans) This callback is invoked when the validation succeeded and the write phase of the transaction starts. -
Uses of DpTrans in com.tailf.dp.annotations
Methods in com.tailf.dp.annotations with parameters of type DpTransModifier and TypeMethodDescriptionvoidvoidintDataCallbackProxy.create(DpTrans trans, ConfObject[] kp) booleanDataCallbackProxy.existsOptional(DpTrans trans, ConfObject[] kp) voidintDataCallbackProxy.getAttrs(DpTrans trans, ConfObject[] kp, List<ConfAttributeValue> attrList) DataCallbackProxy.getCase(DpTrans trans, ConfObject[] kp, ConfObject[] choice) DataCallbackProxy.getElem(DpTrans trans, ConfObject[] kp) DataCallbackProxy.getIteratorKey(DpTrans trans, ConfObject[] kp, Object obj) DataCallbackProxy.getIteratorObject(DpTrans trans, ConfObject[] kp, Object obj) List<ConfObject[]>DataCallbackProxy.getIteratorObjectList(DpTrans trans, ConfObject[] kp, Object obj, Iterator<? extends Object> iterator) DataCallbackProxy.getObject(DpTrans trans, ConfObject[] kp) voidvoidDataCallbackProxy.iterator(DpTrans trans, ConfObject[] kp) DataCallbackProxy.iterator(DpTrans trans, ConfObject[] kp, ConfFindNextType type, ConfKey key) DataCallbackProxy.iterator(DpTrans trans, ConfObject[] kp, ConfFindNextType type, ConfKey key, DpListFilter filter) DataCallbackProxy.iterator(DpTrans trans, ConfObject[] kp, DpListFilter filter) intDataCallbackProxy.moveAfter(DpTrans trans, ConfObject[] kp, ConfKey prevkey) intDataCallbackProxy.numInstances(DpTrans trans, ConfObject[] kp) voidintDataCallbackProxy.remove(DpTrans trans, ConfObject[] kp) intDataCallbackProxy.setAttr(DpTrans trans, ConfObject[] kp, ConfAttributeValue attr) intDataCallbackProxy.setCase(DpTrans trans, ConfObject[] kp, ConfObject[] choice, ConfTag caseval) intDataCallbackProxy.setElem(DpTrans trans, ConfObject[] kp, ConfValue newval) voidvoidvoidTransCallbackProxy.transUnlock(DpTrans trans) voidValidateCallbackProxy.validate(DpTrans trans, ConfObject[] kp, ConfValue newval) intDataCallbackProxy.writeAll(DpTrans trans, ConfObject[] kp) voidTransCallbackProxy.writeStart(DpTrans trans) -
Uses of DpTrans in com.tailf.dp.services
Methods in com.tailf.dp.services that return DpTransConstructors in com.tailf.dp.services with parameters of type DpTransModifierConstructorDescriptionNanoServiceContextImpl(DpTrans dpTrans, Dp dp, ConfEObject eObject, ServiceOperationType operation) Internally called constructor to create a ServiceContextServiceContextImpl(DpTrans dpTrans, Dp dp, ConfEObject eObject, ServiceOperationType operation) Internally called constructor to create a ServiceContextServiceModificationContextImpl(DpTrans dpTrans, Dp dp, ConfEObject eObject) Internally used constructor