org.apache.cassandra.analytics
Class OutputRecord

java.lang.Object
  extended by org.apache.cassandra.analytics.OutputRecord

public class OutputRecord
extends java.lang.Object

Represents a record of metric data to be sent to a metrics system. Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com ) & Karthik Ranganathan ( kranganathan@facebook.com )


Method Summary
 java.lang.Number getMetric(java.lang.String name)
          Returns the metric object which can be a Float, Integer, Short or Byte.
 java.util.Set<java.lang.String> getMetricNames()
          Returns the set of metric names.
 java.lang.Object getTag(java.lang.String name)
          Returns a tag object which is can be a String, Integer, Short or Byte.
 java.util.Set<java.lang.String> getTagNames()
          Returns the set of tag names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTagNames

public java.util.Set<java.lang.String> getTagNames()
Returns the set of tag names.


getTag

public java.lang.Object getTag(java.lang.String name)
Returns a tag object which is can be a String, Integer, Short or Byte.

Returns:
the tag value, or null if there is no such tag

getMetricNames

public java.util.Set<java.lang.String> getMetricNames()
Returns the set of metric names.

Returns:
the set of metric names

getMetric

public java.lang.Number getMetric(java.lang.String name)
Returns the metric object which can be a Float, Integer, Short or Byte.

Parameters:
name - name of the metric for which the value is being requested
Returns:
return the tag value, or null if there is no such tag


Copyright © 2009 The Apache Software Foundation