Uses of Class
com.tailf.navu.NavuException
Packages that use NavuException
Package
Description
NAVU (Navigation Utilities) is an API which provides increased
accessibility to the ConfD/NCS populated data model tree:
NAVU-Tree.
Utility package for traversing the NAVU tree (or a subset thereof)
using the NAVU API.
NCS Java machine management and control of Services, Neds,
callbacks and Applications
The Alarm Manager consumer package provides support for subscription to
alarms in the NCS Alarm list.
The Alarm Manager producer package provides support for injection of
alarms into the NCS Alarm list.
-
Uses of NavuException in com.tailf.navu
Subclasses of NavuException in com.tailf.navuModifier and TypeClassDescriptionclassclassclassclassMethods in com.tailf.navu that throw NavuExceptionModifier and TypeMethodDescriptionReturns a reference to a subordinateactionwith the hash valuekey.Returns a reference to a subordinateactionwith the namekey.voidNavuContext.applyClearTrans()This method applies any changes in this transaction (Commit) usingMaapi.applyTrans(int, boolean).voidNavuContext.applyReplaceTrans()This method applies (commit) and finish the transaction usingMaapi.applyTrans(int, boolean)andMaapi.finishTrans(int).voidNavuContext.attachRunningTrans(int th) Attach an existing transaction towards theConf.DB_RUNNINGdatabase to be used in the context.NavuAction.call()Issues an action with empty parametersNavuAction.call(ConfXMLParam[] params) Issues an action call with given parametersIssues an action call with given parameterIllegalParentNavuNodeException.children()NavuAction.children()Return the children of this node.NavuContainer.children()Returns a collection containing the children of this container.NavuList.children()Returns all elements contained by the list node.NavuNode.children()Returns a collection containing the children of this node.NoSuchNavuNodeException.children()Returns a reference to a subordinatechoicewith the namename.intNavuContext.clearTrans()Clears the internal transaction defined byNavuContext.startRunningTrans(int)orNavuContext.startOperationalTrans(int)The previous transaction id if any is returned but left unattended.NavuContainer.container(ConfNamespace ns, String containerName) Returns a reference to a subordinatecontainerwith the namecontainerName, belonging to the namespacens.Returns a reference to a subordinatecontainerwith the hash valuekey.Returns a reference to a subordinatecontainerwith the namekey.NavuNode.container(ConfNamespace ns, String containerName) Returns a reference to a subordinatecontainerwith the namecontainerName, belonging to the namespacens.Returns a reference to a subordinatecontainerwith the hash valuekey.Returns a reference to a subordinatecontainerwith the namekey.booleanNavuContainer.containsNode(NavuNode node) Checks if the given node is a direct child of this container according to the schema.booleanNavuContainer.containsNode(String nodeName) Checks if there is a child node in the schema with given name.booleanNavuLeafList.containsNode(ConfValue elem) Returns true if and only if thisNavuLeafListcontains this element.booleanNavuLeafList.containsNode(String elemStr) Returns true if and only if thisNavuLeafListcontains this element.booleanNavuList.containsNode(ConfKey key) Returns true if and only if thisNavuListcontains aNavuListEntrywhereNavuListEntry.getKey()equalsthe specifiedkey.booleanNavuList.containsNode(String keyStr) Returnstrueif thisNavuListcontains a mapping for the specified string representation of a key.booleanNavuList.containsNode(String[] keyArr) Returnstrueif thisNavuListcontains a mapping for the specified string representation of a key.NavuContainer.create()Creates an optional container.voidNavuLeaf.create()Create an empty leaf node.voidCreates leaf-list entry.voidCreates leaf-list entry.Create and return a new list element in thisNavuList.NavuList.create(ConfObject key) Convenience variant ofNavuList.create(ConfKey)accepting aConfObjectas the (single element) key.Convenience variant ofNavuList.create(ConfKey)accepting a string as the (single element) key.Convenience variant ofNavuList.create(ConfKey)accepting a string array as the key.NavuContainer.delete()Deletes an optional container.NavuLeaf.delete()Deletes a leaf.voidDeletes an entry from the leaf-list.voidDeletes an entry from the leaf-list.voidDeletes an element from the list.voidDeletes an element from the list.voidDeletes an element from the list.NavuListEntry.delete()Deletes this entry from the NavuList it contains returns this NavuListEntry as NavuContainer.voidNavuList.deleteAll()Deletes all element from the list.NavuLeaf.deref()Derefs a leafref and returns the referenced objectsvoidNavuContext.detachRunningTrans()For an context with an attached transaction usingNavuContext.attachRunningTrans(int)this method will detach the transaction from the NavuContext maapi instanceReturns a list element according to the given key.Returns a list element according to the given key.Returns a list element according to the given array of keys.NavuLeafList.elements()Returns a copy of elements contained by the leaf-list node.NavuList.elements()Returns a shallow copy of all elements contained by the list node.NavuAction.encodeValues()NavuContainer.encodeValues()NavuLeaf.encodeValues()NavuList.encodeValues()abstract List<ConfXMLParam>NavuNode.encodeValues()Encodes the sub-tree including the currentNavuNodeas the topmostNavuNodeas aConfXMLParamarray.NavuAction.encodeXML()NavuContainer.encodeXML()NavuLeaf.encodeXML()NavuList.encodeXML()abstract List<ConfXMLParam>NavuNode.encodeXML()Encodes the sub-tree including the currentNavuNodeas the topmostNavuNodeas aConfXMLParamarray.NavuContainer.entrySet()Returns a set of value-pairs.NavuList.entrySet()Returns a set of entries with element key and element.booleanNavuAction.exists()booleanNavuContainer.exists()Verifies the existence of container.booleanNavuLeaf.exists()Tests for the existence of the leaf node.booleanNavuList.exists()Tests for the existence of the List node in the instance tree.abstract booleanNavuNode.exists()Generic exists test for Navu navigational elementsNavuContainer.findChanges(NavuContext delContext, Integer[] criteria) Analyzes what changes has been done within this transaction.voidNavuContext.finishClearTrans()Finishes current trans usingMaapi.finishTrans(int)and clears the trans from this NavuContext.Returns a subordinate node with the namenodeName.NavuAction.getChanges()NavuAction.getChanges(boolean emitSubtree) NavuAction.getChanges(boolean emitSubtree, DiffIterateOperFlag... forOps) NavuAction.getChanges(NavuContext delcontext) NavuAction.getChanges(NavuContext delcontext, boolean emitSubtree) NavuAction.getChanges(NavuContext delContext, boolean emitSubtree, DiffIterateOperFlag... forOps) NavuNode.getChanges(NavuContext delContext) Return the descendantNavuNode's (including this element) that has been affected by changes to theMAAPItransaction.NavuNode.getChanges(NavuContext delContext, boolean emitSubTree) Return the descendantNavuNodeincluding thisNavuNodethat has been affected by the current MAAPI transaction.NavuNode.getChanges(NavuContext delContext, boolean emitSubTree, DiffIterateOperFlag... forOps) Return the descendantNavuNodeincluding thisNavuNodethat has been affected by the current MAAPI transaction.NavuAction.getNavuNode(ConfPath path) NavuNode.getNavuNode(ConfPath path) Retrieve a NavuNode based on the given absolute or relativepath.NavuContainer.getSelectCaseAsNavuChoice(String choice) Returns a collection of the "toplevel" choice elements of the a current selected case.NavuContainer.getSelectCaseAsNavuNode(String choice) Returns a collection of the top-level node elements of the currently selected case of the specifiedchoice.NavuContainer.getSelectedCase(String choice) Returns the selected cases of a given choice.intNavuContainer.getUserSession()Get the current Maapi user session if this container context uses Maapi.NavuAction.getValues(ConfXMLParam[] param) Invokes or call an action defined in the data model (seetailf_yang_extensions(5)).Invokes or call an action defined in the data model (seetailf_yang_extensions(5)).NavuNode.getValues(ConfXMLParam[] params) Read an arbitrary set of sub-elements from thisNavuNode.Read an arbitrary set of sub-elements of a container or list entry.booleanNavuLeaf.idrefDerivedOrSelf(ConfIdentityRef base) Inserts an element into a list using Maapi.insert().booleanNavuContainer.isEmpty()Checks if the container has any members.booleanNavuLeafList.isEmpty()Checks if there are any elements in the leaf-list.booleanNavuList.isEmpty()Checks if there are any elements in the list.NavuContainer.keySet()Returns a set of nodeNames.NavuList.keySet()Returns a Set containing all of the keys for this list.NavuContainer.leaf(ConfNamespace ns, String leafName) Returns a reference to a subordinateleafwith the nameleafName, belonging to the namespacens.Returns a reference to a subordinateleafwith the hash valuekey.Returns a reference to a subordinateleafwith the namekey.NavuNode.leaf(ConfNamespace ns, String leafName) Returns a reference to a subordinateleafwith the nameleafName, belonging to the namespacens.Returns a reference to a subordinateleafwith the hash valuekey.Returns a reference to a subordinateleafwith the namekey.NavuContainer.leafList(ConfNamespace ns, String leafListName) Returns a reference to a subordinateleaf-listwith the nameleafListName, belonging to the namespacens.Returns a reference to a subordinateleaf-listwith the hash valuekey.Returns a reference to a subordinateleaf-listwith the namekey.NavuNode.leafList(ConfNamespace ns, String leafListName) Returns a reference to a subordinateleaf-listwith the nameleafListName, belonging to the namespacens.Returns a reference to a subordinateleaf-listwith the hash valuekey.Returns a reference to a subordinateleaf-listwith the namekey.NavuContainer.list(ConfNamespace ns, String listName) Returns a reference to a subordinatelistwith the namelistName, belonging to the namespacens.Returns a reference to a subordinatelistwith the hash valuekey.Returns a reference to a subordinatelistwith the namekey.NavuNode.list(ConfNamespace ns, String listName) Returns a reference to a subordinatelistwith the namelistName, belonging to the namespacens.Returns a reference to a subordinatelistwith the hash valuekey.Returns a reference to a subordinatelistwith the namekey.voidNavuLeafList.move(ConfValue elem, NavuLeafList.WhereTo whereTo, ConfValue to) Move a leaf-list element to a new position.voidNavuLeafList.move(String elemStr, NavuLeafList.WhereTo whereTo, String toStr) Move a leaf-list element to a new position.voidNavuList.move(ConfKey key, NavuList.WhereTo whereTo, ConfKey to) Move a list element to a new position in the list.voidNavuList.move(String keyStr, NavuList.WhereTo whereTo, String toStr) Move a list element to a new position in the list.The namespace specified here will be used when selecting a child to this NavuContainer and returns a reference to this NavuContainer object according to the given namespace idns.The namespace specified here will be used when selecting a child to this NavuContainer and returns a reference to this NavuContainer object according to the given namespace idns.NavuParser.parse()Parses the xml and produces ConfXMLParam[]NavuNode.prepareXMLCall(String xml) Creates a parameterized configuration xml in the style of aNavuNode.setValues(String)argument.NavuContainer.safeCreate()Creates an optional container.voidNavuLeaf.safeCreate()Create an empty leaf node, silently succeeding if the leaf already existsvoidNavuLeafList.safeCreate(ConfValue elem) The variant ofcreatethat succeeds even if the object already exists.voidNavuLeafList.safeCreate(String elemStr) The variant ofcreatethat succeeds even if the object already exists.NavuList.safeCreate(ConfKey key) Variant ofNavuList.create(ConfKey)that succeeds even if the key already exists.NavuList.safeCreate(ConfObject key) Variant ofNavuList.create(ConfObject)that succeeds even if the key already exists.NavuList.safeCreate(String keyStr) Variant ofNavuList.create(String)that succeeds even if the key already exists.NavuList.safeCreate(String[] keyArr) Variant ofNavuList.create(String[])that succeeds even if the key already exists.NavuAction.select(ConfObject[] query) Not supported returns only an empty CollectionNot supported returns only an empty CollectionNavuContainer.select(ConfObject[] kp) NavuList.select(ConfObject[] kp) abstract Collection<NavuNode>NavuNode.select(ConfObject[] query) abstract Collection<NavuNode>abstract Collection<NavuNode>voidSets the value of the leaf node.voidSets the value and tries to perform an update.NavuAction.setChange(List<ConfObject> kp, DiffIterateOperFlag op, ConfValue oldValue, NavuContext delContext) Sets the change type on a node.NavuContainer.setChange(List<ConfObject> path, DiffIterateOperFlag op, ConfValue oldValue, NavuContext delContext) NavuLeaf.setChange(List<ConfObject> kp, DiffIterateOperFlag op, ConfValue oldValue, NavuContext delContext) NavuList.setChange(List<ConfObject> path, DiffIterateOperFlag op, ConfValue oldValue, NavuContext delContext) voidThis method is almost identical toNavuLeaf.set(String)with the exception that the value should be wrapped inside XML tag.voidNavuNode.setValues(ConfXMLParam[] params) Set arbitrary sub-elements of a container or list entry.voidSet arbitrary sub-elements of a container or list entry.voidPreparedXMLStatement.setValues()When all of the parameterized values have been filled in, this method is intended to be invoked for a final set operation with the given values.voidPreparedXMLStatement.setValues(NavuContext context) When all of the parameterized values have been filled in, this method is intended to be invoked for a final set operation with the given values.voidSimilar toPreparedXMLStatement.setValues(NavuContext)but uses the context of the supplied node.NavuContainer.sharedCreate()Creates an optional container.voidNavuLeaf.sharedCreate()Create an empty leaf node, silently succeeding if the leaf already exists and also maintain the FASTMAP reference counter on the leaf.voidNavuLeafList.sharedCreate(ConfValue elem) The variant ofcreatethat succeeds even if the object already exists, and also maintains a reference counter on the object.voidNavuLeafList.sharedCreate(String elemStr) The variant ofcreatethat succeeds even if the object already exists, and also maintains a reference counter on the object.NavuList.sharedCreate(ConfKey key) Variant ofNavuList.create(ConfKey)that succeeds even if the key already exists, and also maintains a reference counter on the object.NavuList.sharedCreate(ConfObject key) Variant ofNavuList.create(ConfObject)that succeeds even if the key already exists, and also maintains a reference counter on the object.NavuList.sharedCreate(String keyStr) Variant ofNavuList.create(String)that succeeds even if the key already exists, and also maintains a reference counter on the object.NavuList.sharedCreate(String[] keyArr) Variant ofNavuList.create(String[])that succeeds even if the key already exists, and also maintains a reference counter on the object.voidSets the value of a leaf node with FastMap support, creating backpointers and reference counter similar to sharedCreate() All FastMap code shall (in principle) allways use this method instead of set()voidSharedSet using string representation of value.voidNavuNode.sharedSetValues(ConfXMLParam[] params) Set arbitrary sub-elements of a container or list entry with FastMap support, creating backpointers and reference counter.voidNavuNode.sharedSetValues(String xml) Set arbitrary sub-elements of a container or list entry with FastMap support, creating backpointers and reference counter.voidPreparedXMLStatement.sharedSetValues()Variant ofPreparedXMLStatement.setValues()with FastMap support.voidPreparedXMLStatement.sharedSetValues(NavuContext context) Variant ofPreparedXMLStatement.setValues(NavuContext)with FastMap support.voidPreparedXMLStatement.sharedSetValues(NavuNode node) Variant ofPreparedXMLStatement.setValues(NavuNode)with FastMap support.intNavuContainer.size()Returns the number of nodes contained by the container.intNavuLeafList.size()Returns the number of leaf-list elements contained by the leaf-list.intNavuList.size()Returns the number of list elements contained by the list node.intNavuContext.startOperationalTrans(int mode) This method starts a transaction towards theConf.DB_OPERATIONALdatabase to be used in the context.intNavuContext.startOperationalTrans(int mode, String vendor, String product, String version, String clientId) intNavuContext.startPreCommitRunningTrans()This method starts a transaction towards the PRE_COMMIT_RUNNING datastore.intNavuContext.startPreCommitRunningTrans(String vendor, String product, String version, String clientId) intNavuContext.startRunningTrans(int mode) This method starts a transaction towards theConf.DB_RUNNINGdatabase to be used in the context.intNavuContext.startRunningTrans(int mode, String vendor, String product, String version, String clientId) NavuLeaf.toKey()Convert the leaf value to a ConfKey.NavuLeaf.value()Returns the effective value on the first call, or cached value in the subsequent calls of this leaf.NavuLeaf.valueAsString()Returns the Schema aware string representation of a leaf.voidNavuContainer.valueUpdateInd(NavuNode child) An indication received from a child node.voidNavuList.valueUpdateInd(NavuNode child) NavuAction.xPathSelect(String xPath) NavuNode.xPathSelect(String query) Evaluates the XPath path expressionqueryand returns the resulting node set as list ofNavuNode's.voidNavuNode.xPathSelectIterate(String query, NavuNodeSetIterate iterate) Iterate through a NodeSet based on a supplied XPath query.Constructors in com.tailf.navu that throw NavuExceptionModifierConstructorDescriptionNavuParser(String xml, MaapiSchemas.CSNode node, ConfPath path, int mode) Constructor for the XML parser The xml snippet must have root tag that corresponds to the root CSNode The parser works in one of five modes:NavuParser.MODE_GET -
Uses of NavuException in com.tailf.navu.traversal
Methods in com.tailf.navu.traversal that throw NavuExceptionModifier and TypeMethodDescriptionstatic NavuTreeTraversalNavuTreeTraversal.createInstance(NavuContext ctx, NavuTraversalMean travmeth) Factory method to retrieve an instance of this class.voidTraversalFilter.currentNode(NavuNode node) NavuTraversalBfsMean.traverse(NavuNode root, List<TraversalFilter> filters) NavuTraversalDfsMean.traverse(NavuNode root, List<TraversalFilter> filters) NavuTraversalMean.traverse(NavuNode root, List<TraversalFilter> filter) NavuTreeTraversal.traverse()Start the traversal process. -
Uses of NavuException in com.tailf.ncs
Methods in com.tailf.ncs that throw NavuExceptionModifier and TypeMethodDescriptionPlanComponent.appendState(String stateName) This method supplies a state to the specific component.PlanComponent.appendState(String stateName, String createMonitor, String createTriggerExpr) PlanComponent.appendState(String stateName, String createMonitor, String createTriggerExpr, String deleteMonitor, String deleteTriggerExpr) PlanComponent.backTrack()PlanComponent.backTrack(boolean isBacktracking) Setting status to ncs:failed for a specific state in the plan componentPlanComponent.setNotReached(String stateName) Setting status to ncs:not-reached for a specific state in the plan componentPlanComponent.setReached(String stateName) Setting status to ncs:reached for a specific state in the plan componentConstructors in com.tailf.ncs that throw NavuExceptionModifierConstructorDescriptionPlanComponent(NavuNode service, String name, String componentType) Creation of a plan component.PlanComponent(NavuNode service, String name, String componentType, ConfObjectRef serviceReference) -
Uses of NavuException in com.tailf.ncs.alarmman.consumer
Methods in com.tailf.ncs.alarmman.consumer that throw NavuExceptionModifier and TypeMethodDescriptionstatic AlarmSourceCentralAlarmSourceCentral.getAlarmSource(int alarmQueueLen, Cdb cdb) Deprecated. -
Uses of NavuException in com.tailf.ncs.alarmman.producer
Methods in com.tailf.ncs.alarmman.producer that throw NavuExceptionModifier and TypeMethodDescriptionvoidAlarmSink.submitAlarm(Alarm alarm) Submits the specifiedAlarminto the alarm list.booleanAlarmSink.submitAlarm(ManagedDevice managedDevice, ManagedObject managedObject, ConfIdentityRef alarmtype, ConfBuf specificProblem, PerceivedSeverity severity, ConfBuf alarmText, List<ManagedObject> impactedObjects, List<AlarmId> relatedAlarms, List<ManagedObject> rootCauseObjects, ConfDatetime timeStamp, Attribute... customAttributes) Submits the specifiedAlarminto the alarm list.booleanAlarmSink.submitAlarm(ManagedDevice managedDevice, ManagedObject managedObject, ConfIdentityRef alarmtype, ConfBuf specificProblem, PerceivedSeverity severity, String alarmText, List<ManagedObject> impactedObjects, List<AlarmId> relatedAlarms, List<ManagedObject> rootCauseObjects, ConfDatetime timeStamp, Attribute... customAttributes) Submits the specifiedAlarminto the alarm list.Constructors in com.tailf.ncs.alarmman.producer that throw NavuException
NcsMain.getSourceCentral()instead.