Class BaseCallable<T>
- java.lang.Object
-
- com.smartgridready.communicator.async.callable.BaseCallable<T>
-
- Type Parameters:
T- the result type
- All Implemented Interfaces:
java.util.concurrent.Callable<AsyncResult<T>>
- Direct Known Subclasses:
DeviceReadCallable,DeviceWriteCallable
public abstract class BaseCallable<T> extends java.lang.Object implements java.util.concurrent.Callable<AsyncResult<T>>
Base class for callable methods on SGr devices.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdataPointNameThe data point name.protected java.lang.StringprofileNameThe functional profile name.protected AsyncResult<T>resultThe execution result.
-
Constructor Summary
Constructors Constructor Description BaseCallable(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 AsyncResult<T>call()java.lang.StringgetDataPointName()Gets the functional profile name.java.lang.StringgetProfileName()Gets the functional profile name.AsyncResult<T>getResult()Gets the process result.
-
-
-
Field Detail
-
profileName
protected final java.lang.String profileName
The functional profile name.
-
dataPointName
protected final java.lang.String dataPointName
The data point name.
-
result
protected final AsyncResult<T> result
The execution result.
-
-
Method Detail
-
call
public AsyncResult<T> call()
- Specified by:
callin interfacejava.util.concurrent.Callable<T>
-
getProfileName
public java.lang.String getProfileName()
Gets the functional profile name.- Returns:
- a string
-
getDataPointName
public java.lang.String getDataPointName()
Gets the functional profile name.- Returns:
- a string
-
getResult
public AsyncResult<T> getResult()
Gets the process result.- Returns:
- an instance of
AsyncResult
-
-