Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: Java 1.0
Community Wiki and Resources
Wiki: Java Client Library
Download Client Library
JavaDoc
Java Client Library
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Couchbase Client Library: Java 1.0
Chapters

Chapter 9. Statistics Operations

The Couchbase Java Client Library includes support for obtaining statistic information from all of the servers defined within a CouchbaseClient object. A summary of the commands is provided below.

Table 9.1. Java Client Library Statistics Methods

MethodTitle
client.getStats() Get the statistics from all connections
client.getStats(statname) Get the statistics from all connections

API Callclient.getStats()
Asynchronousno
Description Get the database statistics
ReturnsObject ( Binary object )
Arguments 
 None  

The first form of the getStats() command gets the statistics from all of the servers configured in your CouchbaseClient object. The information is returned in the form of a nested Map, first containing the address of configured server, and then within each server the individual statistics for that server.

API Callclient.getStats(statname)
Asynchronousno
Description Get the database statistics
ReturnsObject ( Binary object )
Arguments 
String statname Group name of a statistic for selecting individual statistic value

The second form of the getStats() command gets the specified group of statistics from all of the servers configured in your CouchbaseClient object. The information is returned in the form of a nested Map, first containing the address of configured server, and then within each server the individual statistics for that server.