|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgreementClient
Client interface of a agreement service implementation. Each implementation uses a specific remote technology, depending on the technology a specific remote client is returned.
Field Summary | |
---|---|
static ClientLocator<AgreementClient> |
FACTORY
Default builder. |
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. |
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. |
RemoteClient |
getRemoteClient()
Returns the web-service client used for communication with the SLA management server. |
AgreementPropertiesType |
getResourceProperties()
Returns the resource properties of the agreement instance. |
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. |
void |
terminate()
Terminates an agreement. |
void |
terminate(TerminateInputType reason)
Terminates the agreement instance. |
Field Detail |
---|
static final ClientLocator<AgreementClient> FACTORY
Method Detail |
---|
RemoteClient getRemoteClient()
String getName() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableString getAgreementId() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementContextType getContext() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableTermTreeType getTerms() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablevoid terminate(TerminateInputType reason) throws ResourceUnknownException, ResourceUnavailableException
reason
- a domain-specific termination reason
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementStateType getState() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableGuaranteeTermStateType[] getGuaranteeTermStates() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableServiceTermStateType[] getServiceTermStates() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablevoid destroy() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableServiceTermStateType getServiceTermState(String name) throws ResourceUnknownException, ResourceUnavailableException
name
- the name of the service description term to retrieve
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableGuaranteeTermStateType getGuaranteeTermState(String name) throws ResourceUnknownException, ResourceUnavailableException
name
- the name of the guarantee term to retrieve
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementPropertiesType getResourceProperties() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablevoid terminate() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableAgreementClient clone() throws CloneNotSupportedException
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 |