public class EventFactory extends AbstractLifecycle
| Constructor and Description |
|---|
EventFactory(OpcUaServer server) |
EventFactory(OpcUaServer server,
ObjectTypeManager objectTypeManager,
VariableTypeManager variableTypeManager) |
| Modifier and Type | Method and Description |
|---|---|
BaseEventTypeNode |
createEvent(NodeId nodeId,
NodeId typeDefinitionId)
Create an Event instance of the type identified by
typeDefinitionId. |
protected void |
onShutdown()
Execute shutdown logic, if there is any.
|
protected void |
onStartup()
Execute startup logic, if there is any.
|
isNotRunning, isRunning, shutdown, startuppublic EventFactory(OpcUaServer server)
public EventFactory(OpcUaServer server, ObjectTypeManager objectTypeManager, VariableTypeManager variableTypeManager)
protected void onStartup()
AbstractLifecycleonStartup in class AbstractLifecycleprotected void onShutdown()
AbstractLifecycleonShutdown in class AbstractLifecyclepublic BaseEventTypeNode createEvent(NodeId nodeId, NodeId typeDefinitionId) throws UaException
typeDefinitionId.
Event Nodes must be deleted by the caller when once they have been posted to the event bus or their lifetime has otherwise expired.
nodeId - the NodeId to use for the Event ObjectNode.typeDefinitionId - the NodeId of the ObjectTypeNode representing the type definition.ObjectNode instance.UaException - if an error occurs creating the Event instance.Copyright © 2021. All rights reserved.