|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgreementFactoryClient
Client interface to interact with an agreement factory.
Field Summary | |
---|---|
static ClientLocator<AgreementFactoryClient> |
FACTORY
Default builder. |
Method Summary | |
---|---|
AgreementFactoryClient |
clone()
Returns a copy of the client. |
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. |
RemoteClient |
getRemoteClient()
Returns the web service client used for communication with the SLA management system. |
String |
getResourceId()
Returns the WSDM id of a web-service resource. |
AgreementFactoryPropertiesType |
getResourceProperties()
Returns the resource properties of the agreement factory instance. |
AgreementTemplateType |
getTemplate(String name,
String id)
Returns a template with a particular name and id from the server, or null if the requested
template does not exist. |
AgreementTemplateType[] |
getTemplates()
Retrieves the templates for supported SLAs from the SLA management system. |
NegotiationClient |
initiateNegotiation(NegotiationContextType context)
Initiates a new negotiation process. |
AgreementClient[] |
listAgreements()
Lists the agreement instances of a particular agreement factory. |
Field Detail |
---|
static final ClientLocator<AgreementFactoryClient> FACTORY
Method Detail |
---|
String getResourceId() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementTemplateType[] 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 unavailableAgreementClient[] listAgreements() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementTemplateType getTemplate(String name, String id) throws ResourceUnknownException, ResourceUnavailableException
null
if the requested
template does not exist.
name
- the name of the requested templateid
- the id of the requested template
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementFactoryPropertiesType getResourceProperties() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableRemoteClient getRemoteClient()
AgreementFactoryClient clone() throws CloneNotSupportedException
CloneNotSupportedException
- indicates that the particular client implementation does not support cloning
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |