com.prosysopc.ua.server
Class MethodManagerUaNode
java.lang.Object
com.prosysopc.ua.server.ServiceManagerBase
com.prosysopc.ua.server.MethodManager
com.prosysopc.ua.server.MethodManagerUaNode
public class MethodManagerUaNode
- extends MethodManager
A generic method manager implementation, which dispatches the method calls to UaNodes.
|
Method Summary |
void |
addCallListener(CallableListener listener)
|
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)
Handle a method call. |
protected void |
checkInputArguments(org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos,
UaMethod method)
|
protected void |
checkOutputArguments(org.opcfoundation.ua.builtintypes.Variant[] outputArguments,
UaMethod method)
|
protected boolean |
fireCall(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos,
org.opcfoundation.ua.builtintypes.NodeId objectId,
UaNode node,
org.opcfoundation.ua.builtintypes.NodeId methodId,
UaMethod method,
org.opcfoundation.ua.builtintypes.Variant[] output)
|
void |
removeCallListener(CallableListener listener)
|
protected boolean |
requireUaNode()
|
| Methods inherited from class com.prosysopc.ua.server.ServiceManagerBase |
arrayDimensionsMatch, checkIsMethod, checkIsValueNode, checkIsVariable, checkIsVariableOrVariableType, dataTypeEquals, getNode, getNode, getNode, getNode, getNodeManagerTable, getServer, getSubscriptionManager, isValueNode, isVariable, listenerError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodManagerUaNode
public MethodManagerUaNode(NodeManager nodeManager)
- Parameters:
nodeManager -
addCallListener
public void addCallListener(CallableListener listener)
callMethod
public 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
- Description copied from class:
MethodManager
- Handle a method call.
- Overrides:
callMethod in class MethodManager
objectId - The object to which method appliesmethodId - The method to callinputArguments - optional input argument values
- Returns:
- optional output argument values
- Throws:
StatusException - if the call fails
removeCallListener
public void removeCallListener(CallableListener listener)
checkInputArguments
protected void checkInputArguments(org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos,
UaMethod method)
throws StatusException
- Parameters:
inputArguments - inputArgumentResults - inputArgumentDiagnosticInfos - method -
- Throws:
StatusException
checkOutputArguments
protected void checkOutputArguments(org.opcfoundation.ua.builtintypes.Variant[] outputArguments,
UaMethod method)
throws StatusException
- Parameters:
outputArguments - method -
- Throws:
StatusException
fireCall
protected boolean fireCall(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos,
org.opcfoundation.ua.builtintypes.NodeId objectId,
UaNode node,
org.opcfoundation.ua.builtintypes.NodeId methodId,
UaMethod method,
org.opcfoundation.ua.builtintypes.Variant[] output)
throws StatusException
- Parameters:
serviceContext - inputArguments - inputArgumentResults - inputArgumentDiagnosticInfos - objectId - node - methodId - method - output -
- Returns:
-
- Throws:
StatusException
requireUaNode
protected boolean requireUaNode()
- Overrides:
requireUaNode in class ServiceManagerBase
Copyright © 2018. All rights reserved.