org.ogf.graap.wsag.server.monitoring
Interface IGuaranteeEvaluator

All Known Implementing Classes:
SimpleGuaranteeEvaluator

public interface IGuaranteeEvaluator

The guarantee evaluator assesses the state of each guarantee defined in an agreement based on the agreement properties. The evaluator is invoked as part of the agreement monitoring process that is implemented by the MonitorableAgreement class, after the service term states of the agreement were updated. As a result of the guarantee evaluation process, the appropriate accounting events are propagated to an accounting system.

Author:
Oliver Waeldrich
See Also:
MonitorableAgreement, IServiceTermMonitoringHandler, IAccountingSystem

Method Summary
 GuaranteeEvaluationResultType evaluate(GuaranteeTermType guarantee, Map<String,Object> variables)
          Evaluates a given guarantee.
 IAccountingSystem getAccountingSystem()
          Deprecated.  
 void setAccountingSystem(IAccountingSystem accountingSystem)
          Deprecated.  
 

Method Detail

evaluate

GuaranteeEvaluationResultType evaluate(GuaranteeTermType guarantee,
                                       Map<String,Object> variables)
                                       throws Exception
Evaluates a given guarantee. The variables used in the qualifying condition and service level objective of the guarantee are passes a a map.

Parameters:
guarantee - the guarantee to evaluate
variables - a name/value map containing the variables
Returns:
the evaluated guarantee term state
Throws:
Exception - indicates an error while evaluating the guarantee term

setAccountingSystem

void setAccountingSystem(IAccountingSystem accountingSystem)
Deprecated. 

Parameters:
accountingSystem - the accounting system to use

getAccountingSystem

IAccountingSystem getAccountingSystem()
Deprecated. 

Returns:
the accounting system to use


Copyright © 2008-2012. All Rights Reserved.