|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ogf.graap.wsag.client.remote.RemoteAgreementServiceImpl
public class RemoteAgreementServiceImpl
Default implementation of an agreement service client.
Constructor Summary | |
---|---|
RemoteAgreementServiceImpl(WsrfResourceClient client)
|
Method Summary | |
---|---|
void |
destroy()
Destroys agreement instance. |
String |
getAgreementId()
Returns the id of the agreement instance. |
AgreementContextType |
getContext()
Returns the context of the agreement instance. |
GuaranteeTermStateType[] |
getGuaranteeTermStates()
Returns the state for the individual guarantee terms of the agreement instance. |
String |
getName()
Returns the name of the agreement instance. |
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. |
WsClient |
getWebServiceClient()
Returns the web-service client used for communication with the SLA management server. |
void |
terminate(TerminateInputType reason)
Terminates the agreement instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteAgreementServiceImpl(WsrfResourceClient client)
client
- the WSRF client to useMethod Detail |
---|
public WsClient getWebServiceClient()
getWebServiceClient
in interface AgreementService
public AgreementContextType getContext() throws ResourceUnavailableException
getContext
in interface AgreementService
ResourceUnavailableException
- the remote resource is unavailablepublic GuaranteeTermStateType[] getGuaranteeTermStates() throws ResourceUnavailableException
getGuaranteeTermStates
in interface AgreementService
ResourceUnavailableException
- the remote resource is unavailablepublic String getAgreementId() throws ResourceUnavailableException
getAgreementId
in interface AgreementService
ResourceUnavailableException
- the remote resource is unavailablepublic String getName() throws ResourceUnavailableException
getName
in interface AgreementService
ResourceUnavailableException
- the remote resource is unavailablepublic ServiceTermStateType[] getServiceTermStates() throws ResourceUnavailableException
getServiceTermStates
in interface AgreementService
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementStateType getState() throws ResourceUnavailableException
getState
in interface AgreementService
ResourceUnavailableException
- the remote resource is unavailablepublic TermTreeType getTerms() throws ResourceUnavailableException
getTerms
in interface AgreementService
ResourceUnavailableException
- the remote resource is unavailablepublic void terminate(TerminateInputType reason) throws ResourceUnavailableException
terminate
in interface AgreementService
reason
- a domain-specific termination reason
ResourceUnavailableException
- the remote resource is unavailablepublic void destroy() throws ResourceUnknownException, ResourceUnavailableException
destroy
in interface AgreementService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |