|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ogf.graap.wsag.client.remote.RemoteNegotiationServiceImpl
public class RemoteNegotiationServiceImpl
Default implementation of an negotiation service client.
Constructor Summary | |
---|---|
RemoteNegotiationServiceImpl(WsrfResourceClient client)
|
Method Summary | |
---|---|
void |
advertise(NegotiationOfferType[] quotes)
Advertises a set of negotiation offers. |
void |
destroy()
Destroys this web service object. |
AgreementTemplateType[] |
getNegotiableTemplates()
A negotiation instance supports zero or more templates that can be used to create negotiation offers. |
NegotiationContextType |
getNegotiationContext()
Returns the context of this negotiation process. |
NegotiationOfferType[] |
getNegotiationOffers()
Returns a history of exchanged offers in this negotiation process. |
WsClient |
getWebServiceClient()
|
NegotiationOfferType[] |
negotiate(NegotiationOfferType[] quotes)
Negotiates a set of agreement offers. |
void |
terminate()
Terminates a negotiation process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteNegotiationServiceImpl(WsrfResourceClient client)
client
- the WSRF resource client to useMethod Detail |
---|
public NegotiationContextType getNegotiationContext() throws ResourceUnknownException, ResourceUnavailableException
getNegotiationContext
in interface NegotiationService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementTemplateType[] getNegotiableTemplates() throws ResourceUnknownException, ResourceUnavailableException
getNegotiableTemplates
in interface NegotiationService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic NegotiationOfferType[] getNegotiationOffers() throws ResourceUnknownException, ResourceUnavailableException
getNegotiationOffers
in interface NegotiationService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic NegotiationOfferType[] negotiate(NegotiationOfferType[] quotes) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
negotiate
in interface NegotiationService
quotes
- the offers to negotiate
NegotiationException
- an error occured processing the negotiation request
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic void advertise(NegotiationOfferType[] quotes) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
advertise
in interface NegotiationService
quotes
- the offers to advertise
NegotiationException
- an error occured processing the negotiation request
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic void terminate() throws ResourceUnavailableException, ResourceUnknownException
terminate
in interface NegotiationService
ResourceUnavailableException
- the remote resource is unavailable
ResourceUnknownException
- the remote resource is unknownpublic WsClient getWebServiceClient()
getWebServiceClient
in interface NegotiationService
public void destroy() throws ResourceUnavailableException, ResourceUnknownException
destroy
in interface NegotiationService
ResourceUnavailableException
- the remote resource is unavailable
ResourceUnknownException
- the remote resource is unknown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |