org.ogf.graap.wsag.client.wsrf.impl
Class WsrfNegotiationService

java.lang.Object
  extended by org.ogf.graap.wsag.client.wsrf.impl.WsrfNegotiationService

public class WsrfNegotiationService
extends Object

Default implementation of an negotiation service client.

Author:
hrasheed

Constructor Summary
WsrfNegotiationService(WsrfResourceClient client)
           
 
Method Summary
 void advertise(NegotiationOfferType[] quotes)
          
 void destroy()
          
 AgreementTemplateType[] getNegotiableTemplates()
          
 NegotiationContextType getNegotiationContext()
          
 NegotiationOfferType[] getNegotiationOffers()
          
 WsrfResourceClient getWebServiceClient()
          
 NegotiationOfferType[] negotiate(NegotiationOfferType[] quotes)
          
 void terminate()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsrfNegotiationService

public WsrfNegotiationService(WsrfResourceClient client)
Parameters:
client - the WSRF resource client to use
Method Detail

getNegotiationContext

public NegotiationContextType getNegotiationContext()
                                             throws ResourceUnknownException,
                                                    ResourceUnavailableException

Throws:
ResourceUnknownException
ResourceUnavailableException

getNegotiableTemplates

public AgreementTemplateType[] getNegotiableTemplates()
                                               throws ResourceUnknownException,
                                                      ResourceUnavailableException

Throws:
ResourceUnknownException
ResourceUnavailableException

getNegotiationOffers

public NegotiationOfferType[] getNegotiationOffers()
                                            throws ResourceUnknownException,
                                                   ResourceUnavailableException

Throws:
ResourceUnknownException
ResourceUnavailableException

negotiate

public NegotiationOfferType[] negotiate(NegotiationOfferType[] quotes)
                                 throws NegotiationException,
                                        ResourceUnknownException,
                                        ResourceUnavailableException

Throws:
NegotiationException
ResourceUnknownException
ResourceUnavailableException

advertise

public void advertise(NegotiationOfferType[] quotes)
               throws NegotiationException,
                      ResourceUnknownException,
                      ResourceUnavailableException

Throws:
NegotiationException
ResourceUnknownException
ResourceUnavailableException

terminate

public void terminate()
               throws ResourceUnavailableException,
                      ResourceUnknownException

Throws:
ResourceUnavailableException
ResourceUnknownException

getWebServiceClient

public WsrfResourceClient getWebServiceClient()


destroy

public void destroy()
             throws ResourceUnavailableException,
                    ResourceUnknownException

Throws:
ResourceUnavailableException
ResourceUnknownException


Copyright © 2008-2012. All Rights Reserved.