Spring Data Couchbase

org.springframework.data.couchbase.monitor
Class AbstractMonitor

java.lang.Object
  extended by 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)
           
 
Method Summary
 com.couchbase.client.CouchbaseClient getClient()
           
protected  Map<SocketAddress,Map<String,String>> getStats()
          Fetches stats for all nodes.
protected  Map<String,String> getStats(SocketAddress node)
          Returns stats for an individual node.
protected  RestTemplate getTemplate()
           
protected  String randomAvailableHostname()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMonitor

protected AbstractMonitor(com.couchbase.client.CouchbaseClient client)
Method Detail

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.


Spring Data Couchbase

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.