org.ogf.graap.wsag.server.monitoring
Class SLAFunctions
java.lang.Object
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
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 |
SLAFunctions
public SLAFunctions()
sumInt
public int sumInt(int a,
int b)
- Builds the sum of two integers.
- Parameters:
a
- ab
- 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.