org.ogf.graap.wsag.samples.actions
Class SampleSDTMonitor

java.lang.Object
  extended by org.ogf.graap.wsag.samples.actions.SampleSDTMonitor
All Implemented Interfaces:
IServiceTermMonitoringHandler

public class SampleSDTMonitor
extends Object
implements IServiceTermMonitoringHandler

SampleSDTMonitor Once agreement instance is initialized, for each service description term and guarantee term in the agreement offer, a corresponding service term state and guarantee term state with a same name is created. Service term states are initially in the NOT_READY state, while guarantee term states are initially in the NOT_DETERMINED state. The following Monitoring Handler update the RESOURCE_STD and TIME_CONSTRAINT_SDT service term states. JSDL document is appended to the RESOURCE_STD service term state and reserved host name is set. TimeConstraint document is appended to the TIME_CONSTRAINT_SDT service term state.

Author:
hrasheed

Constructor Summary
SampleSDTMonitor()
           
 
Method Summary
 void monitor(IMonitoringContext context)
          The monitoring handler implements the domain specific logic to retrieve the state of a particular service term (or a set of service terms).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleSDTMonitor

public SampleSDTMonitor()
Method Detail

monitor

public void monitor(IMonitoringContext context)
             throws Exception
The monitoring handler implements the domain specific logic to retrieve the state of a particular service term (or a set of service terms). The service term states can be retrieved via the monitoring context. the monitoring context can also be used to store and access variables from different monitoring handlers and store the over multiple invocations.

Specified by:
monitor in interface IServiceTermMonitoringHandler
Parameters:
context - the monitoring context
Throws:
Exception - Indicates an error in the monitoring handler. The agreement states will not be updated during this monitoring cycle.


Copyright © 2008-2012. All Rights Reserved.