org.springframework.data.couchbase.monitor
Class AbstractMonitor
java.lang.Object
org.springframework.data.couchbase.monitor.AbstractMonitor
- Direct Known Subclasses:
- ClientInfo, ClusterInfo
public abstract class AbstractMonitor
- extends Object
Base class to encapsulate common configuration settings.
- Author:
- Michael Nitschinger
|
Constructor Summary |
protected |
AbstractMonitor(com.couchbase.client.CouchbaseClient client)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMonitor
protected AbstractMonitor(com.couchbase.client.CouchbaseClient client)
getClient
public com.couchbase.client.CouchbaseClient getClient()
getTemplate
protected RestTemplate getTemplate()
randomAvailableHostname
protected String randomAvailableHostname()
getStats
protected Map<SocketAddress,Map<String,String>> getStats()
- Fetches stats for all nodes.
- Returns:
- stats for each node
getStats
protected Map<String,String> getStats(SocketAddress node)
- Returns stats for an individual node.
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.