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() |
io.netty.channel.nio.NioEventLoopGroup |
getEventLoop() |
GatewayContext |
getGatewayContext() |
java.io.File |
getHomeFolder() |
NodeBuilderFactory |
getNodeBuilderFactory() |
NodeManager |
getNodeManager() |
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 Node
s in the UA address space.NodeBuilderFactory getNodeBuilderFactory()
NodeBuilder
s, used to build Node
s 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()
io.netty.util.concurrent.EventExecutorGroup getEventExecutor()
EventExecutorGroup
instance.io.netty.channel.nio.NioEventLoopGroup getEventLoop()
NioEventLoopGroup
instance.io.netty.util.HashedWheelTimer getWheelTimer()
HashedWheelTimer
instance.