|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.server.ServiceManagerBase
com.prosysopc.ua.server.NodeManager
public abstract class NodeManager
| Field Summary | |
|---|---|
protected boolean |
initialized
|
protected boolean |
started
|
| Constructor Summary | |
|---|---|
NodeManager(UaServer server,
String namespaceUri)
The default constructor. |
|
| Method Summary | |
|---|---|
void |
addListener(NodeManagerListener listener)
Add a listener to get notifications of client actions on this Node Manager. |
protected org.opcfoundation.ua.builtintypes.NodeId |
addNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.NodeId parentNodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId,
org.opcfoundation.ua.core.NodeAttributes attributes,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId)
Handle adding a new node. |
UaNode |
addNode(UaNode node)
Adds a new node - unless it already exists in the node manager. |
protected void |
addReference(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetNodeId,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
boolean isForward,
org.opcfoundation.ua.core.NodeClass targetNodeClass,
String targetServerUri)
Handle adding a reference. |
protected void |
afterCreateMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item)
|
protected void |
afterCreateMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredEventItem item)
|
protected void |
afterDeleteMonitoredItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredItem item)
|
protected void |
afterModifyMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item)
|
protected void |
afterModifyMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredEventItem item)
|
protected BrowseContinuationPoint |
browseNode(ServiceContext serviceContext,
List<org.opcfoundation.ua.core.ReferenceDescription> referenceDescriptions,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
int maxReferences,
org.opcfoundation.ua.core.BrowseDirection browseDirection,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
Boolean includeSubTypes,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
EnumSet<org.opcfoundation.ua.core.NodeClass> nodeClassSet,
EnumSet<org.opcfoundation.ua.core.BrowseResultMask> resultSet,
org.opcfoundation.ua.core.ViewDescription viewDescription,
int startIndex)
Browse a single node and filter according to the parameters. |
protected org.opcfoundation.ua.builtintypes.Variant[] |
callMethod(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId objectId,
org.opcfoundation.ua.builtintypes.NodeId methodId,
org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos)
|
protected void |
close()
Close the node manager, when the serve closes. |
protected void |
createMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.core.MonitoringParameters params,
org.opcfoundation.ua.core.MonitoringFilter filter,
org.opcfoundation.ua.core.AggregateFilterResult filterResult,
org.opcfoundation.ua.core.MonitoringMode monitoringMode)
Check that the monitored item request is valid. |
protected void |
createMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.core.EventFilter eventFilter,
org.opcfoundation.ua.core.EventFilterResult eventFilterResult)
|
protected org.opcfoundation.ua.core.ReferenceDescription |
createReferenceDescription(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetId,
UaNode target,
boolean isInverse,
org.opcfoundation.ua.core.NodeClass nodeClass,
EnumSet<org.opcfoundation.ua.core.BrowseResultMask> resultSet)
Creates a new reference description to be returned as a browse result. |
protected void |
deleteMonitoredItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredItem item)
|
protected void |
deleteNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
Boolean deleteTargetReferences)
|
protected void |
deleteReference(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetNodeId,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
Boolean isForward,
Boolean deleteBidirectional)
|
protected UaNode |
findNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId)
Find the UaNode corresponding to the nodeId, if the Node Manager supportsUaNode(). |
UaNode |
findNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Find the UaNode corresponding to the nodeId, if the Node Manager supportsUaNode(). |
protected org.opcfoundation.ua.core.NodeClass |
findNodeClass(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode node)
Find the NodeClass of a node, using the NodeManagerTable to first locate the correct NodeManager. |
protected void |
fireAddNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId parentNodeId,
UaNode parent,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.core.NodeAttributes attributes,
UaReferenceType referenceType,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId,
UaNode typeDefinition)
|
protected void |
fireAddReference(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId,
UaNode sourceNode,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetNodeId,
UaNode targetNode,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
UaReferenceType referenceType,
boolean isForward)
|
protected void |
fireAfterAddNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId parentNodeId,
UaNode parent,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.core.NodeAttributes attributes,
UaReferenceType referenceType,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId,
UaNode typeDefinition)
|
protected void |
fireAfterAddReference(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId,
UaNode sourceNode,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetNodeId,
UaNode targetNode,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
UaReferenceType referenceType,
boolean isForward)
|
protected void |
fireAfterCreateMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item)
|
protected void |
fireAfterDeleteMonitoredItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredItem item)
|
protected void |
fireAfterModifyMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item)
|
protected boolean |
fireBrowseNode(ServiceContext serviceContext,
org.opcfoundation.ua.core.ViewDescription view,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
UaReference reference)
|
protected void |
fireCreateMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.core.MonitoringParameters params,
org.opcfoundation.ua.core.MonitoringFilter filter,
org.opcfoundation.ua.core.AggregateFilterResult filterResult,
org.opcfoundation.ua.core.MonitoringMode monitoringMode)
|
protected void |
fireDeleteMonitoredItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredItem item)
|
protected void |
fireDeleteNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
boolean deleteTargetReferences)
|
protected void |
fireDeleteReference(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId,
UaNode sourceNode,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetNodeId,
UaNode targetNode,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
UaReferenceType referenceType,
boolean isForward,
boolean deleteBidirectional)
|
protected void |
fireModifyMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item,
UaNode node,
org.opcfoundation.ua.core.MonitoringParameters requestedParameters,
org.opcfoundation.ua.core.MonitoringFilter filter,
org.opcfoundation.ua.core.AggregateFilterResult filterResult)
|
protected abstract org.opcfoundation.ua.builtintypes.QualifiedName |
getBrowseName(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode node)
Get the BrowseName of a node. |
Locale |
getDefaultLocale()
|
protected abstract org.opcfoundation.ua.builtintypes.LocalizedText |
getDisplayName(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode targetNode,
Locale locale)
Find the DisplayName of a node. |
EventManager |
getEventManager()
|
protected EventManager |
getEventManager(org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
HistoryManager |
getHistoryManager()
|
IoManager |
getIoManager()
|
protected boolean |
getIsOfType(org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId,
UaType typeDefinition,
org.opcfoundation.ua.builtintypes.NodeId expectedTypeId,
UaType expectedType)
|
MethodManager |
getMethodManager()
|
int |
getNamespaceIndex()
|
org.opcfoundation.ua.common.NamespaceTable |
getNamespaceTable()
|
String |
getNamespaceUri()
|
UaNode |
getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId)
Gets the node, corresponding to a nodeId, if it exists in the local server. |
protected org.opcfoundation.ua.core.NodeClass |
getNodeClass(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode node)
Return the node class of a node, owned by this NodeManager. |
protected abstract org.opcfoundation.ua.core.NodeClass |
getNodeClass(org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node)
Return the node class of a node, owned by this NodeManager. |
org.opcfoundation.ua.builtintypes.NodeId |
getNodeId(String namespace,
String id)
Returns NodeId from namespace and id. |
org.opcfoundation.ua.builtintypes.QualifiedName |
getQualifiedName(String namespace,
String name)
|
UaReference[] |
getReferences(org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
protected abstract UaReference[] |
getReferences(org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node)
Get all references of a node. |
protected UaReferenceType |
getReferenceType(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId)
|
protected abstract org.opcfoundation.ua.builtintypes.ExpandedNodeId |
getTypeDefinition(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode node)
Get the TypeDefinition of a node. |
abstract org.opcfoundation.ua.builtintypes.NodeId |
getVariableDataType(org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaValueNode valueNode)
Get the data type of a variable node, managed by this node manager. |
boolean |
hasListener(NodeManagerListener listener)
Check if the manager already has the specified listener. |
abstract boolean |
hasNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Check if the node manager has a certain node. |
protected void |
init()
Initialize the NodeManager. |
boolean |
isInitialized()
|
boolean |
isOfType(org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId,
UaType typeDefinition,
org.opcfoundation.ua.builtintypes.NodeId expectedTypeId,
UaType expectedType)
Check if the given type is of the expectedType. |
boolean |
isStarted()
|
protected void |
modifyMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item,
org.opcfoundation.ua.core.MonitoringParameters requestedParameters,
org.opcfoundation.ua.core.MonitoringFilter filter,
org.opcfoundation.ua.core.AggregateFilterResult filterResult)
|
protected void |
modifyMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredEventItem item,
org.opcfoundation.ua.core.EventFilter eventFilter,
org.opcfoundation.ua.core.EventFilterResult eventFilterResult)
|
protected void |
queryFirst(ServiceContext serviceContext,
org.opcfoundation.ua.core.QueryFirstRequest request,
org.opcfoundation.ua.core.QueryFirstResponse response)
|
protected void |
queryNext(ServiceContext serviceContext,
org.opcfoundation.ua.core.QueryNextRequest request,
org.opcfoundation.ua.core.QueryNextResponse response)
|
protected boolean |
referenceMatchesRequest(UaReference reference,
org.opcfoundation.ua.core.BrowseDirection browseDirection,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
UaReferenceType referenceType,
Boolean includeSubTypes,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId)
|
protected org.opcfoundation.ua.builtintypes.NodeId |
registerNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
void |
removeListener(NodeManagerListener listener)
Remove a notification listener from the Node Manager. |
void |
setDefaultLocale(Locale defaultLocale)
Define the default locale to use for messages and other strings, whenever the locale is not defined or requested. |
void |
setEventManager(EventManager eventManager)
Define the event manager that handles all event calls to the nodes of the node manager. |
void |
setHistoryManager(HistoryManager historyManager)
Define the HistoryManager that should handle the history service for the nodes. |
void |
setIoManager(IoManager ioManager)
Define the IO Manager that is handling attribute services, i.e. read and write calls, for the nodes. |
void |
setMethodManager(MethodManager methodManager)
Define the MethodManager that is handling method calls for the nodes. |
protected void |
start()
Start the NodeManager, i.e. make it available |
boolean |
supportsUaNode()
Whether the NodeManager supports UaNode instances. |
String |
toString()
|
protected org.opcfoundation.ua.core.BrowsePathTarget[] |
translateBrowsePath(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId startingNodeId,
org.opcfoundation.ua.core.RelativePath relativePath)
|
protected void |
unregisterNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
| Methods inherited from class com.prosysopc.ua.server.ServiceManagerBase |
|---|
arrayDimensionsMatch, checkIsMethod, checkIsValueNode, checkIsVariable, checkIsVariableOrVariableType, dataTypeEquals, getNode, getNode, getNode, getNodeManagerTable, getServer, getSubscriptionManager, isValueNode, isVariable, listenerError, requireUaNode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean initialized
protected boolean started
| Constructor Detail |
|---|
public NodeManager(UaServer server,
String namespaceUri)
| Method Detail |
|---|
public void addListener(NodeManagerListener listener)
listener - the listener to add. Must not be null
public UaNode addNode(UaNode node)
throws StatusException
node - the node to add. The NodeId of the node must have the same namepsaceIndex as the
node manager.
StatusException - if the NodeId is invalid (i.e. null) or the NodeManager does not
support UaNodespublic UaNode findNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
supportsUaNode(). You
should use hasNode(org.opcfoundation.ua.builtintypes.NodeId) to check if the Node Manager has a node
nodeId - the nodeId to look for
ServiceManagerBase.getNode(NodeId)public Locale getDefaultLocale()
public EventManager getEventManager()
public HistoryManager getHistoryManager()
public IoManager getIoManager()
public MethodManager getMethodManager()
throws StatusException
StatusExceptionpublic int getNamespaceIndex()
getNamespaceUri()public org.opcfoundation.ua.common.NamespaceTable getNamespaceTable()
public String getNamespaceUri()
public UaNode getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId)
throws StatusException
getNode in class ServiceManagerBasenodeId - the ID of the node to get
StatusException - if the node is not found (Bad_NodeIdUnknown), is null
(Bad_NodeIdInvalid) or if the node cannot be converted to a local NodeId
(Bad_ServerIndexInvalid)ServiceManagerBase.getNode(NodeId)
public org.opcfoundation.ua.builtintypes.NodeId getNodeId(String namespace,
String id)
namespace - namespace urlid - identifier part of NodeId, e.g. "i=13"
public org.opcfoundation.ua.builtintypes.QualifiedName getQualifiedName(String namespace,
String name)
public UaReference[] getReferences(org.opcfoundation.ua.builtintypes.NodeId nodeId)
public abstract org.opcfoundation.ua.builtintypes.NodeId getVariableDataType(org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaValueNode valueNode)
throws StatusException
nodeId - The NodeId of the variable, whose data type is requested.valueNode - the variable or variableType node, if such exists
StatusExceptionpublic boolean hasListener(NodeManagerListener listener)
listener - the listener to check
public abstract boolean hasNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Override in your own NodeManager to return true for your own nodes.
nodeId -
public boolean isInitialized()
public final boolean isOfType(org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId,
UaType typeDefinition,
org.opcfoundation.ua.builtintypes.NodeId expectedTypeId,
UaType expectedType)
throws StatusException
The method will call the internal getIsOfType(NodeId, UaType, NodeId, UaType), if the
node is in this NodeManager (hasNode(NodeId) return true) or will find the respective
NodeManager from NodeManagerTable.
Override getIsOfType() if you want to modify the default behavior.
typeDefinitionId - the ID of the type that is testedtypeDefinition - the type that is tested (or null if not available)expectedTypeId - the ID of type against which the test is doneexpectedType - the type against which the test is done (or null if not available)
StatusException - if typeDefinitionId does not refer to an existing nodepublic boolean isStarted()
public void removeListener(NodeManagerListener listener)
listener - the listener to removepublic void setDefaultLocale(Locale defaultLocale)
defaultLocale - public void setEventManager(EventManager eventManager)
eventManager - the eventManager to setpublic void setHistoryManager(HistoryManager historyManager)
historyManager - public void setIoManager(IoManager ioManager)
ioManager - the IO Manager to setpublic void setMethodManager(MethodManager methodManager)
methodManager - the methodManager to setpublic boolean supportsUaNode()
Change in your own node manager, if you want to use UaNode. In that case, also consider inheriting your NodeManager from NodeManagerUaNode instead.
Note: If you define supportsUaNode = true, you must also implement
findNode(ExpandedNodeId)!
UaNode objects are supported.public String toString()
toString in class Object
protected org.opcfoundation.ua.builtintypes.NodeId addNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.NodeId parentNodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId,
org.opcfoundation.ua.core.NodeAttributes attributes,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId)
throws StatusException
StatusException
protected void addReference(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetNodeId,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
boolean isForward,
org.opcfoundation.ua.core.NodeClass targetNodeClass,
String targetServerUri)
throws StatusException
StatusException
protected void afterCreateMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item)
serviceContext - subscription - item -
protected void afterCreateMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredEventItem item)
serviceContext - subscription - item -
protected void afterDeleteMonitoredItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredItem item)
serviceContext - subscription - item -
protected void afterModifyMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item)
serviceContext - subscription - item -
protected void afterModifyMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredEventItem item)
serviceContext - subscription - item -
protected BrowseContinuationPoint browseNode(ServiceContext serviceContext,
List<org.opcfoundation.ua.core.ReferenceDescription> referenceDescriptions,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
int maxReferences,
org.opcfoundation.ua.core.BrowseDirection browseDirection,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
Boolean includeSubTypes,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
EnumSet<org.opcfoundation.ua.core.NodeClass> nodeClassSet,
EnumSet<org.opcfoundation.ua.core.BrowseResultMask> resultSet,
org.opcfoundation.ua.core.ViewDescription viewDescription,
int startIndex)
throws ServiceException,
StatusException
serviceContext - referenceDescriptions - nodeId - maxReferences - browseDirection - referenceTypeId - includeSubTypes - browseName - nodeClassSet - resultSet - viewDescription - startIndex -
ServiceException
StatusException
protected org.opcfoundation.ua.builtintypes.Variant[] callMethod(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId objectId,
org.opcfoundation.ua.builtintypes.NodeId methodId,
org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos)
throws StatusException
serviceContext - objectId - methodId - inputArguments - inputArgumentResults - inputArgumentDiagnosticInfos -
StatusExceptionprotected void close()
protected void createMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.core.MonitoringParameters params,
org.opcfoundation.ua.core.MonitoringFilter filter,
org.opcfoundation.ua.core.AggregateFilterResult filterResult,
org.opcfoundation.ua.core.MonitoringMode monitoringMode)
throws StatusException
serviceContext - the client calling contextsubscription - the subscription in which the item is being created.nodeId - the node ID: get the respective node from from the nodeManager.attributeId - the attribute ID: check from the node that it supports the attribute.indexRange - the index range specificationparams - the monitoring parametersfilter - an optional filter for the item. This may be a DataChangeFilter or
AggregateFilterResultfilterResult - results for the aggregateFilter, if such is providedmonitoringMode - the requested MonitoringMode
StatusException - if the node is invalid (Bad_NodeIdUnknown) or the attributeId is not
supported by the node (Bad_AttributeIdInvalid).
protected void createMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.core.EventFilter eventFilter,
org.opcfoundation.ua.core.EventFilterResult eventFilterResult)
throws StatusException
StatusException
protected org.opcfoundation.ua.core.ReferenceDescription createReferenceDescription(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetId,
UaNode target,
boolean isInverse,
org.opcfoundation.ua.core.NodeClass nodeClass,
EnumSet<org.opcfoundation.ua.core.BrowseResultMask> resultSet)
targetId - target - nodeClass - resultSet - r -
protected void deleteMonitoredItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredItem item)
throws StatusException
StatusException
protected void deleteNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
Boolean deleteTargetReferences)
throws StatusException
StatusException
protected void deleteReference(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetNodeId,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
Boolean isForward,
Boolean deleteBidirectional)
throws StatusException
StatusException
protected UaNode findNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId)
throws org.opcfoundation.ua.common.ServiceResultException
supportsUaNode(). You
should use hasNode(org.opcfoundation.ua.builtintypes.NodeId) to check if the Node Manager has a node.
The method simply converts nodeId to a NodeId using getNamespaceTable() and calls
findNode(NodeId).
nodeId - the ID of the node to look for.
org.opcfoundation.ua.common.ServiceResultException - if the nodeId cannot be converted to NodeId using the
NamespaceTable of the server.getNode(ExpandedNodeId)
protected org.opcfoundation.ua.core.NodeClass findNodeClass(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode node)
nodeId - node -
protected void fireAddNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId parentNodeId,
UaNode parent,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.core.NodeAttributes attributes,
UaReferenceType referenceType,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId,
UaNode typeDefinition)
throws StatusException
StatusException
protected void fireAddReference(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId,
UaNode sourceNode,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetNodeId,
UaNode targetNode,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
UaReferenceType referenceType,
boolean isForward)
throws StatusException
StatusException
protected void fireAfterAddNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId parentNodeId,
UaNode parent,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.core.NodeAttributes attributes,
UaReferenceType referenceType,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId,
UaNode typeDefinition)
throws StatusException
StatusException
protected void fireAfterAddReference(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId,
UaNode sourceNode,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetNodeId,
UaNode targetNode,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
UaReferenceType referenceType,
boolean isForward)
throws StatusException
StatusException
protected void fireAfterCreateMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item)
serviceContext - subscription - item -
protected void fireAfterDeleteMonitoredItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredItem item)
serviceContext - subscription - item -
protected void fireAfterModifyMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item)
serviceContext - subscription - item -
protected boolean fireBrowseNode(ServiceContext serviceContext,
org.opcfoundation.ua.core.ViewDescription view,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
UaReference reference)
serviceContext - node - view - nodeId - reference -
protected void fireCreateMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.core.MonitoringParameters params,
org.opcfoundation.ua.core.MonitoringFilter filter,
org.opcfoundation.ua.core.AggregateFilterResult filterResult,
org.opcfoundation.ua.core.MonitoringMode monitoringMode)
throws StatusException
serviceContext - subscription - nodeId - node - attributeId - indexRange - params - filter - filterResult - monitoringMode -
StatusException
protected void fireDeleteMonitoredItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredItem item)
serviceContext - subscription - item -
protected void fireDeleteNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node,
boolean deleteTargetReferences)
throws StatusException
serviceContext - nodeId - node - deleteTargetReferences -
StatusException
protected void fireDeleteReference(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId,
UaNode sourceNode,
org.opcfoundation.ua.builtintypes.ExpandedNodeId targetNodeId,
UaNode targetNode,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
UaReferenceType referenceType,
boolean isForward,
boolean deleteBidirectional)
throws StatusException
serviceContext - sourceNodeId - sourceNode - targetNodeId - targetNode - referenceTypeId - referenceType - isForward - deleteBidirectional -
StatusException
protected void fireModifyMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item,
UaNode node,
org.opcfoundation.ua.core.MonitoringParameters requestedParameters,
org.opcfoundation.ua.core.MonitoringFilter filter,
org.opcfoundation.ua.core.AggregateFilterResult filterResult)
throws StatusException
serviceContext - subscription - item - node - requestedParameters - filter - filterResult -
StatusException
protected abstract org.opcfoundation.ua.builtintypes.QualifiedName getBrowseName(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode node)
NodeManagerUaNode implements the method by getting the BrowseName from the targetNode.
For custom NodeManagers this must be implemented.
nodeId - the ID of the nodenode - the node, if it is a UaNode. May be null.
protected abstract org.opcfoundation.ua.builtintypes.LocalizedText getDisplayName(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode targetNode,
Locale locale)
NodeManagerUaNode implements the method by getting the DisplayName from the targetNode
For custom NodeManagers this must be implemented.
nodeId - the ID of the nodenode - the node, if it is a UaNode. May be null.locale - The locale in which the name is requested. May be null.
protected EventManager getEventManager(org.opcfoundation.ua.builtintypes.NodeId nodeId)
nodeId -
protected boolean getIsOfType(org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId,
UaType typeDefinition,
org.opcfoundation.ua.builtintypes.NodeId expectedTypeId,
UaType expectedType)
throws StatusException
typeDefinitionId - typeDefinition - expectedTypeId - expectedType -
StatusException
protected org.opcfoundation.ua.core.NodeClass getNodeClass(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode node)
findNodeClass(ExpandedNodeId, UaNode) to search for the NodeClass of any node,
possibly owned by some other NodeManager.
nodeId - The ID of the node.node - The UaNode object, if the node manager supports them, or null
protected abstract org.opcfoundation.ua.core.NodeClass getNodeClass(org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node)
findNodeClass(ExpandedNodeId, UaNode) to search for the NodeClass of any node,
possibly owned by some other NodeManager.
nodeId - The ID of the node.node - The UaNode object, if the node manager supports them, or null
protected abstract UaReference[] getReferences(org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node)
nodeId - the ID of the nodenode - the node object, if available
protected UaReferenceType getReferenceType(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId)
throws StatusException
referenceTypeId -
StatusException
protected abstract org.opcfoundation.ua.builtintypes.ExpandedNodeId getTypeDefinition(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode node)
NodeManagerUaNode implements the method by getting the TypeDefinitionId from the node.
For custom NodeManagers this must be implemented.
nodeId - the ID of the nodenode - the node, if it is a UaNode. May be null.
protected void init()
throws StatusException,
UaNodeFactoryException
StatusException
UaNodeFactoryException
protected void modifyMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item,
org.opcfoundation.ua.core.MonitoringParameters requestedParameters,
org.opcfoundation.ua.core.MonitoringFilter filter,
org.opcfoundation.ua.core.AggregateFilterResult filterResult)
throws StatusException
StatusException
protected void modifyMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredEventItem item,
org.opcfoundation.ua.core.EventFilter eventFilter,
org.opcfoundation.ua.core.EventFilterResult eventFilterResult)
throws StatusException
serviceContext - subscription - item - eventFilter -
StatusException
EventFilterException
protected void queryFirst(ServiceContext serviceContext,
org.opcfoundation.ua.core.QueryFirstRequest request,
org.opcfoundation.ua.core.QueryFirstResponse response)
throws ServiceException
serviceContext - request - response -
ServiceException
protected void queryNext(ServiceContext serviceContext,
org.opcfoundation.ua.core.QueryNextRequest request,
org.opcfoundation.ua.core.QueryNextResponse response)
throws ServiceException
serviceContext - request - response -
ServiceException
protected boolean referenceMatchesRequest(UaReference reference,
org.opcfoundation.ua.core.BrowseDirection browseDirection,
org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
UaReferenceType referenceType,
Boolean includeSubTypes,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.NodeId sourceNodeId)
reference - browseDirection - referenceTypeId - referenceType - includeSubTypes - browseName -
protected org.opcfoundation.ua.builtintypes.NodeId registerNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId)
throws StatusException
StatusException
protected void start()
throws StatusException,
UaNodeFactoryException
StatusException
UaNodeFactoryException
protected org.opcfoundation.ua.core.BrowsePathTarget[] translateBrowsePath(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId startingNodeId,
org.opcfoundation.ua.core.RelativePath relativePath)
throws StatusException,
ServiceException
StatusException
ServiceException
protected void unregisterNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||