public abstract class ManagedAddressSpaceFragmentWithLifecycle extends ManagedAddressSpaceFragment implements Lifecycle
ManagedAddressSpace fragment that has a Lifecycle associated with it.
This fragment will be registered with the provided composite and its UaNodeManager will
be registered with the server on startup and unregistered on shutdown.
Subclasses can register additional startup/shutdown tasks with the LifecycleManager
obtained from getLifecycleManager().
AttributeServices.ReadContext, AttributeServices.WriteContextAttributeHistoryServices.HistoryReadContext, AttributeHistoryServices.HistoryUpdateContextMethodServices.CallContextNodeManagementServices.AddNodesContext, NodeManagementServices.AddReferencesContext, NodeManagementServices.DeleteNodesContext, NodeManagementServices.DeleteReferencesContextViewServices.BrowseContext, ViewServices.RegisterNodesContext, ViewServices.UnregisterNodesContext| Constructor and Description |
|---|
ManagedAddressSpaceFragmentWithLifecycle(OpcUaServer server)
Create a managed fragment using the server's
AddressSpaceManager as the composite. |
ManagedAddressSpaceFragmentWithLifecycle(OpcUaServer server,
AddressSpaceComposite composite)
Create a managed fragment using
composite. |
ManagedAddressSpaceFragmentWithLifecycle(OpcUaServer server,
UaNodeManager nodeManager)
Create a managed fragment using the server's
AddressSpaceManager as the composite. |
ManagedAddressSpaceFragmentWithLifecycle(OpcUaServer server,
UaNodeManager nodeManager,
AddressSpaceComposite composite)
Create a managed fragment using
composite. |
| Modifier and Type | Method and Description |
|---|---|
AddressSpaceComposite |
getComposite()
Get the
AddressSpaceComposite this fragment registers with. |
protected LifecycleManager |
getLifecycleManager()
Get the
LifecycleManager for this ManagedAddressSpaceFragmentWithLifecycle. |
protected void |
registerNodeManager(UaNodeManager nodeManager)
Register this AddressSpace's
UaNodeManager with its managing entity. |
protected void |
registerWithComposite(AddressSpaceComposite composite)
Register this
AddressSpaceFragment with composite. |
void |
shutdown()
Execute shutdown logic, if there is any.
|
void |
startup()
Execute startup logic, if there is any.
|
protected void |
unregisterNodeManager(UaNodeManager nodeManager)
Unregister this AddressSpace's
UaNodeManager with its managing entity. |
browse, call, createNodeFactory, getInvocationHandler, getNodeContext, getNodeFactory, getNodeManager, getReferences, getServer, read, registerNodes, unregisterNodes, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFilterread, writehistoryRead, historyUpdatecallonCreateDataItem, onCreateEventItem, onDataItemsCreated, onDataItemsDeleted, onDataItemsModified, onEventItemsCreated, onEventItemsDeleted, onEventItemsModified, onModifyDataItem, onModifyEventItem, onMonitoringModeChangedaddNodes, addReferences, deleteNodes, deleteReferencesbrowse, browse, getReferences, getViewCount, registerNodes, unregisterNodespublic ManagedAddressSpaceFragmentWithLifecycle(OpcUaServer server)
AddressSpaceManager as the composite.server - the OpcUaServer instance.public ManagedAddressSpaceFragmentWithLifecycle(OpcUaServer server, AddressSpaceComposite composite)
composite.server - the OpcUaServer instance.composite - the AddressSpaceComposite this fragment is part of.public ManagedAddressSpaceFragmentWithLifecycle(OpcUaServer server, UaNodeManager nodeManager)
AddressSpaceManager as the composite.server - the OpcUaServer instance.nodeManager - the UaNodeManager to manage nodes with.public ManagedAddressSpaceFragmentWithLifecycle(OpcUaServer server, UaNodeManager nodeManager, AddressSpaceComposite composite)
composite.server - the OpcUaServer instance.nodeManager - the UaNodeManager to manage nodes with.composite - the AddressSpaceComposite this fragment is part of.public final void startup()
Lifecyclepublic final void shutdown()
Lifecyclepublic AddressSpaceComposite getComposite()
AddressSpaceComposite this fragment registers with.AddressSpaceComposite this fragment registers with.protected LifecycleManager getLifecycleManager()
LifecycleManager for this ManagedAddressSpaceFragmentWithLifecycle.LifecycleManager for this ManagedAddressSpaceFragmentWithLifecycle.protected void registerWithComposite(AddressSpaceComposite composite)
AddressSpaceFragment with composite.
Can be overridden if e.g. this fragment should use
AddressSpaceComposite.registerFirst(AddressSpaceFragment) instead of
AddressSpaceComposite.register(AddressSpaceFragment).
composite - the AddressSpaceComposite to register with.protected void registerNodeManager(UaNodeManager nodeManager)
UaNodeManager with its managing entity.
The default implementation registers it with the server's AddressSpaceManager.
nodeManager - the UaNodeManager to register.protected void unregisterNodeManager(UaNodeManager nodeManager)
UaNodeManager with its managing entity.
The default implementation unregisters it with the server's AddressSpaceManager.
nodeManager - the UaNodeManager to unregister.Copyright © 2021. All rights reserved.