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

  1. 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.
  2. Establish a new transaction
  3. Issue a series of read and write operations towards the transaction
  4. Commit or abort the transaction
MAAPI also has support for several operations that do not work immediately towards a transaction. This includes users session management, locking, and candidate manipulation.