ariba.util.core
Class PerformanceChecker

java.lang.Object
  extended by ariba.util.core.PerformanceChecker

public class PerformanceChecker
extends Object

Object used by the PerformanceCheck to check a specific metric (or PerformanceStateCore). The thresholds used to check a metric are defined with parameters.


Constructor Summary
PerformanceChecker(PerformanceStateCore metric)
           
PerformanceChecker(PerformanceStateCore metric, boolean checkTimer, long errorLevel, long warningLevel)
           
PerformanceChecker(PerformanceStateCore metric, long errorLevel, long warningLevel)
           
 
Method Summary
 int check(PerformanceState.Stats stats, PerformanceCheck.ErrorSink sink)
           
 String getMetricName()
           
 long getValue(PerformanceState.Stats stats)
           
 String getValueString(PerformanceState.Stats stats)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceChecker

public PerformanceChecker(PerformanceStateCore metric)

PerformanceChecker

public PerformanceChecker(PerformanceStateCore metric,
                          long errorLevel,
                          long warningLevel)

PerformanceChecker

public PerformanceChecker(PerformanceStateCore metric,
                          boolean checkTimer,
                          long errorLevel,
                          long warningLevel)
Method Detail

getMetricName

public final String getMetricName()

getValue

public long getValue(PerformanceState.Stats stats)

getValueString

public String getValueString(PerformanceState.Stats stats)

check

public int check(PerformanceState.Stats stats,
                 PerformanceCheck.ErrorSink sink)


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.