public class Statistics
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Statistics.StatEntry
Basic handler's statistics.
|
Constructor and Description |
---|
Statistics()
Constructor
|
Modifier and Type | Method and Description |
---|---|
Statistics.StatEntry |
get(org.apache.curator.framework.CuratorFramework client,
java.lang.String handler) |
void |
update(org.apache.curator.framework.CuratorFramework client,
java.lang.String handler,
int rows)
Updates statistics for a given handler.
|
public void update(org.apache.curator.framework.CuratorFramework client, java.lang.String handler, int rows)
client
- zookeeper's connectionhandler
- handler's namerows
- number of rows captured. If zero, only lastSeek is updated,
otherwise updates also lastRead.public Statistics.StatEntry get(org.apache.curator.framework.CuratorFramework client, java.lang.String handler)
client
- zookeeper client objecthandler
- handler's nameStatistics.StatEntry
object with basic statistics for the given
handler