/stats
operation. By implementing the {@link Iterable
Worth noting is that integer values are returned as {@link BigInteger} objects. This is done to match the unconstrained size provided by Riak.
For example, using the HTTPClusterClient you can retrieve stats from all of your nodes:
HTTPClusterConfig c = new HTTPClusterConfig(10); HTTPClientConfig cc HTTPClientConfig.defaults(); c.addHosts(cc,"192.168.1.5:8098","192.168.1.6:8098","192.168.1.7:8098"); IRiakClient riakClient = RiakFactory.newClient(c); for (NodeStats ns : riakClient.stats()) { System.out.println(ns.nodename()); Syste.out.println(ns.vnodeGets()); }
|
|
|
|