public interface DriverContext
| Modifier and Type | Method and Description |
|---|---|
void |
disableStaleChecking()
Opt out of stale checking for all variable nodes created by this device.
|
void |
enableStaleChecking()
Opt into stale checking for all variable nodes created by this device.
|
java.lang.String |
getDeviceName() |
io.netty.util.concurrent.EventExecutorGroup |
getEventExecutor()
Deprecated.
use
getExecutorService() and getScheduledExecutorService() instead. |
io.netty.channel.nio.NioEventLoopGroup |
getEventLoop() |
java.util.concurrent.ExecutorService |
getExecutorService() |
GatewayContext |
getGatewayContext() |
java.io.File |
getHomeFolder() |
NodeBuilderFactory |
getNodeBuilderFactory() |
NodeManager |
getNodeManager() |
java.util.concurrent.ScheduledExecutorService |
getScheduledExecutorService() |
DriverSubscriptionModel |
getSubscriptionModel() |
io.netty.util.HashedWheelTimer |
getWheelTimer() |
void |
setLastConnectError(java.lang.Throwable error)
Store the last error that occurred.
|
java.lang.String getDeviceName()
GatewayContext getGatewayContext()
GatewayContext.java.io.File getHomeFolder()
NodeManager getNodeManager()
NodeManager that manages Nodes in the UA address space.NodeBuilderFactory getNodeBuilderFactory()
NodeBuilders, used to build Nodes that will be added to the UA
address space.DriverSubscriptionModel getSubscriptionModel()
DriverSubscriptionModel for this Driver.void setLastConnectError(java.lang.Throwable error)
error will visible to
the user in the device status area of the gateway.
Given the visibility of this error, it should be used only when reporting errors that are relevant to the user for troubleshooting the current state of the device, such as repeating reconnection attempts to a disconnected or unreachable device. Exceptions that may occur during normal operations should be logged in the traditional manner.
The last connect error must be nullified once it is no longer valid.
error - The error that occurred.void enableStaleChecking()
void disableStaleChecking()
@Deprecated io.netty.util.concurrent.EventExecutorGroup getEventExecutor()
getExecutorService() and getScheduledExecutorService() instead.java.util.concurrent.ExecutorService getExecutorService()
EventExecutorGroup instance.java.util.concurrent.ScheduledExecutorService getScheduledExecutorService()
ScheduledExecutorService instance.io.netty.channel.nio.NioEventLoopGroup getEventLoop()
NioEventLoopGroup instance.io.netty.util.HashedWheelTimer getWheelTimer()
HashedWheelTimer instance.