|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ogf.graap.wsag.client.remote.WsrfResourceClient
org.ogf.graap.wsag.client.remote.RemoteAgreementFactoryServiceImpl
public class RemoteAgreementFactoryServiceImpl
Default implementation of an agreement factory service client.
AgreementFactoryService
Field Summary |
---|
Fields inherited from class org.ogf.graap.wsag.client.remote.WsrfResourceClient |
---|
ANONYMOUS_EPR, EXTRA_HEADERS |
Constructor Summary | |
---|---|
RemoteAgreementFactoryServiceImpl(EndpointReferenceType epr,
ISecurityProperties securityProperties)
Instantiates an agreement factory service client for the given EPR. |
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. |
WsClient |
getWebServiceClient()
Returns the web-service client used for communicating with the SLA management server. |
NegotiationClient |
initiateNegotiation(NegotiationContextType context)
Initiates a new negotiation process. |
NegotiationClient |
initiateNegotiation(NegotiationContextType context,
EndpointReferenceType initiatorEPR)
Initiates a new negotiation process with a wsag4j server. |
Methods inherited from class org.ogf.graap.wsag.client.remote.WsrfResourceClient |
---|
deleteResourceProperty, destroy, getDefaultSOAPClient, getEndpoint, getMultipleResourceProperties, getProperties, getResourceProperty, getResourcePropertyDocument, getSecurityProperties, invoke, isUseDefaultSOAPClient, isUsingTrace, queryResourceProperties, setDefaultSOAPClient, setProperties, setResourceProperties, setTerminationTime, setTrace, setUseDefaultSOAPClient, updateResourceProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteAgreementFactoryServiceImpl(EndpointReferenceType epr, ISecurityProperties securityProperties)
epr
- the agreement factory service endpoint referencesecurityProperties
- the security properties to useMethod Detail |
---|
public WsClient getWebServiceClient()
getWebServiceClient
in interface AgreementFactoryService
public AgreementClient createAgreement(AgreementOffer offer) throws AgreementFactoryException, ResourceUnavailableException, ResourceUnknownException
createAgreement
in interface AgreementFactoryService
offer
- the agreement offer
AgreementFactoryException
- indicates that the agreement was rejected by the factory
ResourceUnavailableException
- the remote resource is unavailable
ResourceUnknownException
- the remote resource is unknownpublic 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.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.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 NegotiationClient initiateNegotiation(NegotiationContextType context, EndpointReferenceType initiatorEPR) throws NegotiationFactoryException, ResourceUnknownException, ResourceUnavailableException
context
- the negotiation contextinitiatorEPR
- the endpoint of the wsag4j server
NegotiationFactoryException
- The negotiation process was not initiated.
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementTemplateType[] getTemplates() throws ResourceUnavailableException, ResourceUnknownException
getTemplates
in interface AgreementFactoryService
ResourceUnavailableException
- the remote resource is unavailable
ResourceUnknownException
- the remote resource is unknownpublic String getResourceId() throws ResourceUnknownException, ResourceUnavailableException
getResourceId
in interface WSDMResource
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 |