com.tibco.rta.runtime.metric
Class MultiValueMetricFunction<N>

java.lang.Object
  extended by com.tibco.rta.runtime.metric.AbstractMetricFunction<N>
      extended by com.tibco.rta.runtime.metric.MultiValueMetricFunction<N>
All Implemented Interfaces:
MetricFunction<N>

public abstract class MultiValueMetricFunction<N>
extends AbstractMetricFunction<N>

Providers of metric computations should implement this interface. The metric computation engine will call into this interface's compute method in order to acquire its metric value.


Constructor Summary
MultiValueMetricFunction()
           
 
Method Summary
abstract  java.util.Collection<N> compute(MetricNode metricNode, MultiValueMetric<N> metric, RtaNodeContext context)
          Implementation classes will provide the algorithm to compute the metric values via this method It will be given a MetricNode to for which the metric value needs to be computed
 
Methods inherited from class com.tibco.rta.runtime.metric.AbstractMetricFunction
init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiValueMetricFunction

public MultiValueMetricFunction()
Method Detail

compute

public abstract java.util.Collection<N> compute(MetricNode metricNode,
                                                MultiValueMetric<N> metric,
                                                RtaNodeContext context)
                                         throws java.lang.Exception
Implementation classes will provide the algorithm to compute the metric values via this method It will be given a MetricNode to for which the metric value needs to be computed

Parameters:
metricNode - The metric node for which the metric value needs to be computed
Returns:
true if the metric computation should propagate or rollup to its parent, false otherwise
Throws:
java.lang.Exception - if any problem was encountered during metric computation depending on the implementation


Copyright © 2000-2014 TIBCO Inc. All Rights Reserved.