Search:

Search all manuals
Search this manual
Manual
Membase Client Library: Java
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Membase Client Library: Java
Chapters

Chapter 6. Membase Client Library: Java — Statistics Operations

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

Table 6.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 MemcachedClient 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 MemcachedClient 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.