|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 properties| Method Detail |
|---|
public AgreementClient clone()
throws CloneNotSupportedException
clone in interface AgreementClientclone in class AgreementClientImplCloneNotSupportedException - indicates that the client implementation does not support cloningpublic WsrfResourceClient getRemoteClient()
AbstractClient
getRemoteClient in interface AgreementClientgetRemoteClient in class AbstractClient
public AgreementContextType getContext()
throws ResourceUnknownException,
ResourceUnavailableException
getContext in interface AgreementClientgetContext in class AgreementClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public GuaranteeTermStateType[] getGuaranteeTermStates()
throws ResourceUnknownException,
ResourceUnavailableException
getGuaranteeTermStates in interface AgreementClientgetGuaranteeTermStates in class AgreementClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public GuaranteeTermStateType getGuaranteeTermState(String name)
throws ResourceUnknownException,
ResourceUnavailableException
getGuaranteeTermState in interface AgreementClientgetGuaranteeTermState in class AgreementClientImplname - the name of the guarantee term to retrieve
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public String getAgreementId()
throws ResourceUnknownException,
ResourceUnavailableException
getAgreementId in interface AgreementClientgetAgreementId in class AgreementClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public String getName()
throws ResourceUnknownException,
ResourceUnavailableException
getName in interface AgreementClientgetName in class AgreementClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public ServiceTermStateType[] getServiceTermStates()
throws ResourceUnknownException,
ResourceUnavailableException
getServiceTermStates in interface AgreementClientgetServiceTermStates in class AgreementClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public ServiceTermStateType getServiceTermState(String name)
throws ResourceUnknownException,
ResourceUnavailableException
getServiceTermState in interface AgreementClientgetServiceTermState in class AgreementClientImplname - the name of the service description term to retrieve
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public AgreementStateType getState()
throws ResourceUnknownException,
ResourceUnavailableException
getState in interface AgreementClientgetState in class AgreementClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public TermTreeType getTerms()
throws ResourceUnknownException,
ResourceUnavailableException
getTerms in interface AgreementClientgetTerms in class AgreementClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public void terminate()
throws ResourceUnknownException,
ResourceUnavailableException
terminate in interface AgreementClientterminate in class AgreementClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public void terminate(TerminateInputType reason)
throws ResourceUnknownException,
ResourceUnavailableException
terminate in interface AgreementClientterminate in class AgreementClientImplreason - a domain-specific termination reason
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public void destroy()
throws ResourceUnknownException,
ResourceUnavailableException
destroy in interface AgreementClientdestroy in class AgreementClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailablepublic EndpointReferenceType getEndpoint()
public Properties getProperties()
getProperties in class AbstractClientpublic void setProperties(Properties properties)
setProperties in class AbstractClientproperties - the remote client propertiespublic boolean isUsingTrace()
isUsingTrace in class AbstractClientpublic void setTrace(boolean trace)
setTrace in class AbstractClienttrace - trace modepublic ISecurityProperties getSecurityProperties()
getSecurityProperties in class AbstractClientWsrfResourceClient.getSecurityProperties()
public AgreementPropertiesType getResourceProperties()
throws ResourceUnknownException,
ResourceUnavailableException
getResourceProperties in interface AgreementClientgetResourceProperties in class AgreementClientImplResourceUnknownException - 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 | |||||||||