|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.analytics.DBAnalyticsSource
public class DBAnalyticsSource
This class sets up the analytics package to report metrics into Ganglia for the various DB operations such as: reads per second, average read latency, writes per second, average write latency. Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com ) & Karthik Ranganathan ( kranganathan@facebook.com )
Constructor Summary | |
---|---|
DBAnalyticsSource()
Create all the required records we intend to display, and register with the AnalyticsContext. |
Method Summary | |
---|---|
void |
doUpdates(AnalyticsContext context)
Update each of the records with the relevant data |
void |
updateReadStatistics(long latency)
Update the read statistics. |
void |
updateWriteStatistics(long latency)
Update the write statistics. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBAnalyticsSource()
Method Detail |
---|
public void doUpdates(AnalyticsContext context)
doUpdates
in interface IAnalyticsSource
context
- the reference to the context which has called this callbackpublic void updateReadStatistics(long latency)
public void updateWriteStatistics(long latency)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |