com.prosysopc.ua.server
Class ServiceManagerBase

java.lang.Object
  extended by com.prosysopc.ua.server.ServiceManagerBase
Direct Known Subclasses:
EventManager, HistoryManager, IoManager, MethodManager, NodeManager

public abstract class ServiceManagerBase
extends Object

This is a common base class for the various Service Managers hosted by a UaServer.


Constructor Summary
ServiceManagerBase(UaServer server)
           
 
Method Summary
protected  boolean arrayDimensionsMatch(org.opcfoundation.ua.builtintypes.Variant variant, Integer valueRank, org.opcfoundation.ua.builtintypes.UnsignedInteger[] arrayDimensions)
           
protected  void checkIsMethod(UaNode node)
           
protected  void checkIsValueNode(UaNode node)
          Check if the node is a Variable or VariableType, which both implement UaValueNode.
protected  void checkIsVariable(UaNode node)
          Check if the node is a Variable.
protected  void checkIsVariableOrVariableType(UaNode node)
          Deprecated. Use checkIsValueNode(UaNode)
protected  boolean dataTypeEquals(org.opcfoundation.ua.builtintypes.Variant variant, org.opcfoundation.ua.builtintypes.NodeId dataType)
           
 UaNode getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId)
          Convenience method for getNode(NodeId) that takes ExpandedNodeId instead of NodeId
<T extends UaNode>
T
getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId, Class<T> clazz)
          Convenience method for getNode(ExpandedNodeId) that casts the result
 UaNode getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
          Convenience method for getNodeManagerTable().getNode
<T extends UaNode>
T
getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId, Class<T> clazz)
          Convenience method for getNode(NodeId) that casts the result
 NodeManagerTable getNodeManagerTable()
           
 UaServer getServer()
           
protected  SubscriptionManager getSubscriptionManager()
           
protected  boolean isValueNode(UaNode node)
           
protected  boolean isVariable(UaNode node)
           
protected  void listenerError(String listenerMethodName, Object listener, RuntimeException e)
          Logs error in listeners - and rethrows the error.
protected  boolean requireUaNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManagerBase

public ServiceManagerBase(UaServer server)
Parameters:
nodeManager -
Method Detail

getNode

public UaNode getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId)
               throws StatusException
Convenience method for getNode(NodeId) that takes ExpandedNodeId instead of NodeId

Throws:
StatusException
See Also:
getNode(NodeId)

getNode

public <T extends UaNode> T getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
                                    Class<T> clazz)
                         throws StatusException
Convenience method for getNode(ExpandedNodeId) that casts the result

Throws:
StatusException
See Also:
getNode(ExpandedNodeId)

getNode

public UaNode getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
               throws StatusException
Convenience method for getNodeManagerTable().getNode

Throws:
StatusException
See Also:
NodeManagerTable.getNode(NodeId)

getNode

public <T extends UaNode> T getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId,
                                    Class<T> clazz)
                         throws StatusException
Convenience method for getNode(NodeId) that casts the result

Throws:
StatusException
See Also:
getNode(NodeId)

getNodeManagerTable

public NodeManagerTable getNodeManagerTable()
Returns:
the nodeManager

getServer

public UaServer getServer()
Returns:
the server

arrayDimensionsMatch

protected boolean arrayDimensionsMatch(org.opcfoundation.ua.builtintypes.Variant variant,
                                       Integer valueRank,
                                       org.opcfoundation.ua.builtintypes.UnsignedInteger[] arrayDimensions)
Parameters:
variant -
argument -
Returns:

checkIsMethod

protected void checkIsMethod(UaNode node)
                      throws StatusException
Parameters:
node -
Throws:
StatusException

checkIsValueNode

protected void checkIsValueNode(UaNode node)
                         throws StatusException
Check if the node is a Variable or VariableType, which both implement UaValueNode.

Parameters:
node -
Throws:
StatusException

checkIsVariable

protected void checkIsVariable(UaNode node)
                        throws StatusException
Check if the node is a Variable.

Parameters:
node -
Throws:
StatusException

checkIsVariableOrVariableType

@Deprecated
protected void checkIsVariableOrVariableType(UaNode node)
                                      throws StatusException
Deprecated. Use checkIsValueNode(UaNode)

Check if the node is a Variable or VariableType, which both implement UaValueNode.

Parameters:
node -
Throws:
StatusException

dataTypeEquals

protected boolean dataTypeEquals(org.opcfoundation.ua.builtintypes.Variant variant,
                                 org.opcfoundation.ua.builtintypes.NodeId dataType)
Parameters:
variant -
dataType -
Returns:

getSubscriptionManager

protected SubscriptionManager getSubscriptionManager()
Returns:
the subscriptionManager

isValueNode

protected boolean isValueNode(UaNode node)
Parameters:
node -
Returns:

isVariable

protected boolean isVariable(UaNode node)
Parameters:
node -
Returns:

listenerError

protected void listenerError(String listenerMethodName,
                             Object listener,
                             RuntimeException e)
Logs error in listeners - and rethrows the error.

Parameters:
listenerMethodName -
listener -
e -

requireUaNode

protected boolean requireUaNode()


Copyright © 2018. All rights reserved.