|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.server.NodeManagerTable
public class NodeManagerTable
A collection of node managers, used in an UA Server. The NodeManagerTable can be used to access all Node Managers, and perform operations on any node, independent of which node manager manages it.
The NodeManagerTable will basically just dispatch different calls to the correct Node Manager, which you can also get fromgetNodeManager(org.opcfoundation.ua.builtintypes.ExpandedNodeId).
| Nested Class Summary | |
|---|---|
static class |
NodeManagerTable.ModelParserForUaDefinedTypes
A class for reading XML and CSV model files and transforming them into OPC UA NodeManagement Service Set Service calls. |
| Constructor Summary | |
|---|---|
NodeManagerTable(UaServer server)
|
|
| Method Summary | ||
|---|---|---|
protected org.opcfoundation.ua.builtintypes.NodeId |
addNode(ServiceContext serviceContext,
org.opcfoundation.ua.core.AddNodesItem nodeToAdd)
|
|
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)
|
|
void |
addNode(UaNode node)
Add a (@link UaNode) to the address space. |
|
int |
addNodeManager(int namespaceIndex,
NodeManager nodeManager)
Add a node manager to the table |
|
protected void |
addReference(ServiceContext serviceContext,
org.opcfoundation.ua.core.AddReferencesItem addReferencesItem)
|
|
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 view,
int startIndex)
|
|
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 |
checkNodeManagementEnabled()
|
|
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)
|
|
protected void |
createMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.core.EventFilter eventFilter,
org.opcfoundation.ua.core.EventFilterResult filterResult)
|
|
protected void |
createNewNodeManager(ServiceContext serviceContext,
String namespaceUri)
|
|
protected void |
deleteMonitoredItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredItem monitoredItem)
|
|
protected void |
deleteNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.ExpandedNodeId expandedNodeId,
boolean deleteTargetReferences)
|
|
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)
|
|
UaNode |
findNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Find a (@link UaNode) corresponding to the given (@link NodeId). |
|
DataTypeConverter |
getDataTypeConverter()
Return DataTypeConverter |
|
org.opcfoundation.ua.encoding.EncoderContext |
getEncoderContext()
|
|
UaNode |
getExternalNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
|
ExternalNodeManager |
getExternalNodeManager()
|
|
HistoryManager |
getHistoryManager(org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
|
InstanceDeclarationHierarchyCache |
getInstanceDeclarationHierarchyCache()
|
|
IoManager |
getIoManager(org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
|
NodeManagerTableListener |
getListener()
|
|
org.opcfoundation.ua.common.NamespaceTable |
getNamespaceTable()
Return the (@link NamespaceTable) associated with the (@link UaAddressSpace). |
|
UaNode |
getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId)
Convenience method for NodeManagerTable.getNode |
|
|
getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
Class<T> clazz)
Convenience method for #getNode(ExpandedNodeId)) that converts the results to given
class |
|
UaNode |
getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Find a node from the NodeManagers managed by the NodeManagerTable. |
|
|
getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId,
Class<T> clazz)
Convinience method for getNode(NodeId) that casts the result to given class |
|
UaNodeBuilderConfiguration |
getNodeBuilderConfiguration()
Get UaNodeBuilderConfiguration that NodeManagerUaNode uses if it does not have
it's own configuration. |
|
org.opcfoundation.ua.core.NodeClass |
getNodeClass(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode node)
Return the node class of a node. |
|
org.opcfoundation.ua.core.NodeClass |
getNodeClass(org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node)
Return the node class of a node. |
|
boolean |
getNodeManagementEnabled()
Are node management operations enabled in the server? |
|
NodeManager |
getNodeManager(org.opcfoundation.ua.builtintypes.ExpandedNodeId expandedNodeId)
Get a NodeManager that handles the specified node. |
|
NodeManager |
getNodeManager(int namespaceIndex)
Get a certain NodeManager from the table. |
|
NodeManager |
getNodeManager(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Get a NodeManager that handles the specified node. |
|
NodeManager |
getNodeManager(String namespaceUri)
Find the node manager for the defined namespaceUri The method equals to
getNodeManager(getNamespaceTable().getIndex(namespaceUri))
|
|
NodeManagerRoot |
getNodeManagerRoot()
|
|
UaNode |
getNodeOrExternal(org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
|
UaServer |
getServer()
|
|
org.opcfoundation.ua.common.ServerTable |
getServerTable()
|
|
StructureInfoCache |
getStructureInfoCache()
Get StructureInfoCache |
|
UaType |
getType(org.opcfoundation.ua.builtintypes.NodeId typeId)
Find the type node with a specific Id |
|
boolean |
hasNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
|
boolean |
hasNodeManager(String uri)
|
|
protected HistoryResult |
historyRead(ServiceContext serviceContext,
Object operationContext,
org.opcfoundation.ua.core.TimestampsToReturn timestampsToReturn,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.utils.NumericRange indexRange,
HistoryContinuationPoint continuationPoint,
org.opcfoundation.ua.core.HistoryReadDetails details,
int aggregateIndex)
|
|
protected void |
historyUpdate(ServiceContext serviceContext,
Object operationContext,
org.opcfoundation.ua.core.HistoryUpdateDetails details,
org.opcfoundation.ua.core.HistoryUpdateResult historyUpdateResult)
|
|
protected void |
init()
|
|
protected void |
initializeMonitoredDataItem(ServiceContext serviceContext,
MonitoredDataItem monitoredItem,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
|
|
boolean |
isTypeOf(org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId,
UaType typeDefinition,
org.opcfoundation.ua.builtintypes.NodeId expectedTypeId,
UaType expectedType)
|
|
void |
loadModel(InputStream inputStream)
Load an Information Model into the client. |
|
void |
loadModel(InputStream inputStream,
Collection<org.opcfoundation.ua.builtintypes.ExpandedNodeId> ignoredNodes,
boolean failOnFirstError)
Load an Information Model into the server. |
|
void |
loadModel(URI path)
Load an Information Model into the server. |
|
void |
loadModel(URI path,
Collection<org.opcfoundation.ua.builtintypes.ExpandedNodeId> ignoredNodes,
boolean failOnFirstError)
Load an Information Model into the server. |
|
void |
loadNodesFromXml(URL path,
URL url,
Map<String,NodeManagerTable.ModelParserForUaDefinedTypes.ParentDefinition> parentIds)
Deprecated. this format is not supported, use NodeSet format, loadModel(URI) |
|
void |
loadNodesFromXml(URL path,
URL url,
Map<String,NodeManagerTable.ModelParserForUaDefinedTypes.ParentDefinition> parentIds,
String targetNamespace)
Deprecated. this format is not supported, use NodeSet format, loadModel(URI) |
|
protected void |
modifyMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item,
org.opcfoundation.ua.core.MonitoringParameters params,
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 filterResult)
|
|
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 void |
readAttribute(ServiceContext serviceContext,
Object operationContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.core.TimestampsToReturn timestampsToReturn,
org.opcfoundation.ua.builtintypes.DateTime minTimestamp,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
Read the value of a single node attribute. |
|
protected org.opcfoundation.ua.builtintypes.NodeId |
registerNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
|
protected void |
releaseHistoryContinuationPoint(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.ByteString continuationPoint)
|
|
NodeManager |
removeNodeManager(int namespaceIndex)
|
|
void |
setListener(NodeManagerTableListener listener)
|
|
void |
setNodeBuilderConfiguration(UaNodeBuilderConfiguration configuration)
Set new NodeBuilder configuration. |
|
void |
setNodeManagementEnabled(boolean nodeManagementEnabled)
Enable node management operations in the server. |
|
protected void |
start()
Start all node managers. |
|
protected org.opcfoundation.ua.core.BrowsePathTarget[] |
translateBrowsePath(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId startingNode,
org.opcfoundation.ua.core.RelativePath relativePath)
|
|
org.opcfoundation.ua.core.BrowsePathTarget[] |
translateBrowsePathToNodeIds(org.opcfoundation.ua.builtintypes.NodeId startingNode,
org.opcfoundation.ua.core.RelativePath relativePath)
Request the NodeIds for the nodes that are references from the startingNode using paths. |
|
protected void |
unregisterNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
|
protected boolean |
writeAttribute(ServiceContext serviceContext,
Object operationContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.builtintypes.DataValue value)
Write the value of a single node attribute. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeManagerTable(UaServer server)
| Method Detail |
|---|
public void addNode(UaNode node)
addNode in interface UaAddressSpacenode - that is added
public int addNodeManager(int namespaceIndex,
NodeManager nodeManager)
namespaceIndex - the desired namespaceIndex or -1 to use the next available. Indexes 0 and
1 are reserved for the standard OPCUA namespacesnodeManager - The node manager to add to the table
public void close()
public UaNode findNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
findNode in interface UaAddressSpacenodeId - of the (@link UaNode) that is searched for
public DataTypeConverter getDataTypeConverter()
UaAddressSpace
getDataTypeConverter in interface UaAddressSpacepublic org.opcfoundation.ua.encoding.EncoderContext getEncoderContext()
getEncoderContext in interface UaAddressSpace
public UaNode getExternalNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
throws StatusException
StatusExceptionpublic ExternalNodeManager getExternalNodeManager()
public HistoryManager getHistoryManager(org.opcfoundation.ua.builtintypes.NodeId nodeId)
throws StatusException
nodeId -
StatusExceptionpublic InstanceDeclarationHierarchyCache getInstanceDeclarationHierarchyCache()
public IoManager getIoManager(org.opcfoundation.ua.builtintypes.NodeId nodeId)
throws StatusException
nodeId -
StatusExceptionpublic NodeManagerTableListener getListener()
public org.opcfoundation.ua.common.NamespaceTable getNamespaceTable()
UaAddressSpace
getNamespaceTable in interface UaAddressSpace
public UaNode getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId)
throws StatusException
NodeManagerTable.getNode
getNode in interface UaAddressSpaceStatusExceptiongetNode(NodeId)
public <T extends UaNode> T getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
Class<T> clazz)
throws StatusException
UaAddressSpace#getNode(ExpandedNodeId)) that converts the results to given
class
getNode in interface UaAddressSpaceStatusExceptiongetNode(NodeId, Class)
public UaNode getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
throws StatusException
getNode in interface UaAddressSpacenodeId - the Node to look for
ServiceManagerBase.requireUaNode() but the NodeId is valid.
StatusException - if the node is not found
public <T extends UaNode> T getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId,
Class<T> clazz)
throws StatusException
getNode(NodeId) that casts the result to given class
getNode in interface UaAddressSpacenodeId - clazz -
StatusException - if the node is not found
ClassCastException - if cast failspublic UaNodeBuilderConfiguration getNodeBuilderConfiguration()
UaNodeBuilderConfiguration that NodeManagerUaNode uses if it does not have
it's own configuration.
NodeBuilder
public org.opcfoundation.ua.core.NodeClass getNodeClass(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
UaNode node)
nodeId - The ID of the node.node - The UaNode object, if the node manager supports them, or null
public org.opcfoundation.ua.core.NodeClass getNodeClass(org.opcfoundation.ua.builtintypes.NodeId nodeId,
UaNode node)
nodeId - The ID of the node.node - The UaNode object, if the node manager supports them, or null
public boolean getNodeManagementEnabled()
setNodeManagementEnabled(boolean)
public NodeManager getNodeManager(org.opcfoundation.ua.builtintypes.ExpandedNodeId expandedNodeId)
throws StatusException
expandedNodeId - the node id that defines the namespace
StatusException - if the re is no node manager for the namespace
public NodeManager getNodeManager(int namespaceIndex)
throws StatusException
namespaceIndex - the namespaceIndex of the nodemanager to look for
StatusException - with StatusCodes.Bad_NodeIdUnknown if the nodeManager is not found
public NodeManager getNodeManager(org.opcfoundation.ua.builtintypes.NodeId nodeId)
throws StatusException
nodeId - the node id that defines the namespace
StatusException - if there is no node manager for the namespace
public NodeManager getNodeManager(String namespaceUri)
throws StatusException
getNodeManager(getNamespaceTable().getIndex(namespaceUri))
namespaceUri - the URI of teh namespace to look for
StatusException - if the nodeManager is not availablepublic NodeManagerRoot getNodeManagerRoot()
public UaNode getNodeOrExternal(org.opcfoundation.ua.builtintypes.NodeId nodeId)
throws StatusException
nodeId -
StatusExceptionpublic UaServer getServer()
public org.opcfoundation.ua.common.ServerTable getServerTable()
public StructureInfoCache getStructureInfoCache()
public UaType getType(org.opcfoundation.ua.builtintypes.NodeId typeId)
throws StatusException
typeId - the NodeId of the type
StatusException - if the node is not foundpublic boolean hasNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
public boolean hasNodeManager(String uri)
uri -
public boolean isTypeOf(org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId,
UaType typeDefinition,
org.opcfoundation.ua.builtintypes.NodeId expectedTypeId,
UaType expectedType)
throws StatusException
typeDefinitionId - typeDefinition - expectedTypeId - expectedType -
StatusException
public void loadModel(InputStream inputStream)
throws SAXException,
IOException,
ModelException
loadModel in interface UaAddressSpaceinputStream - The stream that contains the XML node set.
ModelException - if there is a problem with the model and it cannot be fully created. The
exception is thrown with and errorList of all errors found in the stream.
SAXException - if the required XMLReaded cannot be created.
IOException - if the model file cannot be read.
public void loadModel(InputStream inputStream,
Collection<org.opcfoundation.ua.builtintypes.ExpandedNodeId> ignoredNodes,
boolean failOnFirstError)
throws SAXException,
ModelException,
IOException
inputStream - The stream that contains the XML node set.
ModelException - if there is a problem with the model and it cannot be fully created. The
exception is thrown with and errorList of all errors found in the stream.
SAXException - if the required XMLReaded cannot be created.
IOException - if the model stream cannot be read
public void loadModel(URI path)
throws SAXException,
IOException,
ModelException
loadModel in interface UaAddressSpacepath - The path to the XML file. You can create an URI from a File name with
java.io.File#toUri()
ModelException - if there is a problem with the model and it cannot be fully created. The
exception is thrown with and errorList of all errors found in the file.
SAXException - if the required XMLReaded cannot be created.
IOException - if the model file cannot be read.
public void loadModel(URI path,
Collection<org.opcfoundation.ua.builtintypes.ExpandedNodeId> ignoredNodes,
boolean failOnFirstError)
throws SAXException,
IOException,
ModelException
path - The path to the XML file. You can create an URI from a File name with
java.io.File#toUri()ignoredNodes - Nodes to leave out of import. Use this if you are creating the nodes
explicitly in the server and do not want them to be imported from the XML. The related
references will be imported though.failOnFirstError - make the model creation fail for the first error encountered. If false,
the model is parsed fully and possible errors are raised only at the end.
ModelException - if there is a problem with the model and it cannot be fully created. The
exception is thrown for individual nodes only if #isFailOnFirstError() is true.
Otherwise, it will be filled with and errorList.
SAXException - if the required XMLReaded cannot be created.
IOException - if the model file cannot be read.
@Deprecated
public void loadNodesFromXml(URL path,
URL url,
Map<String,NodeManagerTable.ModelParserForUaDefinedTypes.ParentDefinition> parentIds)
throws NumberFormatException,
IllegalArgumentException,
IOException,
IllegalAccessException
loadModel(URI)
#loadModel(URL, Collection, boolean).
path - The path to the XML file.url - The path to the accompanying .csv file containing NodeIds, or null if default UA
NodeIds will suffice.parentIds -
NumberFormatException
IllegalArgumentException
IOException
IllegalAccessExceptionloadModel(URI, Collection, boolean)
@Deprecated
public void loadNodesFromXml(URL path,
URL url,
Map<String,NodeManagerTable.ModelParserForUaDefinedTypes.ParentDefinition> parentIds,
String targetNamespace)
throws NumberFormatException,
IllegalArgumentException,
IOException,
IllegalAccessException
loadModel(URI)
#loadModel(URL, Collection, boolean).
path - The path to the XML file.url - The path to the accompanying .csv file containing NodeIds, or null if default UA
NodeIds will suffice.parentIds - Can be used to adjust the parent ids for nodes, if necessary, else nulltargetNamespace -
NumberFormatException
IllegalArgumentException
IOException
IllegalAccessExceptionloadModel(URI, Collection, boolean)public NodeManager removeNodeManager(int namespaceIndex)
namespaceIndex - nodeManager -
public void setListener(NodeManagerTableListener listener)
public void setNodeBuilderConfiguration(UaNodeBuilderConfiguration configuration)
NodeBuilder configuration.
configuration - the new configurationgetNodeBuilderConfiguration()public void setNodeManagementEnabled(boolean nodeManagementEnabled)
NodeManagerListener of
each.
It will also enable new node managers to be created on the fly as necessary, if clients
addNodes for a new namespace. You may modify this behaviour using the UaServerListener
of the server.
Default value: false
nodeManagementEnabled - the allowNewNodeManagers to setUaServer.setListener(UaServerListener)
public org.opcfoundation.ua.core.BrowsePathTarget[] translateBrowsePathToNodeIds(org.opcfoundation.ua.builtintypes.NodeId startingNode,
org.opcfoundation.ua.core.RelativePath relativePath)
throws StatusException,
ServiceException
browsePaths - the browse paths, i.e. combinations of StartingNode & RelativePath
UnsignedInteger.MAX_VALUE.
ServiceException - if call failed
StatusException - if call failed
protected org.opcfoundation.ua.builtintypes.NodeId addNode(ServiceContext serviceContext,
org.opcfoundation.ua.core.AddNodesItem nodeToAdd)
throws StatusException
StatusException
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
serviceContext - nodeId - parentNodeId - browseName - nodeClass - typeDefinitionId - attributes - referenceTypeId -
StatusException
protected void addReference(ServiceContext serviceContext,
org.opcfoundation.ua.core.AddReferencesItem addReferencesItem)
throws StatusException
StatusException
protected void afterCreateMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item)
throws StatusException
serviceContext - subscription - item -
StatusException
protected void afterCreateMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredEventItem item)
throws StatusException
serviceContext - subscription - item -
StatusException
protected void afterDeleteMonitoredItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredItem item)
throws StatusException
serviceContext - subscription - item -
StatusException
protected void afterModifyMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item)
throws StatusException
serviceContext - subscription - item -
StatusException
protected void afterModifyMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredEventItem item)
throws StatusException
serviceContext - subscription - item -
StatusException
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 view,
int startIndex)
throws ServiceException,
StatusException
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 -
StatusException
protected void checkNodeManagementEnabled()
throws ServiceException
ServiceException
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 - subscription - nodeId - attributeId - indexRange - params - filterResult - filter - filterResult - monitoringMode -
StatusException - if the mointoredItem is not accepted
protected void createMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.core.EventFilter eventFilter,
org.opcfoundation.ua.core.EventFilterResult filterResult)
throws StatusException
serviceContext - nodeId - eventFilter - filterResult -
StatusException - if the node is not valid
protected void createNewNodeManager(ServiceContext serviceContext,
String namespaceUri)
throws StatusException
serviceContext - namespaceUri -
StatusException
protected void deleteMonitoredItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredItem monitoredItem)
throws StatusException
serviceContext - subscription - monitoredItem -
StatusException
protected void deleteNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.ExpandedNodeId expandedNodeId,
boolean deleteTargetReferences)
throws StatusException
serviceContext - expandedNodeId - deleteTargetReferences -
StatusException
protected void deleteNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
Boolean deleteTargetReferences)
throws StatusException
serviceContext - nodeId - deleteTargetReferences -
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
serviceContext - sourceNodeId - targetNodeId - referenceTypeId - isForward - deleteBidirectional -
StatusException
protected HistoryResult historyRead(ServiceContext serviceContext,
Object operationContext,
org.opcfoundation.ua.core.TimestampsToReturn timestampsToReturn,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.utils.NumericRange indexRange,
HistoryContinuationPoint continuationPoint,
org.opcfoundation.ua.core.HistoryReadDetails details,
int aggregateIndex)
throws StatusException
serviceContext - timestampsToReturn - nodeId - indexRange - continuationPoint - details - aggregateIndex - operationContext -
StatusException
protected void historyUpdate(ServiceContext serviceContext,
Object operationContext,
org.opcfoundation.ua.core.HistoryUpdateDetails details,
org.opcfoundation.ua.core.HistoryUpdateResult historyUpdateResult)
throws StatusException
serviceContext - operationContext - details - historyUpdateResult -
StatusException
protected void init()
throws StatusException,
UaNodeFactoryException
UaNodeFactoryException
StatusException
protected void initializeMonitoredDataItem(ServiceContext serviceContext,
MonitoredDataItem monitoredItem,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
StatusException
protected void modifyMonitoredDataItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredDataItem item,
org.opcfoundation.ua.core.MonitoringParameters params,
org.opcfoundation.ua.core.MonitoringFilter filter,
org.opcfoundation.ua.core.AggregateFilterResult filterResult)
throws StatusException
serviceContext - subscription - item - params - filter - filterResult -
StatusException
protected void modifyMonitoredEventItem(ServiceContext serviceContext,
Subscription subscription,
MonitoredEventItem item,
org.opcfoundation.ua.core.EventFilter eventFilter,
org.opcfoundation.ua.core.EventFilterResult filterResult)
throws StatusException
serviceContext - subscription - item - eventFilter - filterResult -
StatusException
protected void queryFirst(ServiceContext serviceContext,
org.opcfoundation.ua.core.QueryFirstRequest request,
org.opcfoundation.ua.core.QueryFirstResponse response)
throws ServiceException
serviceContext - request - response -
StatusException
ServiceException
protected void queryNext(ServiceContext serviceContext,
org.opcfoundation.ua.core.QueryNextRequest request,
org.opcfoundation.ua.core.QueryNextResponse response)
throws ServiceException
serviceContext - request - response -
StatusException
ServiceException
protected void readAttribute(ServiceContext serviceContext,
Object operationContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.core.TimestampsToReturn timestampsToReturn,
org.opcfoundation.ua.builtintypes.DateTime minTimestamp,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
serviceContext - The serviceContext of the client connection used to call this service.operationContext - the possible operationContext prepared in #beginReadnodeId - The node to read.attributeId - The attribute to read.indexRange - The requested index range for an array value. May be null.timestampsToReturn - Which timestamps were requested by the client.minTimestamp - Minimum value of the ServerTimestamp of the value to be read. If there is
no value available that is new enough already available (in the server cache), the
server should attempt to read a new value from the actual data source, instead of using
the cached value. If a new value cannot be read, the best value available is returned.
If minTimestamp == DateTime.MAX_VALUE a new value should be read from the source.dataValue - The data value to return. Set Value, and for Value attribute also StatusCode
and the Timestamps.
StatusException - If the read fails. Expected result codes: Bad_NodeIdInvalid,
Bad_NodeIdUnknown, Bad_AttributeIdInvalid, Bad_IndexRangeInvalid, Bad_IndexRangeNoData,
Bad_DataEncodingInvalid, Bad_DataEncodingUnsupported, Bad_NotReadable,
Bad_UserAccessDenied
protected org.opcfoundation.ua.builtintypes.NodeId registerNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId)
throws StatusException
serviceContext - nodeId -
StatusException
protected void releaseHistoryContinuationPoint(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.ByteString continuationPoint)
throws StatusException
serviceContext - nodeId - continuationPoint -
StatusException
protected void start()
throws StatusException,
UaNodeFactoryException
StatusException
UaNodeFactoryException
protected org.opcfoundation.ua.core.BrowsePathTarget[] translateBrowsePath(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId startingNode,
org.opcfoundation.ua.core.RelativePath relativePath)
throws StatusException,
ServiceException
StatusException
ServiceException
protected void unregisterNode(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId)
throws StatusException
serviceContext - nodeId -
StatusException
protected boolean writeAttribute(ServiceContext serviceContext,
Object operationContext,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.utils.NumericRange indexRange,
org.opcfoundation.ua.builtintypes.DataValue value)
throws StatusException
serviceContext - The serviceContext of the client connection used to call this service.operationContext - the possible operationContext prepared in #beginWritenodeId - The node to write.attributeId - The attribute to write.indexRange - The index range to set for an array value. May be null.dataValue - The data value to write.
StatusException - If the write fails. Expected result codes: Bad_NodeIdInvalid,
Bad_NodeIdUnknown, Bad_AttributeIdInvalid, Bad_IndexRangeInvalid, Bad_IndexRangeNoData,
Bad_DataEncodingInvalid, Bad_DataEncodingUnsupported, Bad_NotWriteable,
Bad_UserAccessDenied, Bad_OutOfRange, Bad_TypeMismatch, Bad_WriteNotSupported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||