Package com.tailf.maapi
package com.tailf.maapi
MAAPI is an API which provides full access to the systems internal
transaction engine.
MAAPI is used in a number of different settings.
- We use MAAPI if we want to write our own management application. Using the MAAPI interface, it is for example possible to implement a custom built command line interface (CLI) or Web UI. This usage is described below.
- We use MAAPI to access data inside a not yet committed transaction when we wish to implement semantic validation in Java. or implement hook or transformation code.
- We use MAAPI to access data inside a not yet committed transaction when we wish to implement CLI wizards in Java. Here we can invoke an external program which can read and write, both to the executing transaction, but also interact with the CLI user.
- Finally MAAPI is also used during database upgrade to access and write data to a special upgrade transaction.
A typical sequence of API calls when using MAAPI to write a management application would be
- Create a user session, this is the equivalent of an established SSH connection from a NETCONF manager. It is up to the MAAPI application to authenticate users. The TCP connection from the MAAPI application to the system is a clear text connection.
- Establish a new transaction
- Issue a series of read and write operations towards the transaction
- Commit or abort the transaction
-
ClassDescriptionRepresents a successful invocation of the
Maapi.applyTransParams(int, boolean, CommitParams)
method.Result ofMaapi.CLICmdToPath(int, String)
An object containing two string fields containing the resulting namespace and pathGet CLI Interaction class for interaction with the user via the CLI.flags for controlling cmd to CLI via CLIInteraction classFlags used inMaapi.CLIPathCmd(int,EnumSet,String,Object...)
Represents a successful invocation of theMaapi.applyTransParams(int, boolean, CommitParams)
method.Represents a successful invocation of theMaapi.applyTransParams(int, boolean, CommitParams)
method.This class implements the Management Agent API (MAAPI).To be used in:Maapi.reportProgress(int,Verbosity,String)
Maapi.reportProgress(int,Verbosity,String,String)
Maapi.reportProgressStart(int,Verbosity,String,String)
Maapi.reportNedProgress(Verbosity,String,String,String)
Maapi.reportNedProgressStart(Verbosity,String,String,String)
Maapi.reportServiceProgress(int,Verbosity,String,ConfPath)
Maapi.reportServiceProgress(int,Verbosity,String,String,ConfPath)
Authentication result container.Data encryption and decryption utility class.Data encryption and decryption helper class for each supported encryption algorithm.Whenever we wish to iterate over a set of objects in the XML tree, we must first initialize a cursor.Flags for use in:Maapi.deleteAll(int, MaapiDeleteAllFlag)
This interface is used with the diffIterate method in Maapi.Exception raised from the maapi packageFlags used byMaapi.setFlags(int,EnumSet)
method to control read/write sessions.Represents configuration data input stream used to download configurations.This interface is used with the Iterate method in Maapi.Warnings raised from the maapi packageWarnings raised from the maapi packageConfiguration data output stream used to upload configurations.General class for protocol constantsMaapi retryable operation that will be called repeatadly until no transaction conflict occurred (or max number of tries was reached).Rollback file descriptor class.This class is used to emulate and replace the classes that was previously loaded manually.Handles the schema information from the data models loaded.Enum containing all possible node values.Utility class for MaapiSchemas This class contains tools for making recursive schema printouts.User session descriptor class.flags for defining User Session protocolWarnings raised from the maapi packageThis interface is used withxpathEval
method inMaapi
.This interface is used with thexpathEval
method in Maapi.flags us by Maapi.moveOrdered method to control ordered-by user ordersQueryResult<T extends ResultType>Represent a result from a XPath query.QueryResult.Entry<E extends ResultType>Represent result entry in a XPath query.Specifies the result type from XPath query.XPath Result in keypath format.XPath Result in keypath and value format.XPath Result in string format.XPath Result in ConfXMLParam format.Theresult(ConfObject[],ConfValue,Object)
method should return any of the following two constants