|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.client.api.RemoteClient org.ogf.graap.wsag.client.wsrf.WsrfAgreementFactoryClient
public class WsrfAgreementFactoryClient
RemoteAgreementFactoryClientImpl
Field Summary |
---|
Fields inherited from interface org.ogf.graap.wsag.client.api.AgreementFactoryClient |
---|
FACTORY |
Constructor Summary | |
---|---|
WsrfAgreementFactoryClient(EndpointReferenceType epr,
Properties properties,
ISecurityProperties securityProperties)
Creates a new agreement factory client for a given endpoint using the given security properties. |
Method Summary | |
---|---|
AgreementFactoryClient |
clone()
Returns a copy of the client. |
AgreementClient |
createAgreement(AgreementOffer offer)
Creates a new agreement instance. |
AgreementClient |
createPendingAgreement(AgreementOffer offer)
Creates a new pending agreement instance. |
AgreementClient |
createPendingAgreement(AgreementOffer offer,
EndpointReferenceType acceptanceEPR)
Creates a new pending agreement instance. |
WsrfAgreementFactoryService |
getAgreementFactoryClient()
|
WsrfAgreementRegistryService |
getAgreementRegistryClient()
|
EndpointReferenceType |
getEndpoint()
|
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()
Returns the templates supported by this factory. |
RemoteClient |
getWebServiceClient()
|
NegotiationClient |
initiateNegotiation(NegotiationContextType context)
Initiates a Negotiation. |
AgreementClient[] |
listAgreements()
Lists all agreements of this factory. |
void |
setProperties(Properties properties)
Sets the properties used for the web-service client. |
void |
setTrace(boolean trace)
Turns trace on/off. |
Methods inherited from class org.ogf.graap.wsag.client.api.RemoteClient |
---|
getProperties, getRemoteReference, getSecurityProperties, isUsingTrace, setSecurityProperties |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WsrfAgreementFactoryClient(EndpointReferenceType epr, Properties properties, ISecurityProperties securityProperties)
epr
- the agreement factory endpointsecurityProperties
- the client security propertiesMethod Detail |
---|
public AgreementFactoryClient clone() throws CloneNotSupportedException
clone
in interface AgreementFactoryClient
clone
in class Object
CloneNotSupportedException
- indicates that the particular client implementation does not support cloningpublic RemoteClient getWebServiceClient()
public EndpointReferenceType getEndpoint()
public RemoteClient getRemoteClient()
AgreementFactoryClient
getRemoteClient
in interface AgreementFactoryClient
public AgreementTemplateType[] getTemplates() throws ResourceUnknownException, ResourceUnavailableException
getTemplates
in interface AgreementFactoryClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementClient createAgreement(AgreementOffer offer) throws AgreementFactoryException, ResourceUnknownException, ResourceUnavailableException
createAgreement
in interface AgreementFactoryClient
offer
- the offer to create the agreement for
AgreementFactoryException
- the agreement offer was rejected by the factory
ResourceUnavailableException
- the requested agreement factory resource is unavailable
ResourceUnknownException
- the requested agreement factory resource is unknownpublic AgreementClient createPendingAgreement(AgreementOffer offer) throws AgreementFactoryException, ResourceUnknownException, ResourceUnavailableException
createPendingAgreement
in interface AgreementFactoryClient
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 AgreementFactoryClient
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 AgreementFactoryClient
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 AgreementFactoryClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementTemplateType getTemplate(String name, String id) throws ResourceUnknownException, ResourceUnavailableException
AgreementFactoryClient
null
if the requested
template does not exist.
getTemplate
in interface AgreementFactoryClient
name
- the name of the requested templateid
- the id of the requested template
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementClient[] listAgreements() throws ResourceUnknownException, ResourceUnavailableException
listAgreements
in interface AgreementFactoryClient
ResourceUnavailableException
- the requested agreement factory resource is unavailable
ResourceUnknownException
- the requested agreement factory resource is unknownpublic void setTrace(boolean trace)
setTrace
in class RemoteClient
trace
- turns trace on/off.public void setProperties(Properties properties)
RemoteClient
setProperties
in class RemoteClient
properties
- The properties to set.public WsrfAgreementFactoryService getAgreementFactoryClient()
public WsrfAgreementRegistryService getAgreementRegistryClient()
public AgreementFactoryPropertiesType getResourceProperties() throws ResourceUnknownException, ResourceUnavailableException
getResourceProperties
in interface AgreementFactoryClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementFactoryClient.getResourceProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |