|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Negotiation
This interface defines the contract of a concrete Negotiation implementation.
A negotiation instance implements the state pattern. its behavior changes depending on the negotiation
type, which is either negotiation or re-negotiation.
Method Summary | |
---|---|
void |
advertise(NegotiationOfferType[] quotes,
org.apache.xmlbeans.XmlObject[] nocriticalExtensions)
Advertises the state change of particular agreement offers to a negotiation participator. |
AgreementTemplateType[] |
getNegotiableTemplates()
Returns the templates for SLAs that are supported by this negotiation instance. |
NegotiationContextType |
getNegotiationContext()
Returns the context of an negotiation instance. |
NegotiationOfferType[] |
getNegotiationOffers()
This method returns a list of negotiation offers. |
NegotiationOfferType[] |
negotiate(NegotiationOfferType[] quotes,
org.apache.xmlbeans.XmlObject[] nocriticalExtensions)
Negotiates acceptable agreement offers with a negotiation participator. |
void |
terminate()
terminates a negotiation process |
Method Detail |
---|
NegotiationContextType getNegotiationContext()
AgreementTemplateType[] getNegotiableTemplates()
NegotiationOfferType[] getNegotiationOffers()
NegotiationOfferType[] negotiate(NegotiationOfferType[] quotes, org.apache.xmlbeans.XmlObject[] nocriticalExtensions) throws NegotiationException
quotes
- The negotiation quotes represent offers of a negotiation participator. Each negotiation
quote relates to a originating quote in this negotiation, and is based on an agreement
template exposed by the agreement factory associated with this negotiation instance.nocriticalExtensions
- A negotiation implementation SHOULD obey the non-critical extensions if possible. If the
extensions are not known or the implementation is not willing to support them, they can be
ignored. Alternatively, the negotiation implementation MAY raise an exception.
NegotiationException
- indicates an exception during the negotiation processvoid advertise(NegotiationOfferType[] quotes, org.apache.xmlbeans.XmlObject[] nocriticalExtensions) throws NegotiationException
quotes
- The negotiation quotes represent offers of a negotiation participator. Each negotiation
quote relates to a originating quote in this negotiation, and is based on an agreement
template exposed by the agreement factory associated with this negotiation instance.nocriticalExtensions
- A negotiation implementation SHOULD obey the non-critical extensions if possible. If the
extensions are not known or the implementation is not willing to support them, they can be
ignored. Alternatively, the negotiation implementation MAY raise an exception.
NegotiationException
- indicates an exception sending the advertise messagevoid terminate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |