Uses of Class
com.tailf.conf.ConfException
Package
Description
Package with methods for connecting to the configuration database.
Data types and utilities for communication with the server.
Data provider API package, for implementation of callbacks for validations, actions, transformation etc.
Service callback specific context and utilities.
Package for setup and control of High Availability cluster nodes.
MAAPI is an API which provides full access to the systems internal
transaction engine.
NAVU (Navigation Utilities) is an API which provides increased
accessibility to the ConfD/NCS populated data model tree:
NAVU-Tree.
NCS Java machine management and control of Services, Neds,
callbacks and Applications
The Common Alarm Management package contains common definitions that are
used within the alarm manager.
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.
Network Equipment Drivers package
Package for subscription to asynchronous events.
Utility classes for representing compiled ConfNamespaces.
-
Uses of ConfException in com.tailf.cdb
Modifier and TypeClassDescriptionclass
Cdb package generic exceptionclass
This exception is used by clients of CdbSubscription that needs to report errors.Modifier and TypeMethodDescriptionstatic ConfException
CdbException.mk
(ConfResponse r) static ConfException
CdbException.mk
(ConfResponse r, ConfPath path) static ConfException
CdbExtendedException.mk
(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfResponse r) Modifier and TypeMethodDescriptionvoid
CdbSubscription.abortTransaction
(CdbExtendedException ex) Abort the transaction.void
Changes the working directory.void
Change working directory to container specified by path stringvoid
CdbUpgradeSession.cd
(ConfCdbUpgradePath path) void
void
Create a new optional element or list entry.void
similar toCdbSession.create(ConfPath)
but specifies element using path stringvoid
CdbUpgradeSession.create
(ConfCdbUpgradePath path) void
void
Delete an optional element or list entry and all its child elements.void
similar toCdbSession.delete(ConfPath)
but specifies element using path stringvoid
CdbUpgradeSession.delete
(ConfCdbUpgradePath path) void
void
CdbSubscription.diffIterate
(int subid, CdbDiffIterate iter) Iterate over changes made in CDB.void
CdbSubscription.diffIterate
(int subid, CdbDiffIterate iter, EnumSet<DiffIterateFlags> flags, Object initstate) Iterate over changes made in CDB with additional supplied flags.void
CdbSession.endSession()
Ends the data sessionboolean
Containers and leafs in a YANG model may be optional.boolean
Checks whether an element exists.boolean
CdbUpgradeSession.exists
(ConfCdbUpgradePath path) boolean
Retrieve the currently selected case.Retrieve the currently selected case.CdbUpgradeSession.getCase
(String choice, ConfCdbUpgradePath path) Cdb.getCompactionInfo
(CdbDbfileType dbfile) Retrieves compaction information on a CDB fileCdbSession.getcwd()
Returns the current position as previously set byCdbSession.cd(ConfPath)
,CdbSession.pushd(ConfPath)
, orCdbSession.popd()
as a string.CdbSession.getcwdPath()
Returns the current position as previously set byCdbSession.cd(ConfPath)
,CdbSession.pushd(ConfPath)
, orCdbSession.popd()
as aConfObject
array.This reads a a value from the path.similar toCdbSession.getElem(ConfPath)
but specifies element using path stringCdbUpgradeSession.getElem
(ConfCdbUpgradePath path) CdbSubscription.getModifications
(int subid, CdbGetModificationFlag flag, ConfPath path) Deprecated.CdbSubscription.getModifications
(int subid, CdbGetModificationFlag flag, String fmt, Object... args) Deprecated.CdbSubscription.getModifications
(int subid, EnumSet<CdbGetModificationFlag> flags, ConfPath path) Retrieve changes that caused by subscription notification.CdbSubscription.getModifications
(int subid, EnumSet<CdbGetModificationFlag> flags, String fmt, Object... args) Retrieve changes that caused by subscription notification.CdbSubscription.getModifications
(CdbGetModificationFlag flag) Deprecated.CdbSubscription.getModifications
(EnumSet<CdbGetModificationFlag> flags) Retrieve changes that caused by subscription notification.CdbSubscription.getModificationsCLI
(int subid) Return a string with the CLI commands that corresponds to the changes that triggered subscription.CdbSubscription.getModificationsCLI
(int subid, int flags) CLI string that corresponds to the changes that triggered subscription.Cdb.getMountId
(ConfPath path) CdbSubscription.getMountId
(ConfPath path) int
CdbSession.getNumberOfInstances
(ConfPath path) Returns the number of elements of a container type.int
CdbSession.getNumberOfInstances
(String fmt, Object... arguments) similar toCdbSession.getNumberOfInstances(ConfPath)
but specifies element using path stringint
CdbUpgradeSession.getNumberOfInstances
(ConfCdbUpgradePath path) int
CdbUpgradeSession.getNumberOfInstances
(String fmt, Object... arguments) Same functionality as getObject(numOfObjects, fmt, arguments) but takes a already constructed ConfPath object as argument instead of fmt, arguments.In some cases it can be motivated to read multiple values in one request - this will be more efficient since it only incurs a single round trip to the server, but usage is a bit more complex.CdbUpgradeSession.getObject
(int numOfObjects, ConfCdbUpgradePath path) List<ConfObject[]>
CdbSession.getObjects
(int numOfObjects, int instance, int numOfInstances, ConfPath path) Same functionality as getObjects(numOfObjects, instance, fmt, arguments) but takes a already constructed ConfPath object as argument instead of fmt, arguments.List<ConfObject[]>
CdbSession.getObjects
(int numOfObjects, int instance, int numOfInstances, String fmt, Object... arguments) Similar to cdb.getObject(), but reads multiple instances of a dynamic container based on the "instance integer" otherwise given within square brackets in the path - here the path must specify the dynamic container without the instance integer.List<ConfObject[]>
CdbUpgradeSession.getObjects
(int numOfObjects, int instance, int numOfInstances, ConfCdbUpgradePath path) List<ConfObject[]>
CdbUpgradeSession.getObjects
(int numOfObjects, int instance, int numOfInstances, String fmt, Object... arguments) Cdb.getPhase()
Returns the start-phase CDB database is currently in.Cdb.getTxId()
Returns a CdbTxid object which represents the last transaction id from CDB.long
CdbSubscription.getUserSession()
CdbSession.getValues
(ConfXMLParam[] params, ConfPath path) Same functionality as getValues(params, fmt, arguments) but takes a already constructed ConfPath object as argument instead of fmt, arguments.CdbSession.getValues
(ConfXMLParam[] params, String fmt, Object... arguments) Read an arbitrary set of sub-elements of a container element.CdbUpgradeSession.getValues
(ConfXMLParam[] params, ConfCdbUpgradePath path) CdbUpgradeSession.getValues
(ConfXMLParam[] params, String fmt, Object... arguments) int
Returns the position of a keyint
similar toCdbSession.index(ConfPath)
but specifies element using path stringint
CdbUpgradeSession.index
(ConfCdbUpgradePath path) int
void
Cdb.initiateCompaction()
Initiates compaction on CDB files:void
Cdb.initiateDbfileCompaction
(CdbDbfileType dbfile) Initiates compaction on a CDB file.boolean
This method returns true for a leaf which has a default value defined in the data model when no value has been set, i.e.boolean
similar toCdbSession.isDefault(ConfPath)
but specifies element using path stringboolean
CdbUpgradeSession.isDefault
(ConfCdbUpgradePath path) boolean
int
Returns the position of the next keyint
similar toCdbSession.nextIndex(ConfPath)
but specifies element using path stringint
CdbUpgradeSession.nextIndex
(ConfCdbUpgradePath path) int
int
CdbSession.numInstances
(ConfPath path) Deprecated.in favor to getNumberOfInstances, which follows java naming conventions.int
CdbSession.numInstances
(String fmt, Object... arguments) Deprecated.in favor to getNumberOfInstances, which follows java naming conventions.void
CdbSession.popd()
Pops the top element from the directory stack and changes directory to previous directory.void
Similar toCdbSession.cd(ConfPath)
but pushes the previous current directory on a stack.void
similar toCdbSession.pushd(ConfPath)
but specifies position using path stringvoid
CdbUpgradeSession.pushd
(ConfCdbUpgradePath path) void
int[]
CdbSubscription.read()
Reads the Cdb subscription socket for events and blocks.void
Same functionality as setCase(choice, scase, fmt, arguments) but takes a already constructed ConfPath object as argument instead of fmt, arguments.void
When we use the YANG choice construct in the data model, this function can be used to select the current case.void
CdbUpgradeSession.setCase
(String choice, String scase, ConfCdbUpgradePath path) void
void
Sets an element in operational data.void
similar toCdbSession.setElem(ConfValue, ConfPath)
but specifies element using path stringvoid
CdbUpgradeSession.setElem
(ConfValue value, ConfCdbUpgradePath path) void
void
CdbSubscription.setMandatory
(String mandatoryName) Attaches a mandatory attribute and a mandatory name to this subscriber CDB keeps a list of mandatory subscribers for infinite extent, i.e.void
CdbSession.setNamespace
(ConfNamespace ns) Before we start to read data from CDB we need to set the namespace.void
Set all elements corresponding to the complete contents of a container element, except for list entry sub-elements.void
similar toCdbSession.setObject(ConfValue[], ConfPath)
but specifies element using path stringvoid
CdbUpgradeSession.setObject
(ConfValue[] values, ConfCdbUpgradePath path) void
void
Cdb.setTimeout
(int timeoutSecs) A timeout for cdb client actions can be specified via the config file.void
CdbSession.setValues
(ConfXMLParam[] params, ConfPath path) Set arbitrary sub-elements of a container element.void
CdbSession.setValues
(ConfXMLParam[] params, String fmt, Object... arguments) similar toCdbSession.setValues(ConfXMLParam[], ConfPath)
but specifies element using path stringvoid
CdbSession.setValues
(List<ConfXMLParam> params, ConfPath path) void
CdbUpgradeSession.setValues
(ConfXMLParam[] params, ConfCdbUpgradePath path) void
CdbUpgradeSession.setValues
(ConfXMLParam[] params, String fmt, Object... arguments) Cdb.startSession()
Starts a new CDB Session on an already establishedCdb
againstCdbDBType.CDB_RUNNING
datastore withCdbLockType.LOCK_SESSION
lock.Cdb.startSession
(CdbDBType dbtype) Starts a new CDB Session on an already establishedCdb
.Cdb.startSession
(CdbDBType dbtype, EnumSet<CdbLockType> lockflags) Starts a new CDB Session on an already establishedCdb
.Cdb.startUpgradeSession()
Similar toCdb.startSession()
but always returns a CdbUpgradeSession.Cdb.startUpgradeSession
(CdbDBType dbtype) Similar toCdb.startSession(CdbDBType)
but always returns a CdbUpgradeSession.Cdb.startUpgradeSession
(CdbDBType dbtype, EnumSet<CdbLockType> lockflags) Similar toCdb.startSession(CdbDBType, EnumSet)
but always returns a CdbUpgradeSession.int
Subscribe to given path.int
CdbSubscription.subscribe
(int priority, ConfNamespace ns, String fmt, Object... args) Subscribe to a given path.int
CdbSubscription.subscribe
(CdbSubscriptionType subscriptionType, int priority, int nshash, String fmt, Object... args) Subscribe to a path.int
CdbSubscription.subscribe
(CdbSubscriptionType subscriptionType, int priority, ConfNamespace ns, String fmt, Object... args) Subscribe to a path.int
CdbSubscription.subscribe
(CdbSubscriptionType subscriptionType, EnumSet<CdbSubscrConfigFlag> flags, int priority, int nshash, String fmt, Object... args) Subscribe to a path.int
CdbSubscription.subscribe
(CdbSubscriptionType subscriptionType, EnumSet<CdbSubscrConfigFlag> flags, int priority, ConfNamespace ns, String fmt, Object... args) Subscribe to a path.void
CdbSubscription.subscribeDone()
Finishing the subscription setup.void
CdbSubscription.sync
(CdbSubscriptionSyncType subscriptionSyncType) Synchronize the subscriber.void
Cdb.triggerOperSubscriptions
(int[] spointArray) Function similar toCdb.triggerOperSubscriptions(int[], EnumSet)
with the difference that this function will never wait to acquire a lock and therefore fail and throw an Exception if Cdb is locked.void
Cdb.triggerOperSubscriptions
(int[] spointArray, EnumSet<CdbLockType> lockflags) Function to trigger operational subscriptions in similar toCdb.triggerSubscriptions(int[])
.void
Cdb.triggerSubscriptions
(int[] spointArray) Triggers Cdb subscription for configuration data.void
Cdb.waitStart()
This call waits until start-phase 1 is completed and CDB is available.ModifierConstructorDescriptionCdbExtendedException
(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfException ex) ModifierConstructorDescriptionCreates a new instance of aCdb
socket supplying a established open socket to ConfD/NCS daemon.Cdb
(String name, SocketChannel channel) Deprecated.Cdb
(String name, SocketChannel channel, int buffsize) Deprecated.CdbSession
(Cdb cdb) Creates a new CDB session instance against the running database.CdbSession
(Cdb cdb, CdbDBType dbtype) Starts a new session on an already connected Cdb instance.CdbSession
(Cdb cdb, CdbDBType dbtype, EnumSet<CdbLockType> lockflags) Starts a new session on an already established Cdb with explicitly given lockflags.CdbUpgradeSession
(Cdb cdb) CdbUpgradeSession
(Cdb cdb, CdbDBType dbtype) CdbUpgradeSession
(Cdb cdb, CdbDBType dbtype, EnumSet<CdbLockType> lockflags) -
Uses of ConfException in com.tailf.conf
Modifier and TypeClassDescriptionclass
Exception thrown when protocol data is malformed.class
Warning exception base class.Modifier and TypeMethodDescriptionstatic ConfException
ConfException.mk
(ConfResponse r) static ConfException
ConfException.mk
(ConfResponse r, ConfPath errPath) Modifier and TypeMethodDescriptionAppends suffix path to existing keypathAppends suffix path to existing keypathConfPath.append
(String s, List<MaapiSchemas.CSNode> pathNodes) Appends suffix path to existing keypathvoid
ConfBits.clearBit
(long pos) Clear bit at position pos in bitset.ConfCdbUpgradePath.copyAppend
(String s) CopyAppends to the keypathConfPath.copyAppend
(String s) CopyAppends to the keypathConfCdbUpgradePath.copyPop()
Creates a new ConfCdbUpgradePath with the current path minus the last element including list keys.ConfPath.copyPop()
Creates a new ConfPath with the current path minus the last element including list keys.static ConfObject
ConfObject.decode
(ConfEObject o) static ConfXMLParam
ConfXMLParam.decodeParam
(ConfEObject o) Decode the internal representation to aConfXMLParam
Used internally.static ConfXMLParam[]
ConfXMLParam.decodeParams
(ConfEObject o) static void
ConfInternal.diffIterate
(Object socket, ConfIterate iter, Object initstate) static void
ConfInternal.diffIterate
(SelectionKey key, ConfIterate iter, Object initstate) Common static method for diffIterate with CdbSubscription.static long
static long
ConfInternal.doConnect
(SelectionKey key, int id) Connects the provided selectable channel to the Erlang process using the supplied selector with the buffer buf with the identifier id.Produces an EXPRESSION object representing the comparison: left equals to rightstatic ConfNamespace
ConfNamespace.findNamespaceFromNsName
(ConfPath path, MountIdInterface mountIdGetter, String namespaceName) static String
ConfBits.getBitNamesByValue
(ConfPath path, ConfBits bits) Get a string of bitnames like bitnames like "bit1 bit2 ...", i.e a space separated list of bitnames from a ConfBits value.static String
ConfBits.getBitNamesByValue
(String path, ConfBits bits) LikeConfBits.getBitNamesByValue(ConfPath, ConfBits)
but takes a path string pointing to the bitset in the schema.static ConfEnumeration
ConfEnumeration.getEnumByLabel
(ConfPath path, String label) Get an ConfEnumeration from the string label at a given position in the schema.static ConfEnumeration
ConfEnumeration.getEnumByLabel
(String path, String label) Get an ConfEnumeration from the string label at a given position in the schema.InstancePath.getKP()
Returns an array ofConfTag
andConfKey
objects which represents the path in reverted order.static String
ConfEnumeration.getLabelByEnum
(ConfPath path, ConfEnumeration e) Get the string label of an enumeration at a given position in the schema.static String
ConfEnumeration.getLabelByEnum
(String path, ConfEnumeration e) Get the string label of an enumeration at a given position in the schema.MountIdInterface.getMountId
(ConfPath path) static Socket
Retrieve a socket which is connected to the default host/port.static Socket
Retrieve a connected socket to a specified destination If the default host/port is not set, it will be set to the same as the given socket.static Socket
SocketFactory.getSocket
(Object caller, InetAddress iaddr, int port) Retrieve a connected socket to a specified destination If the default host/port is not set, it will be set to the same as the given socket.Retrieve a connected socket to a specified destinationSocketFactoryCallback.getSocket
(Object caller, InetAddress iaddr, int port) Retrieve a connected socket to a specified destinationstatic String
ConfValue.getStringByValue
(ConfPath path, ConfValue val) Get the string representation of a ConfValue at a given position in the schema.static String
ConfValue.getStringByValue
(String path, ConfValue val) Get the string representation of a ConfValue at a given position in the schema.static Socket
SocketFactory.getUnconnectedSocket
(Object caller) Retrieve an unconnected socket.SocketFactoryCallback.getUnconnectedSocket
(Object caller) Retrieve an unconnected socket.static ConfBits
ConfBits.getValueByBitNamesString
(ConfPath path, String bitNames) Get an ConfBits from the string of bitnames like "bit1 bit2 ...", i.e a space separated list of bitnames adhering to a specific position in the schema.static ConfBits
ConfBits.getValueByBitNamesString
(String path, String bitNames) LikeConfBits.getValueByBitNamesString(ConfPath, String)
but takes a path string pointing to the bitset in the schema.static ConfValue
ConfValue.getValueByString
(ConfPath path, String str) Get a ConfValue representation a string at a given position in the schema.static ConfValue
ConfValue.getValueByString
(String path, String str) Get a ConfValue representation a string at a given position in the schema.static ConfObject[]
ConfInternal.hk_keypath
(ConfEObject term) Create a hkeypath from a term.boolean
ConfBits.isBitSet
(long pos) Check if bit is set at position pos in bitset.static ConfObject[]
ConfInternal.mk_keypath
(ConfEObject term, ArrayList<ConfNamespace> ns_list) Makes a keypath from a term.void
ConfList.move
(ConfObject n, ConfList.WhereTo where, ConfObject to) Move a list element to a new position in the list.ConfTypeDescriptor.newInstance
(String str) Creates a new ConfValue instance of the type described by this ConfTypeDescriptor and with a value represented by a string.void
ConfPath.pop()
Pops the last element from the path including list keys.Produces an QNAME that represents a name with an optional prefix.static void
Reads data into a buffer.static void
ConfInternal.readFill
(SelectionKey key, ByteBuffer buf, int siz) Read exactlysiz
data into the bufferbuf
.static void
ConfInternal.readPayLoad
(SelectionKey key, ByteBuffer buf, int size) static void
ConfInternal.readSize
(SelectionKey key, ByteBuffer buf, int size) static int
ConfInternal.requestInt
(Socket socket, int op) Request an integer from ConfD/NCS.static int
ConfInternal.requestInt
(Socket socket, int op, int thandle) Requests an integer value from ConfD/NCS.static ConfResponse
ConfInternal.requestTerm
(Socket socket, int op) Requests a term from ConfD/NCS.static ConfResponse
ConfInternal.requestTerm
(Socket socket, int op, int thandle, boolean isrel, ConfEObject arg) Requests a term from ConfD/NCS.static ConfResponse
ConfInternal.requestTerm
(Socket socket, int op, ConfEObject arg) Requests a term from ConfD/NCS.static ConfResponse
ConfInternal.requestTerm
(SelectionKey key, int op) Request the operationop
with no argument, and read the response from ConfD/NCS.static ConfResponse
ConfInternal.requestTerm
(SelectionKey key, int op, int thandle, boolean isrel, ConfEObject arg) Write a termarg
for the specified operationop
, transaction handlethandle
( if available -1 otherwise ) and read the response, from ConfD/NCS.static ConfResponse
ConfInternal.requestTerm
(SelectionKey key, int op, ConfEObject arg) Write a termarg
for the specified operationop
and read the response, from ConfD/NCS.void
ConfBits.setBit
(long pos) Set bit at position pos in bitset.void
InstancePath.setMountIdGetter
(MountIdInterface mountGetter) static ConfResponse
Common method to read a term from ConfD/NCS NOTE: This method should not be used by users of this API.static ConfResponse
Request one term from ConfD/NCS.static ConfResponse
Request one term from ConfD/NCS.static ConfResponse
ConfInternal.termRead
(SelectionKey key) Common method to read ( request ) a term from ConfD/NCS NOTE: This method should not be used by users of this API.static ConfResponse
ConfInternal.termRead
(SelectionKey key, int cdbop) Read a response, term from ConfD/NCS with the givenSelectionKey
and the opcdbop
.static Document
ConfXMLParam.toDOM
(ConfXMLParam[] params) Return StringDOM
document representation of a (Conf)XML-structure.static Document
ConfXMLParam.toDOM
(ConfXMLParam[] params, String parentNode, String parentURI) Return StringDOM
representation of a (Conf)XML-structure.static String
ConfXMLParam.toXML
(ConfXMLParam[] params) Return String XML representation of a (Conf)XML-structure.static String
ConfXMLParam.toXML
(ConfXMLParam[] params, String parentNode, String parentURI) Return String XML representation of a (Conf)XML-structure.static ConfXMLParam[]
ConfXMLParam.toXMLParams
(String xml, ConfPath path) Converts an xml snippet to a corresponding ConfXMLParam[].static ConfXMLParam[]
ConfXMLParam.toXMLParams
(String xml, ConfPath path, int mode) Converts an xml snippet to a corresponding ConfXMLParam[].static ConfHaNode
ConfHaNode.unpack_ha_node
(ConfEObject term) Decodes a ConfEObject into a ConfHaNode.ModifierConstructorDescriptionString constructor for ConfBit32.String constructor for ConfBit64.ConfBitBig
(String str) String constructor for ConfBitBig.ConfCdbUpgradePath
(String fmt, Object... arguments) For internal usage.ConfDottedQuad
(byte[] val) ConfDottedQuad
(ConfBinary obj) Constructs a ConfDottedQuad from a ConfBinary object.ConfDottedQuad
(String str) Construct a ConfDottedQuad from a string of bytes in the format of octets (decimal values) separated with dots.ConfEnumeration
(int ordinalValue) Constructor for ordinalvalue.ConfEnumeration
(int ordinalValue, ArrayList<ConfNamespace> ns_list) Deprecated.ConfHexList
(String str) Construct aConfHexList
from a string of bytes in the format of hexadecimal values separated with colons.ConfHexString
(String str) Construct aConfHexString
from a string of bytes in the format of hexadecimal values separated with colons.ConfIPv4
(ConfEObject vtup) ConfIPv4
(ConfETuple vtup) ConfIPv6
(ConfEObject vtup) ConfIPv6
(ConfETuple vtup) ConfObjectRef
(ConfPath path) Construct a ConfObjectRef from a given Absolute ConfPath.It assumes that param is of type ConfEList.ConfObjectRef
(String xpath) ConfObjectRef
(String xpath, MountIdInterface mountGetter) ConfOctetList
(String str) Construct a ConfOctetList from a string of bytes in the format of octets (decimal values) separated with dots.ConfPath
(MountIdInterface mountIdCb, String fmt, Object... arguments) ConfPath
(Maapi maapi, int tid, ConfObject[] kp) Initialize a ConfPath.Construct aConfPath
from a string path representation and of optional arguments.ConfUserInfo
(ConfETuple usess) Internally used constructor to create a UserInfo recordConfXMLParamCdbStart
(ConfEObject o, int cdbInstanceInteger) ConfXPath
(String xpath, MountIdInterface mountGetter) Initialize a InstancePath. -
Uses of ConfException in com.tailf.dp
Modifier and TypeClassDescriptionclass
Exception thrown from inside callbacks to identify problems.class
Extended errorcode Exceptions thrown from inside callbacks to identify problems.class
Warnings thrown from inside callbacks to identify problems.class
General Dp ExceptionModifier and TypeMethodDescriptionstatic ConfException
DpCallbackExtendedException.mk
(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfResponse r) Deprecated.static ConfException
DpException.mk
(ConfResponse r) Modifier and TypeMethodDescriptionDp.createNotifStream
(String name) Creates (and registers) a notifications stream with ConfD/NCS.Dp.createNotifStream
(String name, DpNotifReplayCallback replayCb) Creates (and registers) a notifications stream with ConfD/NCS.Dp.createNotifStream
(String name, DpNotifReplayCallback replayCb, Socket socket) Creates (and registers) a notifications stream with ConfD/NCS.Dp.createSnmpNotifier
(String name, String context_name) Creates (and registers) a SNMP Notifer @seeDpSnmpNotifier
.Dp.createSnmpNotifier
(String notify_name, String context_name, Object inform_cb) Creates (and registers) a SNMP Notifier @seeDpSnmpNotifier
.Dp.createSnmpNotifier
(String notify_name, String context_name, Object inform_cb, Socket socket) Creates (and registers) a SNMP Notifier seeDpSnmpNotifier
.void
DpNotifStream.flush()
Notifications are sent asynchronously, i.e.Dp.getServicePointMaapi()
Dp.getServicePointMaapi
(DpTrans trans) void
Dp.read()
Receives data on the control socket which is connected to ConfD/NCS.void
DpNotifStream.send
(ConfDatetime time, ConfXMLParam params) Send a notification defined at the top level of a YANG module on this notification stream to ConfD/NCS.void
DpNotifStream.send
(ConfDatetime time, ConfXMLParam[] params) Send a notification defined at the top level of a YANG module on this notification stream to ConfD/NCS.void
DpNotifStream.send
(ConfDatetime time, ConfXMLParam[] params, ConfPath path) Send a notification defined as a child of a container or list in a YANG 1.1 module on this notification stream to ConfD/NCS.void
DpNotifStream.send
(ConfDatetime time, ConfXMLParam[] params, String fmt, Object... arguments) Send a notification defined as a child of a container or list in a YANG 1.1 module on this notification stream to ConfD/NCS.void
DpSnmpNotifier.send
(String notification, SnmpVarbind[] varbinds) Send SNMP notification.void
DpSnmpNotifier.send
(String notification, SnmpVarbind[] varbinds, Integer ref) Send SNMP notification with the option to receive an Inform Response.ModifierConstructorDescriptionDpCallbackExtendedException
(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfException ex) ModifierConstructorDescriptionThis constructor will initialize the Dp class library and connect to ConfD/NCS on the provided control socket.This constructor will initialize the Dp class library and connect to ConfD/NCS on the provided control socket.Dp
(String name, Socket ctrlSocket, boolean isNcs, int minThreadPoolSize, int maxThreadPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> queue, boolean prestartCoreThreads) This constructor will initialize the Dp class library and connect to ConfD/NCS on the provided control socket.DpUserInfo
(ConfETuple usess) Internally used Constructor. -
Uses of ConfException in com.tailf.dp.services
Modifier and TypeMethodDescriptionstatic void
ServiceLog.debug
(NavuNode service, String msg, ConfIdentityRef type) Write service log entry with level debug.static void
ServiceLog.error
(NavuNode service, String msg, ConfIdentityRef type) Write service log entry with level error.ServiceContextImpl.getAttachedServiceMaapi()
Internal used method to get the a maapi object attached to the correct transactionServiceContext.getNedIdByDeviceName
(String name) ServiceContextImpl.getNedIdByDeviceName
(String name) ServiceContext.getRootNode()
Returns the path root as a NavuNode with the NavuContext attached to the ongoing Maapi transaction.ServiceContextImpl.getRootNode()
Returns the path root as a NavuNode with the NavuContext attached to the ongoing Maapi transaction.NanoServiceContextImpl.getServiceNode()
ServiceContext.getServiceNode()
Returns the current service path as a NavuNode with the NavuContext attached to the ongoing Maapi transaction.ServiceContextImpl.getServiceNode()
Returns the current service path as a NavuNode with the NavuContext attached to the ongoing Maapi transaction.NanoServiceContext.getStateNode()
NanoServiceContextImpl.getStateNode()
static void
ServiceLog.info
(NavuNode service, String msg, ConfIdentityRef type) Write service log entry with level info.static void
ServiceLog.trace
(NavuNode service, String msg, ConfIdentityRef type) Write service log entry with level trace.static void
ServiceLog.warn
(NavuNode service, String msg, ConfIdentityRef type) Write service log entry with level warn.ModifierConstructorDescriptionNanoServiceContextImpl
(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 -
Uses of ConfException in com.tailf.ha
-
Uses of ConfException in com.tailf.maapi
Modifier and TypeClassDescriptionclass
Exception raised from the maapi packageclass
Warnings raised from the maapi packageclass
Warnings raised from the maapi packageclass
Warnings raised from the maapi packageModifier and TypeMethodDescriptionstatic ConfException
MaapiException.mk
(ConfResponse r) static ConfException
MaapiException.mk
(ConfResponse r, ConfPath path) Modifier and TypeMethodDescriptionvoid
Maapi.aaaReload
(boolean synchronous) When the ConfD/NCS AAA tree is populated by an external data provider, this method can be used by the data provider to notify ConfD/NCS when there is a change to the AAA data.void
Maapi.abortTrans
(int tid) Abort a transaction specified by transaction handletid
.void
Maapi.abortUpgrade()
Note, This method is only applicable for Confd.void
Maapi.applyTrans
(int tid, boolean keepOpen) Apply a current transaction with transaction handletid
.void
Maapi.applyTrans
(int tid, boolean keepOpen, int flags) Apply a current transaction with transaction handletid
with additional flags (NCS Specific).Maapi.applyTransParams
(int tid, boolean keepOpen, CommitParams params) Apply a current transaction with transaction handletid
with additional NCS specific parameters.void
Maapi.attach
(int tid, int nsi) Same asMaapi.attach(int, int, int)
with the exception that the User session id is implicit for the attached transaction.void
Maapi.attach
(int tid, int nsi, int usid) Attach to a current transaction.void
Same asMaapi.attach(int, String, int)
with the exception that the User session id is implicit for the attached transaction.void
Attach to a current transaction.int
Maapi.attachInit()
Attach to transaction available in phase0.Maapi.authenticate
(String user, String passwd) If we are implementing a proprietary Management Agent with MAAPI API, the methodMaapi.startUserSession(String,InetAddress,String,String[], MaapiUserSessionFlag)
requires the application to tell ConfD/NCS which groups the user are member of.Maapi.authenticate2
(String user, String passwd, InetAddress src_addr, int src_port, String context, MaapiUserSessionFlag proto) If we are implementing a proprietary Management Agent with MAAPI API, the methodMaapi.startUserSession(String,InetAddress,String,String[], MaapiUserSessionFlag)
requires the application to tell ConfD/NCS which groups the user are member of.void
Maapi.candidateAbortCommit()
This function cancels a pending confirmed commit.void
Maapi.candidateAbortCommitPersistent
(String persistId) Cancel an ongoing persistent commit with the cookie given by persistId.void
Maapi.candidateCommit()
This function copies the candidate to running.void
Maapi.candidateCommitInfo
(String label, String comment) This method can be used to set the "Label" and/or "Comment" that is stored in the rollback file when the candidate is committed to running.void
Maapi.candidateCommitInfo
(String persistId, String label, String comment) This method can be used to set the "Label" and/or "Comment" that is stored in the rollback file when the candidate is committed to running.void
Maapi.candidateCommitPersistent
(String persistId) Confirm an ongoing persistent commit with the cookie given by persistId.void
Maapi.candidateConfirmedCommit
(int t) This method also copies the candidate into running.void
Maapi.candidateConfirmedCommitInfo
(int timeoutsecs, String label, String comment) This method does the same asMaapi.candidateConfirmedCommitPersistent(int, java.lang.String, java.lang.String)
, but allows for setting the "Label" and/or "Comment" that is stored in the rollback file when the candidate is committed to running.void
Maapi.candidateConfirmedCommitInfo
(int timeoutsecs, String persist, String persistId, String label, String comment) This method does the same asMaapi.candidateConfirmedCommitPersistent(int, java.lang.String, java.lang.String)
, but allows for setting the "Label" and/or "Comment" that is stored in the rollback file when the candidate is committed to running.void
Maapi.candidateConfirmedCommitPersistent
(int timeoutsecs, String persist, String persistId) This method can be used to start or extend a persistent confirmed commit, see the Tail-f Commit Capability section in the NETCONF Server chapter in the User Guide.void
Maapi.candidateReset()
This function copies running into candidate.void
Maapi.candidateValidate()
This function validates the candidate.void
This function mimics the behavior of the UNIX "cd" command.void
Maapi.clearOpCache()
Same asMaapi.clearOpCache(ConfPath)
, with the only difference that if clears all cached data from "/" and down.void
Maapi.clearOpCache
(ConfPath path) Request clearing of the operational data cache (see the Operational Data the User Guide).void
Maapi.CLIAccounting
(String user, int usid, String cmd) Generate an audit log entry in the CLI audit log.Maapi.CLICmdToPath
(int th, String cmd) Given a C- or I-style command, this method tries to determine the corresponding namespace and path in the schema.Maapi.CLICmdToPath
(String cmd) Equivalent toMaapi.CLICmdToPath(int, String)
with the first parameter set to -1 (ie, the command is not interpreted in the context of any particular transaction)Maapi.CLIDiffCmd
(int thandle, int thandleOld, ConfPath path) Get the diff between two transactions as C-/I-style CLI commands.Maapi.CLIPathCmd
(int th, EnumSet<CLIPathCmdFlag> flags, String fmt, Object... args) Returns a string representing the C/I style CLI command that can be associated with the given path.Prompts user for a string.Prompts user for a string.Maapi.CLIPromptOneOf
(int usid, String prompt, String[] choice) Prompt user for one of the strings given in the choice parameter.Maapi.CLIPromptOneOf
(int usid, String prompt, String[] choice, int timeout) Prompt user for one of the strings given in the choice parameter.Maapi.CLIReadEOF
(int usid, boolean echo) Read a multi line string from the CLI.Maapi.CLIReadEOF
(int usid, boolean echo, int timeout) Read a multi line string from the CLI.void
Write to the CLI.void
Execute CLI command in ongoing CLI session.void
CLIInteraction.cmd
(String command, EnumSet<CLIInteractionFlag> flags) Execute CLI command in ongoing CLI session.void
CLIInteraction.cmd
(String command, EnumSet<CLIInteractionFlag> flags, String unhide) Execute CLI command in ongoing CLI session.CLIInteraction.cmdIO
(String command, EnumSet<CLIInteractionFlag> flags, String unhide) Execute CLI command in ongoing CLI session and output result on socket.Maapi.commitQueueResult
(int tid, int timeout) Deprecated.UseMaapi.applyTransParams(int, boolean, CommitParams)
instead.void
Maapi.commitTrans
(int tid) Commit a transaction specified by transaction handletid
.void
Maapi.commitUpgrade()
Note, This method is only applicable for Confd.int
Maapi.confirmedCommitInProgress()
Checks whether a confirmed commit is pending.void
Maapi.copy
(int thfrom, int thto) If we open two transactions from the same user sessions but towards different data stores, such as one transaction towards the candidate and one towards running, we can copy all data from one data store to the other with this method.void
Deprecated.UseMaapi.copyTree(int, boolean, ConfPath, ConfPath)
instead.void
Deprecated.UseMaapi.copyTree(int, ConfPath, ConfPath)
instead.void
Similar toMaapi.copy(int, int)
, but does a replacing copy only of the subtree rooted at the path given bypath
void
Maapi.copyRunningToStartup()
Copies running to startup.void
This function is used to copy an entire subtree in the configuration from one point to another.void
Maapi.copyTree(int, boolean, ConfPath, ConfPath)
Equivalent toMaapi.copyTree(int, boolean, ConfPath, ConfPath)
with useSharedCreate set to false i.e., for use outside fastmap, without 'shared' create/setvoid
Create an entity in the XML tree.void
Create a new list entry in the XML tree.void
Deletes a node and all its children from the XML data tree.void
Deletes a node and all its children from the XML data tree.void
Maapi.deleteAll
(int th, MaapiDeleteAllFlag how) This function can be used to delete "all" configuration data within a transaction.void
Maapi.deleteConfig
(int db) This function empties a data store.ConfObject[][]
This method dereferences a leafref and returns a list of the objects the leafref "points" to.void
Maapi.detach
(int tid) Detaches an attached MAAPI socket.void
Maapi.diffIterate
(int tid, MaapiDiffIterate iter) Iterates through the transaction diff.void
Maapi.diffIterate
(int tid, MaapiDiffIterate iter, Object initstate, String fmt, Object... args) Iterates through the transaction diff.void
Maapi.diffIterate
(int tid, MaapiDiffIterate iter, String fmt, Object... args) Iterates through the transaction diff.void
Maapi.diffIterate
(int tid, Object initstate, EnumSet<DiffIterateFlags> flags, MaapiDiffIterate iter, ConfPath path) Iterates through the transaction diff.void
Maapi.disconnectRemote
(String address) Disconnect all remote connections between CONFD_IPC_PORT (see the IPC section in the Advanced Topics chapter in the User Guide) and address.void
Maapi.disconnectSockets
(int[] sockets) This function is an alternative todisconnectRemote()
that can be useful in particular when using the "External IPC" functionality (see "Using a different IPC mechanism" in the ConfD IPC section in the Advanced Topics chapter in the User Guide).boolean
If the data model uses the YANG 'when' or 'tailf:display-when' statement, this function can be used to determine if the item given by the path in fmt should be displayed or not.End progress span.void
Maapi.endUserSession()
Ends the current user session on thisMaapi
instance.void
Maapi.event
(int tid, Maapi.Verbosity verbosity, String msg, ConfPath path, Attributes attributes) Create a progress event.boolean
boolean
Boolean function which return 1 or 0 if a path defines an existing element in the XML data tree.boolean
Maapi.findNext
(MaapiCursor c, ConfFindNextType type, ConfKey key) The findNext method makes it possible to jump forward to an element in the model at a position defined by the MaapiCursor After the findNext call the same MaapiCursor can be used in subsequent getNext calls.void
Maapi.finishTrans
(int tid) Finish the transaction specified by transaction handletid
.Read CLI session parameter.Maapi.getAttrs
(int tid, ConfAttributeType[] attribs, String fmt, Object... args) Retrieve attributes for a configuration node.String[]
Maapi.getAuthorizationInfo
(int usid) This method retrieves authorization info for a user session, i.e.This returns the current 'case' for a 'choice' construct.Maapi.getCwd
(int tid) Returns the current position as previously set by Maapi.cd(), Maapi.pushd(), or Maapi.popd() as a String.Maapi.getCwdPath
(int tid) Returns the current position like Maapi.getCwd(), but as a ConfPath instead of as a String.This reads a value from the path in fmt and returns the result.Maapi.getMountId
(int tid, ConfPath path) MaapiSchemas.getMountId
(MountIdInterface midif, ConfPath path) MountIdCb.getMountId
(ConfPath path) int
Maapi.getMyUserSession()
Returns the usid associated with thisMaapi
Maapi.getNext
(MaapiCursor c) Iterates and gets the keys for the next element pinpointed by theMaapiCursor
initially retrieved byMaapi.newCursor(int, String, Object...)
.int
Maapi.getNumberOfInstances
(int tid, ConfPath path) int
Maapi.getNumberOfInstances
(int tid, String fmt, Object... arguments) Return the number of instances in a list.This reads a container object or a list entry object from the path in fmt and returns the result.List<ConfObject[]>
Maapi.getObjects
(MaapiCursor c, int numOfObjects, int numOfInstances) Get several list instances with one request.int
Maapi.getRollbackId
(int tid) Get rollback id for committed transaction specified by transaction handletid
.int
Maapi.getRunningDbStatus()
Query ConfD/NCS for its consistency state.Maapi.getTransParams
(int tid) Get commit parameters for a transaction.Maapi.getUserSession
(int usid) Return aMaapiUserSession
given by theusid
.Maapi.getUserSessionIdentification
(int usid) This method can be used to retrieve additional identification information for a user session (if available - ie., if it has been provided by the northbound client).Maapi.getUserSessionOpaque
(int usid) If the user session has "opaque" information provided by the northbound client (see the -O option inconfd_cli
), the opaque information can be retrieved using this method.int[]
Maapi.getUserSessions()
Return all user sessions id's currently connected to ConfD/NCS.<T extends ConfXMLParam>
T[]Read an arbitrary set of sub-elements of a container element.<T extends ConfXMLParam>
T[]Read an arbitrary set of sub-elements of a container element.<T extends List<ConfXMLParam>>
TRead an arbitrary set of sub-elements of a container element.<T extends List<ConfXMLParam>>
TRead an arbitrary set of sub-elements of a container element.void
Maapi.initUpgrade
(int timeoutsecs, int flags) Note, This method is only applicable for Confd.void
This function inserts a new element in an ordered list of elements.void
boolean
Maapi.isCandidateModified()
Returns true if candidate has been modified, i.e if there are pending non committed changes to the candidate data store.int
Maapi.isLockSet
(int db) This methods checks if a lock is taken or not.boolean
Maapi.isRunningModified()
Returns true if running has been modified since the last copy to startup, false if it has not been modified.void
Maapi.iterate
(int tid, Object initstate, EnumSet<ConfIterateFlags> flags, MaapiIterate iter, ConfPath path) Iterates through all the data in a transaction.void
Maapi.killUserSession
(int usid) Ends another users session, effectively logging out that user.Maapi.listRollback()
Deprecated.Consult the /rollback-files list instead.void
Maapi.loadConfig
(int tid, EnumSet<MaapiConfigFlag> flags, String filename) This function loads a configuration from filename into the server.void
Maapi.loadConfigCmds
(int tid, EnumSet<MaapiConfigFlag> flags, String cmds, String fmt, Object... arguments) This function loads a configuration from a string into the server.Maapi.loadConfigStream
(int tid, EnumSet<MaapiConfigFlag> flags) Load configuration from aOuputStream
into ConfD/NCS.void
Maapi.loadRollback
(int tid, int nr) Deprecated.Use the action /rollback-files/apply-rollback-file instead.void
Maapi.loadRollbackFixed
(int tid, int fixed_nr) Deprecated.Use the action /rollback-files/apply-rollback-file instead.Maapi.loadSchemas()
Load Schemas method that downloads all schemas from server into a MaapiSchemas container, from which specified schemas can be accessed and traversed.Maapi.loadSchemas
(String[] namespaceURIs) Load Schemas method that downloads a specified number of schemas the server into a MaapiSchemas container, from which specified schemas can be accessed and transversed.void
Maapi.lock
(int db) This function is used to take a lock on one of the databases.int
Maapi.lockPartial
(int db, String xpath) Same asMaapi.lockPartial(int,String[])
except only one xpath expression is given.int
Maapi.lockPartial
(int db, String[] xpaths) It is possible to manipulate partial locks on the databases, i.e.void
This function moves an existing object.void
This function moves an existing objectvoid
Maapi.moveOrdered
(int tid, MoveWhereFlag where, ConfKey tokey, String fmt, Object... arguments) For a list with the YANG ordered-by user statement, this function can be used to change the order of entries, by moving one entry to a new position.void
Maapi.ncsApplyTemplate
(int tid, String template, ConfPath rootIKP, Properties variables, boolean createShared) void
Maapi.ncsApplyTemplate
(int tid, String template, ConfPath rootIKP, Properties variables, String document, boolean createShared) String[]
Maapi.ncsGetTemplateVariables
(String template) void
Maapi.ncsMovePrivateData
(int initTid, ConfPath from, ConfPath to) Deprecated.This method is not activly maintained and does not fully support all kinds of services (i.e.boolean
Maapi.ncsRunWithRetry
(MaapiRetryableOp op) Runop
with a new read-write transaction against the RUNNING datastore.boolean
Maapi.ncsRunWithRetry
(MaapiRetryableOp op, int maxNumRetries, CommitParams commitParams) Runop
with a new read-write transaction against the RUNNING datastore.boolean
Maapi.ncsRunWithRetry
(MaapiRetryableOp op, int maxNumRetries, CommitParams commitParams, int usid, EnumSet<MaapiFlag> flags) Runop
with a new read-write transaction against the RUNNING datastore.Maapi.ncsTemplates()
void
Maapi.netconfSSHCallHome
(ConfObject host, int port) Request that ConfD daemon initiates a NETCONF SSH Call Home connection (see RFC 8071) to the NETCONF client running on host.void
Maapi.netconfSSHCallHomeOpaque
(ConfObject host, String opaque, int port) Request that ConfD daemon initiates a NETCONF SSH Call Home connection (see RFC 8071) to the NETCONF client running on host.Creates a cursor for a list specified bypath
Creates a cursor for a list specified byfmt
.Maapi.newCursorWithFilter
(int tid, String filter, ConfPath path) Creates a cursor for a list specified bypath
with an XPath filter specified byfilter
.Maapi.newCursorWithFilter
(int tid, String filter, String fmt, Object... arguments) Creates a cursor for a list specified byfmt
with an XPath filter specified byfilter
.void
Maapi.performUpgrade
(String[] loadpathdirs) Note, This method is only applicable for Confd.void
Maapi.popd
(int tid) Pops the top position of the directory stack and changes directoryvoid
Maapi.prepareTrans
(int tid) Prepares the transaction specified by transaction handletid
.void
Maapi.prepareTrans
(int tid, int flags) Prepares the transaction specified by transaction handletid
.void
Write to the CLI using printf formatting.void
Maapi.prioMessage
(String to, String message) Send a high priority message to a specific user, a specific user session or all users depending on the to parameter.Prompt user for a string.This function does the same as prompt(String promptStr), but also takes a timeout parameter, which controls how long (in seconds) to wait for input before aborting.CLIInteraction.promptOneOf
(String promptStr, String[] choice, boolean echo) Prompt user for one of the strings given in the choice parameter.CLIInteraction.promptOneOf
(String promptStr, String[] choice, boolean echo, int timeout) This function does the same as promptOneOf(String promptStr, String[] choice, boolean echo), but also takes a timeout parameter.void
Behaves like cd() with the exception that we can subsequently call popd() and return to the previous position in the XML data tree.<T extends ResultType>
QueryResult<T>Maapi.queryStart
(int tid, String expr, String context, int chunkSize, int offset, List<String> select, Class<T> cls) Initiate (or starts) a new XPath query attached to the transaction given intid
.<T extends ResultType>
QueryResult<T>Maapi.queryStart
(int tid, String expr, String context, int chunkSize, int offset, List<String> select, List<String> sort, boolean reverseSortOrder, Class<T> cls) Initiate (or starts) a new XPath query attached to the transaction given inth
.CLIInteraction.readEOF
(boolean echo) Read a multi line string from the CLI.CLIInteraction.readEOF
(boolean echo, int timeout) This function does the same as readEOF(boolean echo), but also takes a timeout parameter, which indicates how long the user may be idle (in seconds) before the reading is aborted.void
Maapi.reloadConfig()
Request that the daemon reloads its configuration files.Maapi.reloadSchemas()
This method throws away any old MaapiSchemas container and downloads a new from the server.Maapi.reloadSchemas
(String[] namespaceURIs) This method throws away any old MaapiSchemas container and downloads a new from the server.void
Maapi.reopenLogs()
Request that the daemon closes and re-opens its log filesvoid
Maapi.reportProgress
(int tid, Maapi.Verbosity verbosity, String msg) Report progress of an action or transaction.void
Maapi.reportProgress
(int tid, Maapi.Verbosity verbosity, String msg, String packageName) Deprecated.useProgressTrace
instead.Maapi.reportProgressStart
(int tid, Maapi.Verbosity verbosity, String msg, String packageName) Deprecated.useProgressTrace
instead.void
Maapi.reportProgressStop
(Maapi.Progress progress) Deprecated.useProgressTrace
instead.void
Maapi.reportProgressStop
(Maapi.Progress progress, String annotation) Deprecated.useProgressTrace
instead.void
Maapi.reportServiceProgress
(int tid, Maapi.Verbosity verbosity, String msg, String packageName, ConfPath servicePath) Deprecated.useProgressTrace
instead.Maapi.reportServiceProgressStart
(int tid, Maapi.Verbosity verbosity, String msg, String packageName, ConfPath servicePath) Deprecated.useProgressTrace
instead.void
Maapi.reportServiceProgressStop
(Maapi.Progress progress) Deprecated.useProgressTrace
instead.void
Maapi.reportServiceProgressStop
(Maapi.Progress progress, String annotation) Deprecated.useProgressTrace
instead.Maapi.requestAction
(ConfXMLParam[] params, int nshash, String fmt, Object... arguments) Same asMaapi.requestAction(ConfXMLParam[], String, Object...)
Since actions are not associated with transactions, the namespace hashnshash
must be provided and the path to the action, i.e.Maapi.requestAction
(ConfXMLParam[] params, String fmt, Object... arguments) Invokes an action defined in the data model annotated withtailf:action
(see tailf_yang_extensions(5)).Maapi.requestAction
(List<ConfXMLParam> params, int nshash, String fmt, Object... arguments) Maapi.requestAction
(List<ConfXMLParam> params, String fmt, Object... arguments) Same asMaapi.requestAction(ConfXMLParam[], String, Object...)
with the difference that theparams
isList
instead ofConfXMLParam
array.Maapi.requestActionTh
(int tid, ConfXMLParam[] params, String fmt, Object... arguments) Same asMaapi.requestAction(ConfXMLParam[], String, Object...)
with the difference that the fmt is not required to have a namespace prefix in the root tag.Maapi.requestActionTh
(int tid, List<ConfXMLParam> params, String fmt, Object... arguments) void
QueryResult.reset()
Reset/Rewind a running query so that it starts from the beginning again.void
QueryResult.reset
(int offset) Reset/Rewind a running query to a specific offset.long
QueryResult.resultCount()
Get number of elements in the result.void
Maapi.revert
(int tid) Remove all changes in the transaction.void
Maapi.safeCreate
(int tid, ConfPath path) Create a new list entity in the XML tree.void
Maapi.safeCreate
(int tid, String fmt, Object... arguments) Create a new entity in the XML tree.void
Maapi.safeDelete
(int tid, String fmt, Object... arguments) Deletes a node and all its children from the XML data tree.Maapi.safeGetElem
(int tid, ConfPath path) Reads a value from thepath
specifiedMaapi.safeGetElem
(int tid, String fmt, Object... arguments) This reads a value from the path in fmt and returns the result.Maapi.safeGetObject
(int tid, String fmt, Object... arguments) This is a variant of getObject() that returns null if the object doesn't existMaapi.saveConfig
(int tid, EnumSet<MaapiConfigFlag> flags) Save the entire config in different formats.Maapi.saveConfig
(int tid, EnumSet<MaapiConfigFlag> flags, ConfPath path) Save the subtree in different formats.Maapi.saveConfig
(int tid, EnumSet<MaapiConfigFlag> flags, String fmt, Object... args) Save the subtree in different formats, with ability to XPath Filtering.void
Set CLI session parameter.void
Maapi.setAttr
(int tid, ConfAttributeValue attr, String fmt, Object... args) Set an attribute for a configuration node.void
Maapi.setComment
(int tid, String comment) Set the "Comment" that is stored in the rollback file when a transaction towards running is committed.boolean
Maapi.setDelayedWhen
(int tid, boolean on) This function enables/disables the "delayed when" mode of a transaction.void
Maapi.setElem
(int tid, ConfObject value, ConfPath path) Set value to a leaf node.void
Maapi.setElem
(int tid, ConfObject value, String fmt, Object... arguments) Set value to a leaf node.void
Set value to a leaf node.void
Set value to a leaf node.void
This method can modify some aspects of the read/write session, see MaapiFlag The flags are an Enumset ofMaapiFlag
void
Set the "Label" that is stored in the rollback file when a transaction towards running is committed.void
Maapi.setNamespace
(int tid, int nsid) void
Maapi.setNamespace
(int tid, String ns) Before can invoke any of read or write functions, we must indicate which namespace we are going to use.void
Maapi.setNextUserSessionId
(int usid) Set the user session id that will be assigned to the next user session started.void
Maapi.setObject
(int tid, ConfObject[] values, String fmt, Object... arguments) This writes a container object or a list entry object from the path in fmt and returns the result.void
Maapi.setReadOnlyMode
(boolean flag) Control if the node should accept write transactionsvoid
Maapi.setRunningDbStatus
(int status) Explicitly sets the systems notion of the consistency state.void
Maapi.setUserSession
(int usid) Associate this Maapi instance with an already existing user session.void
Maapi.setValues
(int tid, ConfXMLParam[] params, ConfPath path) Set arbitrary sub-elements of a container element in one bulk operation.void
Maapi.setValues
(int tid, ConfXMLParam[] params, String fmt, Object... arguments) Set arbitrary sub-elements of a container element in one bulk operation.void
Maapi.setValues
(int tid, List<ConfXMLParam> params, ConfPath path) Set arbitrary sub-elements of a container element in one bulk operation.void
Maapi.setValues
(int tid, List<ConfXMLParam> params, String fmt, Object... arguments) Set arbitrary sub-elements of a container element in one bulk operation.void
Maapi.sharedCreate
(int tid, ConfPath path) This is the variant of create() to use from FASTMAP code.void
Maapi.sharedCreate
(int tid, String fmt, Object... arguments) void
Maapi.sharedSetElem
(int tid, ConfObject value, ConfPath path) Set value to a leaf node from NCS FastMap code.void
Maapi.sharedSetElem
(int tid, ConfObject value, String fmt, Object... arguments) Set value to a leaf node from NCS FastMap code This method is the equivalent of setElem() except that it can only be called from NCS FastMap service code.void
Maapi.sharedSetElem
(int tid, String value, String fmt, Object... arguments) Set value to a leaf node from NCS FastMap code.void
Maapi.sharedSetValues
(int tid, ConfXMLParam[] params, ConfPath path) Set arbitrary sub-elements of a container element in one bulk operation from NCS FastMap code.void
Maapi.sharedSetValues
(int tid, ConfXMLParam[] params, String fmt, Object... arguments) Set arbitrary sub-elements of a container element in one bulk operation from NCS FastMap code.void
Maapi.sharedSetValues
(int tid, List<ConfXMLParam> params, ConfPath path) Set arbitrary sub-elements of a container element in one bulk operation from NCS FastMap code.void
Maapi.sharedSetValues
(int tid, List<ConfXMLParam> params, String fmt, Object... arguments) Set arbitrary sub-elements of a container element in one bulk operation from NCS FastMap code.void
Maapi.snmpaReload
(boolean synchronous) When the ConfD/NCS SNMP Agent config tree is implemented by an external data provider, this method can be used by the data provider to notify ConfD/NCS when there is a change to the data.void
Maapi.snmpSendNotification
(String notifName, String notifyTarget, String ctxName, SnmpVarbind[] varbinds) Send SNMP notification.void
Maapi.startPhase
(int phase) Once the ConfD/NCS daemon has been started in phase0 it is possible to use this function to tell the daemon to proceed to startPhase 1 or 2.void
Maapi.startPhase
(int phase, boolean synchronous) Once the ConfD/NCS daemon has been started in phase0 it is possible to use this function to tell the daemon to proceed to start phase 1 or 2.Maapi.startSpan
(int tid, Maapi.Verbosity verbosity, String msg, ConfPath path, Attributes attributes, Span[] links) Create a progress span.int
Maapi.startTrans
(int dbname, int mode) Start a new transaction towards the specified databasedbname
with a transaction modemode
.int
Maapi.startTrans
(int dbname, int mode, String vendor, String product, String version, String clientId) int
Maapi.startTrans2
(int dbname, int mode, int usid) Start a new transaction towards database within an existing user session specified byusid
.int
Maapi.startTransFlags
(int dbname, int mode, int usid, EnumSet<MaapiFlag> flags) Start a new transaction towards the specified databasedbname
with a transaction modemode
with additionalflags
to control read/write sessions.int
Maapi.startTransInTrans
(int mode, int usid, int tid) Start a new transaction within an existing user session and another transaction as backendvoid
Maapi.startUserSession
(String user, InetAddress srcip, String context, String[] groups, MaapiUserSessionFlag proto) Establish a new user session on thisMaapi
instance.void
Maapi.startUserSession
(String user, InetAddress srcip, String context, String[] groups, MaapiUserSessionFlag proto, String vendor, String product, String version, String clientId) void
Maapi.stop()
Requests that the daemon stops, returns when daemon has stopped.void
Maapi.stop
(boolean synchronous) Stops the daemon.void
QueryResult.stop()
Stops the running query and makes the server end free up any internal resources associated with the query.void
Maapi.sysMessage
(String to, String message) Send a message to a specific user, a specific user session or all users depending on the to parameter.void
Maapi.unlock
(int db) This function releases a lock previously acquired using the lock() method.void
Maapi.unlockPartial
(int lockId) This methods releases a lock previously acquired using the lockPartial() method.void
Maapi.userMessage
(String to, String message, String sender) Send a message to a specific user, a specific user session or all users depending on the to parameter.String[]
Maapi.validateToken
(String token, InetAddress srcAddr, int srcPort, String context, MaapiUserSessionFlag proto) If external token validation (see /confdConfig/aaa/externalValidation) is in use, this method can be used to ask ConfD/NSO to validate such a token.void
Maapi.validateTrans
(int tid, boolean unlock, boolean force) Validates a transaction specified by transaction handletid
void
Maapi.waitStart
(int phase) Wait until the daemon has completed a certain start phase.void
Maapi.waitStarted()
Wait until the daemon is fully started, i.e.void
Write to the CLI.Maapi.xpath2kpath
(String xpath) Convert a XPath path to a ConfPath object.Maapi.xpath2kpath_th
(int tid, String xpath) void
Maapi.xpathEval
(int tid, MaapiXPathEvalResult xpatheval, MaapiXPathEvalTrace xpathtrace, String expr, Object initstate, String fmt, Object... arguments) Evaluated the xpath expression as supplied in byexpr
.Maapi.xpathEvalExpr
(int tid, String expr, MaapiXPathEvalTrace xpathtrace, String fmt, Object... arg) Evaluate the xpath expression given inexpr
parameter and return the result as a string.ModifierConstructorDescriptionApplyResult
(ConfResponse result) CommitQueueResult
(long queue_id, long status) Deprecated.UseCommitQueueResult(ConfResponse)
instead.CommitQueueResult
(ConfResponse result) DryRunResult
(ConfResponse result) Creates a new instance ofMaapi
supplying a established open socket to ConfD/NCS daemon. -
Uses of ConfException in com.tailf.ncs
Modifier and TypeMethodDescriptionstatic Cdb
ResourceManager.getCdbResource
(Object object, ResourceType cdbType, Scope scope) static Cdb
ResourceManager.getCdbResource
(Object object, ResourceType cdbType, Scope scope, String qualifier) static Maapi
ResourceManager.getMaapiResource
(Object object, Scope scope) static Maapi
ResourceManager.getMaapiResource
(Object object, Scope scope, String qualifier) static void
ResourceManager.registerResources
(Object annotatedObject) This method will inject resources into annotated fields of the object instances passed as argumentModifierConstructorDescriptionNavuEventHandler
(String host, int port, String notifSubscriberName) Create an instance of the NavuEventHandler with a specified host and port.NavuEventHandler
(InetSocketAddress addr, String notifSubscriberName) Create an instance of the NavuEventHandler with a InetSocketAddress to NCS host and IPC port.NavuEventHandler
(Socket socket, String notifSubscriberName) Deprecated. -
Uses of ConfException in com.tailf.ncs.alarmman.common
ModifierConstructorDescriptionAlarmAttribute
(ConfNamespace ns, String attributeId, ConfValue value) ManagedObject
(ConfPath value) Creates a ManagedObject as a ConfObjectRef defined from a ConfPath.StatusChangeAttribute
(ConfNamespace ns, String attributeId, ConfValue value) -
Uses of ConfException in com.tailf.ncs.alarmman.consumer
Modifier and TypeMethodDescriptionstatic AlarmSourceCentral
AlarmSourceCentral.getAlarmSource
(int alarmQueueLen, Cdb cdb) Retrieves the alarm source central object. -
Uses of ConfException in com.tailf.ncs.alarmman.producer
Modifier and TypeMethodDescriptionvoid
AlarmSink.submitAlarm
(Alarm alarm) Submits the specifiedAlarm
into the alarm list.boolean
AlarmSink.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 specifiedAlarm
into the alarm list.boolean
AlarmSink.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 specifiedAlarm
into the alarm list. -
Uses of ConfException in com.tailf.ncs.template
Modifier and TypeMethodDescriptionvoid
Template.apply
(Maapi maapi, int tid, ConfPath rootPath, TemplateVariables variables) Apply a template in the specified contextvoid
Template.apply
(NavuNode root, TemplateVariables variables) Apply a template in the specified contextstatic boolean
Template.exists
(ServiceContext context, String template) Tests for existence of a template.static boolean
static boolean
Template.exists
(NavuContext context, String template) Template.getTemplates
(ServiceContext aServiceContext) Returns a set consisting of the loaded templates.Template.getTemplates
(Maapi maapi) Template.getTemplates
(NavuContext context) String[]
Template.getVariables()
ModifierConstructorDescriptionTemplate
(ServiceContext aServiceContext, String aTemplateName) Construct a Template.Template
(NavuContext aContext, String aTemplateName) -
Uses of ConfException in com.tailf.ned
-
Uses of ConfException in com.tailf.notif
ModifierConstructorDescriptionNotif
(Socket socket, EnumSet<NotificationType> eventTypes) Same functionality as for Notif(socket, eventTypes, cfg) except that no extra configuration is expected to be set in eventTypes.Notif
(Socket socket, EnumSet<NotificationType> eventTypes, int heartbeatInterval) Same functionality as for Notif(socket, eventTypes, cfg) except that only heartbeat notifications are expected to require to be configured Since the ConfD/NCS daemon expects initialization within 5 seconds after a new socket is established this constructor should be called directly for a new socket.Notif
(Socket socket, EnumSet<NotificationType> eventTypes, int heartbeatInterval, int healthCheckInterval) Same functionality as for Notif(socket, eventTypes, cfg) except that only heartbeat and healtcheck notifications are expected to require to be configured.Notif
(Socket socket, EnumSet<NotificationType> eventTypes, NotificationCfg cfg) Creates a notification instance. -
Uses of ConfException in com.tailf.progress
Modifier and TypeMethodDescriptionvoid
End a spanvoid
End a span with annotationvoid
ProgressTrace.event
(Maapi.Verbosity verbosity, String message) Report an eventvoid
ProgressTrace.event
(Maapi.Verbosity verbosity, String message, Attributes attributes) Report an eventvoid
Report an eventvoid
ProgressTraceNed.event
(Maapi.Verbosity verbosity, String message) Report an eventvoid
ProgressTraceNed.event
(Maapi.Verbosity verbosity, String message, Attributes attributes) Report an eventvoid
Report an eventProgressTrace.startSpan
(Maapi.Verbosity verbosity, String message) Start a new spanProgressTrace.startSpan
(Maapi.Verbosity verbosity, String message, Attributes attributes, Span[] links) Start a new spanStart a new spanProgressTraceNed.startSpan
(Maapi.Verbosity verbosity, String message) Start a new spanProgressTraceNed.startSpan
(Maapi.Verbosity verbosity, String message, Attributes attributes, Span[] links) Start a new spanStart a new spanModifierConstructorDescriptionProgressTrace
(Maapi maapi, int tid) Creates a new instance ofProgressTrace
ProgressTraceNed
(Maapi maapi, String deviceId) Creates a new instance ofProgressTraceNed
-
Uses of ConfException in com.tailf.util
Modifier and TypeMethodDescriptionvoid
ConfXMLParamToXML.serialize
(Document doc, OutputStream out) Flushes the source documentdoc
to the targetout
.void
Flushes the source documentdoc
to the targetout
ConfXMLParamToXML.toXML
(ConfXMLParam[] param) Transforms the supplied parameterConfXMLParam[]
to a document (Document
).ConfXMLParamToXML.toXML
(ConfXMLParam[] param, boolean includeEmpty) Transforms the supplied parameterConfXMLParam[]
to a document (Document
).ConfXMLParamToXML.toXML
(ConfXMLParam[] param, String parentNode, String parentURI) Transforms the suppliedConfXMLParam[]
to a document (Document
).ConfXMLParamToXML.toXML
(ConfXMLParam[] param, String parentNode, String parentURI, boolean includeEmpty) Transforms the supplied parameterConfXMLParam[]
to a document (Document
).XMLtoConfXMLParam.toXMLParam()
Converts the xml to corresponding ConfXMLParam[] The resulting ConfXMLParam[] is prepared for a getValues() call.XMLtoConfXMLParam.toXMLParam
(int mode) Converts the xml to corresponding ConfXMLParam[] The mode parameter controls whether this ConfXMLParam[] should be prepared for a getValues() call or for a setValues() call using usingXMLtoConfXMLParam.MODE_GET
orXMLtoConfXMLParam.MODE_SET
respectively.ModifierConstructorDescriptionXMLtoConfXMLParam
(String xml, ConfPath path) Main constructor for initializing the xml parser.