Create a Sample Adapter

This example illustrates how to create a sample adapter.

  1. Select Adapter Logic

    When you implement an adapter, you must choose how to handle the condition logic in the implementation (property conditions, ID conditions, reconciliation conditions, and link conditions).

    1. Retrieve the entire data into the adapter memory and let it select or filter the needed CI Instances.

    2. Convert all the conditions into the data source language and let it filter and select the data. For example:

      • Convert the condition into a SQL query.

      • Convert the condition into a Java API filter object.

    3. Filter some of the data on the remote service, and have the adapter select and filter the remainder.

    In the MyAdapter example, the logic in option a is used.

  2. Load the Project

    Copy the files from the C:\UCMDB\UCMDBServer\tools\adapter-dev-kit\SampleAdapters folder and follow the instructions in the readme files.

    Note If you use an adapter with large data sets, you may need to use caching and indexing to improve performance for Federation.

    Online javadocs documentation is available at:

    C:\UCMDB\UCMDBServer\deploy\ucmdb-docs\docs\eng\APIs\DBAdapterFramework_JavaAPI\index.html