com.endeca.itl.cas.api
Class Metric

java.lang.Object
  extended by com.endeca.itl.cas.api.Metric
Direct Known Subclasses:
MetricCrawlMode, MetricCrawlState, MetricCrawlStopCause, MetricDate, MetricLong, MetricString

public abstract class Metric
extends Object

A Metric is a key-value pair that holds the value of a particular metric. Keys are the metric's Id, and values are specified by the derived type (e.g. MetricLong, MetricString).


Constructor Summary
Metric()
           
Metric(MetricId metricId)
           
 
Method Summary
 boolean equals(Object other)
           
 MetricId getMetricId()
           
 int hashCode()
           
 void setMetricId(MetricId value)
           
 String toString()
           
protected abstract  String toValueString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Metric

public Metric()

Metric

public Metric(MetricId metricId)
Method Detail

getMetricId

public MetricId getMetricId()

setMetricId

public void setMetricId(MetricId value)

toValueString

protected abstract String toValueString()

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Endeca. All Rights Reserved.