public abstract class MethodManager extends ServiceManagerBase
| Constructor and Description |
|---|
MethodManager(NodeManager nodeManager)
Creates new
MethodManager. |
| Modifier and Type | Method and Description |
|---|---|
Variant[] |
callMethod(ServiceContext serviceContext,
NodeId objectId,
NodeId methodId,
Variant[] inputArguments,
StatusCode[] inputArgumentResults,
DiagnosticInfo[] inputArgumentDiagnosticInfos)
Handle a method call.
|
static void |
checkInputArguments(Class<?>[] expectedTypes,
Variant[] inputArguments,
StatusCode[] inputArgumentResults,
DiagnosticInfo[] inputArgumentDiagnosticInfos,
boolean acceptNulls)
Validates the input arguments that they are of expected type.
|
static void |
checkInputArguments(Class<?>[] expectedTypes,
Variant[] inputArguments,
StatusCode[] inputArgumentResults,
DiagnosticInfo[] inputArgumentDiagnosticInfos,
boolean[] acceptNulls)
Validates the input arguments that they are of expected type.
|
NodeManager |
getNodeManager()
Returns the nodeManager which the MethodManager is using.
|
arrayDimensionsMatch, checkIsMethod, checkIsValueNode, checkIsVariable, checkIsVariableOrVariableType, dataTypeEquals, getNode, getNode, getNode, getNode, getNodeManagerTable, getServer, getSubscriptionManager, invalidatePreviousNodeCache, isValueNode, isVariable, listenerError, requireUaNodepublic MethodManager(NodeManager nodeManager)
MethodManager. This instance is set to the given NodeManager's
MethodManager via NodeManager.setMethodManager(MethodManager).nodeManager - the NodeManagerpublic static void checkInputArguments(Class<?>[] expectedTypes, Variant[] inputArguments, StatusCode[] inputArgumentResults, DiagnosticInfo[] inputArgumentDiagnosticInfos, boolean acceptNulls) throws StatusException
expectedTypes - the expected argument typesinputArguments - the actual inputArgumentsinputArgumentResults - the array to fill with argument resultsinputArgumentDiagnosticInfos - the array to fill with diagnosticInfos for the invalid
argumentsacceptNulls - whether NULL values are accepted for any argumentStatusException - if the length of inputArguments does not match the expectedTypes or the
value types do not matchpublic static void checkInputArguments(Class<?>[] expectedTypes, Variant[] inputArguments, StatusCode[] inputArgumentResults, DiagnosticInfo[] inputArgumentDiagnosticInfos, boolean[] acceptNulls) throws StatusException
expectedTypes - the expected argument typesinputArguments - the actual inputArgumentsinputArgumentResults - the array to fill with argument resultsinputArgumentDiagnosticInfos - the array to fill with diagnosticInfos for the invalid
argumentsacceptNulls - whether NULL values are accepted - each element defines the rule for that
argument.StatusException - if the length of inputArguments does not match the expectedTypes or the
value types do not matchpublic Variant[] callMethod(ServiceContext serviceContext, NodeId objectId, NodeId methodId, Variant[] inputArguments, StatusCode[] inputArgumentResults, DiagnosticInfo[] inputArgumentDiagnosticInfos) throws StatusException
serviceContext - the context of the callobjectId - The object to which method appliesmethodId - The method to callinputArguments - optional input argument valuesinputArgumentDiagnosticInfos - room for diagnostic info, in case of errors.inputArgumentResults - room for argument errors. Fill in the array if you encounter errors
in the values.StatusException - if the call failspublic NodeManager getNodeManager()
Copyright © 2026. All rights reserved.