Class DeviceReadCallable<T>
- java.lang.Object
-
- com.smartgridready.communicator.async.callable.BaseCallable<T>
-
- com.smartgridready.communicator.async.callable.DeviceReadCallable<T>
-
- Type Parameters:
T- Type of the value returned by the device read command.
- All Implemented Interfaces:
java.util.concurrent.Callable<AsyncResult<T>>
public class DeviceReadCallable<T> extends BaseCallable<T>
Callable that wraps a device read command.
-
-
Field Summary
-
Fields inherited from class com.smartgridready.communicator.async.callable.BaseCallable
dataPointName, profileName, result
-
-
Constructor Summary
Constructors Constructor Description DeviceReadCallable(ReadFunction<T> readFunction, java.lang.String profileName, java.lang.String dataPointName)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoFunctionCall()java.lang.StringtoString()-
Methods inherited from class com.smartgridready.communicator.async.callable.BaseCallable
call, getDataPointName, getProfileName, getResult
-
-
-
-
Constructor Detail
-
DeviceReadCallable
public DeviceReadCallable(ReadFunction<T> readFunction, java.lang.String profileName, java.lang.String dataPointName)
Constructs a new instance.- Parameters:
readFunction- the read function to executeprofileName- the functional profile namedataPointName- the data point name
-
-
Method Detail
-
doFunctionCall
protected void doFunctionCall() throws com.smartgridready.driver.api.common.GenDriverException, RestApiResponseParseException, com.smartgridready.driver.api.modbus.GenDriverModbusException, RestApiServiceCallException, RestApiAuthenticationException, com.smartgridready.driver.api.modbus.GenDriverSocketException, java.io.IOException- Throws:
com.smartgridready.driver.api.common.GenDriverExceptionRestApiResponseParseExceptioncom.smartgridready.driver.api.modbus.GenDriverModbusExceptionRestApiServiceCallExceptionRestApiAuthenticationExceptioncom.smartgridready.driver.api.modbus.GenDriverSocketExceptionjava.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-