|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ogf.graap.wsag.client.local.LocalWsClient
org.ogf.graap.wsag.client.local.LocalAgreementFactoryServiceImpl
public class LocalAgreementFactoryServiceImpl
Client implementation of an AgreementFactoryService
for local access.
Constructor Summary | |
---|---|
LocalAgreementFactoryServiceImpl(AgreementFactory factory)
Creates a client instance for the given agreement factory object. |
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. |
String |
getResourceId()
Returns the WSDM id of a web-service resource. |
AgreementTemplateType[] |
getTemplates()
Retrieves the templates for supported SLAs from the SLA management system. |
NegotiationClient |
initiateNegotiation(NegotiationContextType context)
Initiates a new negotiation process. |
Methods inherited from class org.ogf.graap.wsag.client.local.LocalWsClient |
---|
getEndpoint, getProperties, getSecurityProperties, getWebServiceClient, isUsingTrace, setProperties, setTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ogf.graap.wsag.api.client.AgreementFactoryService |
---|
getWebServiceClient |
Constructor Detail |
---|
public LocalAgreementFactoryServiceImpl(AgreementFactory factory)
factory
- the factory to useMethod Detail |
---|
public AgreementClient createAgreement(AgreementOffer offer) throws AgreementFactoryException, ResourceUnknownException, ResourceUnavailableException
createAgreement
in interface AgreementFactoryService
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 unavailableAgreementFactoryService.createAgreement(org.ogf.graap.wsag.api.AgreementOffer)
public AgreementClient createPendingAgreement(AgreementOffer offer) throws AgreementFactoryException, ResourceUnknownException, ResourceUnavailableException
createPendingAgreement
in interface AgreementFactoryService
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.AgreementFactoryService.createAgreement(org.ogf.graap.wsag.api.AgreementOffer)
public AgreementClient createPendingAgreement(AgreementOffer offer, EndpointReferenceType acceptanceEPR) throws AgreementFactoryException, ResourceUnknownException, ResourceUnavailableException
createPendingAgreement
in interface AgreementFactoryService
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.AgreementFactoryService.createAgreement(org.ogf.graap.wsag.api.AgreementOffer)
public AgreementTemplateType[] getTemplates() throws ResourceUnknownException, ResourceUnavailableException
getTemplates
in interface AgreementFactoryService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementFactoryService.getTemplates()
public NegotiationClient initiateNegotiation(NegotiationContextType context) throws NegotiationFactoryException, ResourceUnknownException, ResourceUnavailableException
initiateNegotiation
in interface AgreementFactoryService
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 unavailablepublic String getResourceId() throws ResourceUnknownException, ResourceUnavailableException
getResourceId
in interface WSDMResource
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableWSDMResource.getResourceId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |