org.ogf.graap.wsag.api.client
Interface NegotiationClient

All Superinterfaces:
NegotiationService, WsClient
All Known Implementing Classes:
LocalNegotiationClientImpl, NegotiationClientImpl, RemoteNegotiationClientImpl

public interface NegotiationClient
extends WsClient, NegotiationService

NegotiationClient

Author:
hrasheed

Method Summary
 NegotiationClient clone()
          Returns a copy of the client.
 NegotiationOfferType getNegotiationOffer(String offerID)
          Returns the Negotiation Offer with the given offer id
 void terminate()
          Terminates a negotiation.
 
Methods inherited from interface org.ogf.graap.wsag.api.client.WsClient
getEndpoint, getProperties, getSecurityProperties, isUsingTrace, setProperties, setTrace
 
Methods inherited from interface org.ogf.graap.wsag.api.client.NegotiationService
advertise, destroy, getNegotiableTemplates, getNegotiationContext, getNegotiationOffers, getWebServiceClient, negotiate
 

Method Detail

getNegotiationOffer

NegotiationOfferType getNegotiationOffer(String offerID)
                                         throws ResourceUnknownException,
                                                ResourceUnavailableException
Returns the Negotiation Offer with the given offer id

Parameters:
offerID - the offerID of the negotiation offer to retrieve
Returns:
the negotiation offer with the given offer id
Throws:
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable

terminate

void terminate()
               throws ResourceUnknownException,
                      ResourceUnavailableException
Terminates a negotiation.

Specified by:
terminate in interface NegotiationService
Throws:
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable

clone

NegotiationClient clone()
                        throws CloneNotSupportedException
Returns a copy of the client.

Returns:
the cloned NegotiationClient
Throws:
CloneNotSupportedException - indicates that a particular client implementation does not support cloning


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.