Objectivity/DB 10.2.1 - Sample Applications

Printer-friendly version

Hello World!

Description: This HelloWorld application shows the basics of creating a federated database and a schema. It includes codes that creates a database, creates a container in the database, adds objects in the container, and then accesses these objects via a name look-up.
C++ Java

Parallel Ingest

Description: This Parallel Ingest application demonstrates the raw data ingest speed of Objectivity/DB. In this example, we create a simple 2 DB Federation and populate it with a set of simple objects. The ingest occurs as two separate concurrent threads are created and instructed to fill a particular DB with these objects. The objects will be clustered within one of two containers per DB. The application measures the time it takes the threads to finish the ingest and reports that information to the user. (Total objects ingested per thread, total objects ingested in milliseconds, and the number of objects ingested per second). The number of threads and databases can be scaled up to your desire. To avoid lock conflicts, you should have each thread writing to its own database.

Rental Fleet

Description: This application demonstrates the basic operations used by the agents and managers of a vehicle rental company. The operations supported are:
  • Creating databases that represent the locations of the rental companies (e.g. an airport location)
  • Creating containers that represent the company at its location (e.g. a company's name)
  • Adding vehicles to the rental company‚Äôs fleet of vehicles.
  • Renting vehicles that satisfy a predicate.
  • Returning rented vehicles.
Users can also take advantage of Objectivity/DB High Availability, which allows the user to replicate and distribute their database in different locations(machines). Please see our Objectivity/DB High Availability for more details.
C++ Java

Network Elements

  • Creates a federated database that contains the network element node object model
  • Traverses all the tree nodes of the object model
  • Scans through all the circuits

Creation Phase

  1. Populates the federated database with one of the schemas list below.
  2. Creates a database
  3. Creates containers that will allow the distribution and scalability
  4. Creates tree nodes and links bottom most nodes into a circuit
  5. Continues to create until complete specific number of loops
  6. Commits Transaction

Traversal Phase

  1. Starting from top tree node, a recursive scan is done to count all the node's children
  2. Reports number of nodes found and the time it took to traverse those nodes
  3. Commits transaction

Scan Phase

  1. Scans circuit container, iterates through the circuit, and counts the circuits.
  2. Reports the number of circuits found and the time it took to iterate through them
  3. Commits transaction
Using Associations
C++ Java
Using Collections
C++ Java
Tuesday, October 23, 2012