|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgreementFactoryService
AgreementFactoryService
The contract of a WSAG4J agreement factory service.
Method Summary | |
---|---|
AgreementClient |
createAgreement(AgreementOffer offer)
Creates a new agreement instance with the SLA management server. |
AgreementClient |
createPendingAgreement(AgreementOffer offer)
Creates a pending agreement instance. |
AgreementClient |
createPendingAgreement(AgreementOffer offer,
EndpointReferenceType acceptanceEPR)
Creates a pending agreement instance. |
AgreementTemplateType[] |
getTemplates()
Retrieves the templates for supported SLAs from the SLA management system. |
WsClient |
getWebServiceClient()
Returns the web-service client used for communicating with the SLA management server. |
NegotiationClient |
initiateNegotiation(NegotiationContextType context)
Initiates a new negotiation process. |
Methods inherited from interface org.ogf.graap.wsag.api.client.WSDMResource |
---|
getResourceId |
Method Detail |
---|
WsClient getWebServiceClient()
AgreementTemplateType[] getTemplates() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementClient createAgreement(AgreementOffer offer) throws AgreementFactoryException, ResourceUnknownException, ResourceUnavailableException
offer
- the agreement offer
AgreementFactoryException
- indicates that the agreement was rejected by the factory
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementClient createPendingAgreement(AgreementOffer offer) throws AgreementFactoryException, ResourceUnknownException, ResourceUnavailableException
offer
- The agreement offer passed from the agreement initiator.
AgreementClient
for the new created agreement.
AgreementFactoryException
- An error occurred during the the agreement creation. The agreement was rejected.
ResourceUnknownException
- No pending agreement factory exists at the specified endpoint.
ResourceUnavailableException
- The agreement factory at the specified endpoint is not accessible.AgreementClient createPendingAgreement(AgreementOffer offer, EndpointReferenceType acceptanceEPR) throws AgreementFactoryException, ResourceUnknownException, ResourceUnavailableException
offer
- The agreement offer passed from the agreement initiator.acceptanceEPR
- An endpoint to an agreement acceptance instance.
AgreementClient
for the new created agreement.
AgreementFactoryException
- An error occurred during the the agreement creation. The agreement was rejected.
ResourceUnknownException
- No pending agreement factory exists at the specified endpoint.
ResourceUnavailableException
- The agreement factory at the specified endpoint is not accessible.NegotiationClient initiateNegotiation(NegotiationContextType context) throws NegotiationFactoryException, ResourceUnknownException, ResourceUnavailableException
context
- the context for the negotiation to initialize
NegotiationFactoryException
- indicates that the creation of a negotiation process was rejected
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |