Package uk.ac.gda.ui.tool.rest
Class DeviceRestServiceClient
java.lang.Object
uk.ac.gda.ui.tool.rest.DeviceRestServiceClient
Provides to the GDA client access to the Device rest service
client.acquisition.service.endpoint is the property which configures the URL endpoint to the service. The
default value is http://127.0.0.1:8888/device
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperties(String service) Returns the getter/setter properties for a given servicegetProperty(String detectorName, String serviceName, String propertyName) Given a device and service return a property valueReturns the names of the available services - per devicevoidsetProperty(DeviceValue deviceValue) Sets a property value.
-
Constructor Details
-
DeviceRestServiceClient
public DeviceRestServiceClient()
-
-
Method Details
-
getServices
Returns the names of the available services - per device- Returns:
- a collection of detectors names
- Throws:
GDAClientRestException
-
getProperties
Returns the getter/setter properties for a given service- Parameters:
service- the service to describe- Returns:
- a description of the service
- Throws:
GDAClientRestException
-
getProperty
public DeviceValue getProperty(String detectorName, String serviceName, String propertyName) throws GDAClientRestException Given a device and service return a property value- Parameters:
detectorName- the detector to queryserviceName- the detector's service to usepropertyName- the service's property- Returns:
- the property value
- Throws:
GDAClientRestException
-
setProperty
Sets a property value.Submit a request to set a property value for a given device and service
- Parameters:
deviceValue-- Throws:
GDAClientRestException
-