org.usergrid.system
Class UsergridSystemMonitor

java.lang.Object
  extended by org.usergrid.system.UsergridSystemMonitor

public class UsergridSystemMonitor
extends Object

Provide a single spot for monitoring usergrid system health

Author:
zznate

Constructor Summary
UsergridSystemMonitor(String buildNumber, me.prettyprint.hector.api.Cluster cluster)
          Must be instantiated with a build number and a cluster to be of any use
 
Method Summary
 String getBuildNumber()
           
 boolean getIsCassandraAlive()
          Wraps "describe_thrift_version API call as this hits a static string in Cassandra.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsergridSystemMonitor

public UsergridSystemMonitor(String buildNumber,
                             me.prettyprint.hector.api.Cluster cluster)
Must be instantiated with a build number and a cluster to be of any use

Method Detail

getIsCassandraAlive

public boolean getIsCassandraAlive()
Wraps "describe_thrift_version API call as this hits a static string in Cassandra. This is the most lightweight way to assure that Hector is alive and talking to the cluster.

Returns:
true if we have a lit connection to the cluster.

getBuildNumber

public String getBuildNumber()
Returns:
a string representing the build number


Copyright © 2013. All Rights Reserved.