Chapter 3. Berkeley DB Client Driver APIs

Table of Contents

System Requirements
Connecting to a Server without SSL
Connecting to a Server with SSL
Administrative Functions
Shutdown the Server
Using ping
Getting the server version
Cleaning up Inactive Handles
Deleting an Environment and Its Databases
Removing and Renaming Objects
Key/Data Pairs and Bulk Operations
Statistic Functions
Secondary Databases
Multi-Threaded Applications

In this chapter, we describe in detail all the aspects of Berkeley DB client driver APIs. The client driver APIs are modeled after Java base APIs. Therefore a good understanding of Berkeley DB Getting Started with Transaction Processing is necessary.

This chapter begins by describing how to connect to a server. It then follows with a detailed list of differences between the client driver APIs and Java base APIs.

System Requirements

The client driver requires JDK 8 or above, slf4j, log4j , and Apache Thrift's Java library. All libraries are required at both compile and run time.

Note

The appropriate versions of the third-party libraries slf4j, log4j and Apache Thrift are bundled in the release package. You do not need to install them separately.

For Java applications, you should add the following jar files under the lang/thrift/jars directory to your applications classpath:

  • db_thrift_client.jar

  • db_thrift_interface.jar

  • libthrift.jar

  • log4j-1.2-api.jar

  • log4j-api.jar

  • log4j-core.jar

  • log4j-slf4j-impl.jar

  • slf4j-api.jar