|
||||||||||
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
public abstract class AgreementClientImpl
Default implementation of an agreement client. Concrete implementations must provide a proper implementation of the server interaction.
Field Summary |
---|
Fields inherited from interface org.ogf.graap.wsag.client.api.AgreementClient |
---|
FACTORY |
Constructor Summary | |
---|---|
AgreementClientImpl()
|
Method Summary | |
---|---|
abstract AgreementClient |
clone()
Returns a copy of the client. |
abstract void |
destroy()
Destroys agreement instance. |
abstract String |
getAgreementId()
Returns the id of the agreement instance. |
abstract AgreementContextType |
getContext()
Returns the context of the agreement instance. |
GuaranteeTermStateType |
getGuaranteeTermState(String name)
Returns the guarantee term with the given name. |
abstract GuaranteeTermStateType[] |
getGuaranteeTermStates()
Returns the state for the individual guarantee terms of the agreement instance. |
abstract String |
getName()
Returns the name of the agreement instance. |
abstract AgreementPropertiesType |
getResourceProperties()
Returns the resource properties of the agreement instance. |
ServiceTermStateType |
getServiceTermState(String name)
Returns the service description term with the given name. |
abstract ServiceTermStateType[] |
getServiceTermStates()
Returns the state for the individual service terms of the agreement instance. |
abstract AgreementStateType |
getState()
Returns the state of the agreement instance. |
abstract TermTreeType |
getTerms()
Returns the terms of the agreement instance. |
void |
terminate()
Terminates an agreement. |
abstract void |
terminate(TerminateInputType reason)
Terminates the agreement instance. |
Methods inherited from class org.ogf.graap.wsag.client.api.impl.AbstractClient |
---|
getProperties, getRemoteClient, getRemoteReference, getSecurityProperties, isUsingTrace, setProperties, setTrace |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ogf.graap.wsag.client.api.AgreementClient |
---|
getRemoteClient |
Constructor Detail |
---|
public AgreementClientImpl()
Method Detail |
---|
public abstract AgreementContextType getContext() throws ResourceUnknownException, ResourceUnavailableException
getContext
in interface AgreementClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract GuaranteeTermStateType[] getGuaranteeTermStates() throws ResourceUnknownException, ResourceUnavailableException
getGuaranteeTermStates
in interface AgreementClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic GuaranteeTermStateType getGuaranteeTermState(String name) throws ResourceUnknownException, ResourceUnavailableException
getGuaranteeTermState
in interface AgreementClient
name
- the name of the guarantee term to retrieve
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract String getAgreementId() throws ResourceUnknownException, ResourceUnavailableException
getAgreementId
in interface AgreementClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract String getName() throws ResourceUnknownException, ResourceUnavailableException
getName
in interface AgreementClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract ServiceTermStateType[] getServiceTermStates() throws ResourceUnknownException, ResourceUnavailableException
getServiceTermStates
in interface AgreementClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic ServiceTermStateType getServiceTermState(String name) throws ResourceUnknownException, ResourceUnavailableException
getServiceTermState
in interface AgreementClient
name
- the name of the service description term to retrieve
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract AgreementStateType getState() throws ResourceUnknownException, ResourceUnavailableException
getState
in interface AgreementClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract TermTreeType getTerms() throws ResourceUnknownException, ResourceUnavailableException
getTerms
in interface AgreementClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract AgreementPropertiesType getResourceProperties() throws ResourceUnknownException, ResourceUnavailableException
getResourceProperties
in interface AgreementClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic void terminate() throws ResourceUnknownException, ResourceUnavailableException
terminate
in interface AgreementClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract void terminate(TerminateInputType reason) throws ResourceUnknownException, ResourceUnavailableException
terminate
in interface AgreementClient
reason
- a domain-specific termination reason
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract void destroy() throws ResourceUnknownException, ResourceUnavailableException
destroy
in interface AgreementClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract AgreementClient clone() throws CloneNotSupportedException
clone
in interface AgreementClient
clone
in class Object
CloneNotSupportedException
- indicates that the client implementation does not support cloning
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |