org.ogf.graap.wsag.api.client
Interface AgreementFactoryClient

All Superinterfaces:
AgreementFactoryService, AgreementRegistryService, WsClient, WSDMResource
All Known Implementing Classes:
AgreementFactoryFacade, LocalAgreementFactoryClientImpl, RemoteAgreementFactoryClientImpl

public interface AgreementFactoryClient
extends AgreementFactoryService, AgreementRegistryService

AgreementFactoryClient

Author:
Oliver Waeldrich

Method Summary
 AgreementFactoryClient clone()
          Returns a copy of the client.
 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.
 WsClient getWebServiceClient()
          Returns the web service client used for communication with the SLA management system.
 
Methods inherited from interface org.ogf.graap.wsag.api.client.AgreementFactoryService
createAgreement, createPendingAgreement, createPendingAgreement, getTemplates, initiateNegotiation
 
Methods inherited from interface org.ogf.graap.wsag.api.client.WSDMResource
getResourceId
 
Methods inherited from interface org.ogf.graap.wsag.api.client.AgreementRegistryService
listAgreements
 
Methods inherited from interface org.ogf.graap.wsag.api.client.WsClient
getEndpoint, getProperties, getSecurityProperties, isUsingTrace, setProperties, setTrace
 

Method Detail

getTemplate

AgreementTemplateType getTemplate(String name,
                                  String id)
                                  throws ResourceUnknownException,
                                         ResourceUnavailableException
Returns a template with a particular name and id from the server, or null if the requested template does not exist.

Parameters:
name - the name of the requested template
id - the id of the requested template
Returns:
a template with the given name and id, or null if no appropriate template was found.
Throws:
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable

getWebServiceClient

WsClient getWebServiceClient()
Returns the web service client used for communication with the SLA management system.

Specified by:
getWebServiceClient in interface AgreementFactoryService
Specified by:
getWebServiceClient in interface AgreementRegistryService
Returns:
the web service client for this service.

clone

AgreementFactoryClient clone()
                             throws CloneNotSupportedException
Returns a copy of the client.

Returns:
the cloned AgreementFactoryClient
Throws:
CloneNotSupportedException - indicates that the particular client implementation does not support cloning


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.