|
||||||||||
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.impl.AbstractClient org.ogf.graap.wsag.client.api.impl.AgreementClientImpl org.ogf.graap.wsag.client.wsrf.WsrfAgreementClient
public class WsrfAgreementClient
AgreementImpl
Field Summary |
---|
Fields inherited from interface org.ogf.graap.wsag.client.api.AgreementClient |
---|
FACTORY |
Constructor Summary | |
---|---|
WsrfAgreementClient(EndpointReferenceType epr,
Properties properties,
ISecurityProperties securityProperties)
Instantiates a new agreement client for the given EPR. |
Method Summary | |
---|---|
AgreementClient |
clone()
Returns a copy of the client. |
void |
destroy()
Destroys agreement instance. |
String |
getAgreementId()
Returns the id of the agreement instance. |
AgreementContextType |
getContext()
Returns the context of the agreement instance. |
EndpointReferenceType |
getEndpoint()
|
GuaranteeTermStateType |
getGuaranteeTermState(String name)
Returns the guarantee term with the given name. |
GuaranteeTermStateType[] |
getGuaranteeTermStates()
Returns the state for the individual guarantee terms of the agreement instance. |
String |
getName()
Returns the name of the agreement instance. |
Properties |
getProperties()
Returns the properties of the remote client. |
WsrfResourceClient |
getRemoteClient()
Returns the remote client used by this implementation in order to communicate with the WSAG4J server. |
AgreementPropertiesType |
getResourceProperties()
Returns the resource properties of the agreement instance. |
ISecurityProperties |
getSecurityProperties()
Returns the security properties of the remote client. |
ServiceTermStateType |
getServiceTermState(String name)
Returns the service description term with the given name. |
ServiceTermStateType[] |
getServiceTermStates()
Returns the state for the individual service terms of the agreement instance. |
AgreementStateType |
getState()
Returns the state of the agreement instance. |
TermTreeType |
getTerms()
Returns the terms of the agreement instance. |
boolean |
isUsingTrace()
Returns whether or not the remote client traces the messages to the console. |
void |
setProperties(Properties properties)
Sets the properties for the remote client. |
void |
setTrace(boolean trace)
Sets whether or not the remote client traces the messages to the console. |
void |
terminate()
Terminates an agreement. |
void |
terminate(TerminateInputType reason)
Terminates the agreement instance. |
Methods inherited from class org.ogf.graap.wsag.client.api.impl.AbstractClient |
---|
getRemoteReference |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WsrfAgreementClient(EndpointReferenceType epr, Properties properties, ISecurityProperties securityProperties)
epr
- the agreement endpoint reference.securityProperties
- the security propertiesMethod Detail |
---|
public AgreementClient clone() throws CloneNotSupportedException
clone
in interface AgreementClient
clone
in class AgreementClientImpl
CloneNotSupportedException
- indicates that the client implementation does not support cloningpublic WsrfResourceClient getRemoteClient()
AbstractClient
getRemoteClient
in interface AgreementClient
getRemoteClient
in class AbstractClient
public AgreementContextType getContext() throws ResourceUnknownException, ResourceUnavailableException
getContext
in interface AgreementClient
getContext
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic GuaranteeTermStateType[] getGuaranteeTermStates() throws ResourceUnknownException, ResourceUnavailableException
getGuaranteeTermStates
in interface AgreementClient
getGuaranteeTermStates
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic GuaranteeTermStateType getGuaranteeTermState(String name) throws ResourceUnknownException, ResourceUnavailableException
getGuaranteeTermState
in interface AgreementClient
getGuaranteeTermState
in class AgreementClientImpl
name
- the name of the guarantee term to retrieve
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic String getAgreementId() throws ResourceUnknownException, ResourceUnavailableException
getAgreementId
in interface AgreementClient
getAgreementId
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic String getName() throws ResourceUnknownException, ResourceUnavailableException
getName
in interface AgreementClient
getName
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic ServiceTermStateType[] getServiceTermStates() throws ResourceUnknownException, ResourceUnavailableException
getServiceTermStates
in interface AgreementClient
getServiceTermStates
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic ServiceTermStateType getServiceTermState(String name) throws ResourceUnknownException, ResourceUnavailableException
getServiceTermState
in interface AgreementClient
getServiceTermState
in class AgreementClientImpl
name
- the name of the service description term to retrieve
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementStateType getState() throws ResourceUnknownException, ResourceUnavailableException
getState
in interface AgreementClient
getState
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic TermTreeType getTerms() throws ResourceUnknownException, ResourceUnavailableException
getTerms
in interface AgreementClient
getTerms
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic void terminate() throws ResourceUnknownException, ResourceUnavailableException
terminate
in interface AgreementClient
terminate
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic void terminate(TerminateInputType reason) throws ResourceUnknownException, ResourceUnavailableException
terminate
in interface AgreementClient
terminate
in class AgreementClientImpl
reason
- a domain-specific termination reason
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic void destroy() throws ResourceUnknownException, ResourceUnavailableException
destroy
in interface AgreementClient
destroy
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic EndpointReferenceType getEndpoint()
public Properties getProperties()
getProperties
in class AbstractClient
public void setProperties(Properties properties)
setProperties
in class AbstractClient
properties
- the remote client propertiespublic boolean isUsingTrace()
isUsingTrace
in class AbstractClient
public void setTrace(boolean trace)
setTrace
in class AbstractClient
trace
- trace modepublic ISecurityProperties getSecurityProperties()
getSecurityProperties
in class AbstractClient
WsrfResourceClient.getSecurityProperties()
public AgreementPropertiesType getResourceProperties() throws ResourceUnknownException, ResourceUnavailableException
getResourceProperties
in interface AgreementClient
getResourceProperties
in class AgreementClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementClientImpl.getResourceProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |