org.ogf.graap.wsag.server.monitoring
Class SLAFunctions

java.lang.Object
  extended by org.ogf.graap.wsag.server.monitoring.SLAFunctions

public class SLAFunctions
extends Object

Implementation of additional SLA-related functions that can be used in qualifying condition or service level objective expressions.

Author:
owaeld

Constructor Summary
SLAFunctions()
           
 
Method Summary
 int countViolations(int duration)
          Counts the number of violations of a guarantee in the specified duration.
 int sumInt(int a, int b)
          Builds the sum of two integers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLAFunctions

public SLAFunctions()
Method Detail

sumInt

public int sumInt(int a,
                  int b)
Builds the sum of two integers.

Parameters:
a - a
b - b
Returns:
a + b

countViolations

public int countViolations(int duration)
Counts the number of violations of a guarantee in the specified duration. The violations are thereby scoped to the guarantee in which this expression is defined.

Parameters:
duration - the timeframe for which the violations are returned
Returns:
the number of guarantee violations


Copyright © 2008-2012. All Rights Reserved.