use of org.eclipse.milo.opcua.sdk.server.model.nodes.variables.SessionDiagnosticsVariableTypeNode in project milo by eclipse.
the class VariableNodeLoader method loadNode156.
private void loadNode156() {
SessionDiagnosticsVariableTypeNode node = new SessionDiagnosticsVariableTypeNode(this.context, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, new QualifiedName(0, "SessionDiagnostics"), new LocalizedText("en", "SessionDiagnostics"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identifiers.SessionDiagnosticsDataType, -1, new UInteger[] {}, UByte.valueOf(1), UByte.valueOf(1), 0.0, false);
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_SessionId.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_SessionName.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_ClientDescription.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_ServerUri.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_EndpointUrl.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_LocaleIds.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_ActualSessionTimeout.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_MaxResponseMessageSize.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_ClientConnectionTime.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_ClientLastContactTime.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_CurrentSubscriptionsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_CurrentMonitoredItemsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_CurrentPublishRequestsInQueue.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_TotalRequestCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_UnauthorizedRequestCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_ReadCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_HistoryReadCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_WriteCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_HistoryUpdateCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_CallCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_CreateMonitoredItemsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_ModifyMonitoredItemsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_SetMonitoringModeCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_SetTriggeringCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_DeleteMonitoredItemsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_CreateSubscriptionCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_ModifySubscriptionCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_SetPublishingModeCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_PublishCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_RepublishCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_TransferSubscriptionsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_DeleteSubscriptionsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_AddNodesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_AddReferencesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_DeleteNodesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_DeleteReferencesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_BrowseCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_BrowseNextCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_TranslateBrowsePathsToNodeIdsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_QueryFirstCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_QueryNextCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_RegisterNodesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_UnregisterNodesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasTypeDefinition, Identifiers.SessionDiagnosticsVariableType.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasModellingRule, Identifiers.ModellingRule_ExposesItsArray.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsArrayType.expanded(), false));
this.nodeManager.addNode(node);
}
use of org.eclipse.milo.opcua.sdk.server.model.nodes.variables.SessionDiagnosticsVariableTypeNode in project milo by eclipse.
the class VariableNodeLoader method loadNode539.
private void loadNode539() {
SessionDiagnosticsVariableTypeNode node = new SessionDiagnosticsVariableTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, new QualifiedName(0, "SessionDiagnostics"), new LocalizedText("en", "SessionDiagnostics"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identifiers.SessionDiagnosticsDataType, -1, new UInteger[] {}, UByte.valueOf(1), UByte.valueOf(1), 0.0, false);
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_SessionId.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_SessionName.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_ClientDescription.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_ServerUri.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_EndpointUrl.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_LocaleIds.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_ActualSessionTimeout.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_MaxResponseMessageSize.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_ClientConnectionTime.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_ClientLastContactTime.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_CurrentSubscriptionsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_CurrentMonitoredItemsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_CurrentPublishRequestsInQueue.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_TotalRequestCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_UnauthorizedRequestCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_ReadCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_HistoryReadCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_WriteCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_HistoryUpdateCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_CallCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_CreateMonitoredItemsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_ModifyMonitoredItemsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_SetMonitoringModeCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_SetTriggeringCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_DeleteMonitoredItemsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_CreateSubscriptionCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_ModifySubscriptionCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_SetPublishingModeCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_PublishCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_RepublishCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_TransferSubscriptionsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_DeleteSubscriptionsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_AddNodesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_AddReferencesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_DeleteNodesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_DeleteReferencesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_BrowseCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_BrowseNextCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_TranslateBrowsePathsToNodeIdsCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_QueryFirstCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_QueryNextCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_RegisterNodesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_UnregisterNodesCount.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasTypeDefinition, Identifiers.SessionDiagnosticsVariableType.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasModellingRule, Identifiers.ModellingRule_Mandatory.expanded(), true));
node.addReference(new Reference(Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics, Identifiers.HasComponent, Identifiers.SessionDiagnosticsObjectType.expanded(), false));
this.nodeManager.addNode(node);
}
use of org.eclipse.milo.opcua.sdk.server.model.nodes.variables.SessionDiagnosticsVariableTypeNode in project milo by eclipse.
the class SessionDiagnosticsVariableArray method createSessionDiagnosticsVariable.
private void createSessionDiagnosticsVariable(Session session) {
try {
int index = sessionDiagnosticsVariables.size();
String id = Util.buildBrowseNamePath(node) + "[" + index + "]";
NodeId elementNodeId = new NodeId(1, id);
SessionDiagnosticsVariableTypeNode elementNode = (SessionDiagnosticsVariableTypeNode) nodeFactory.createNode(elementNodeId, Identifiers.SessionDiagnosticsVariableType);
elementNode.setBrowseName(new QualifiedName(1, "SessionDiagnostics"));
elementNode.setDisplayName(new LocalizedText(node.getDisplayName().getLocale(), "SessionDiagnostics"));
elementNode.setArrayDimensions(null);
elementNode.setValueRank(ValueRank.Scalar.getValue());
elementNode.setDataType(Identifiers.SessionDiagnosticsDataType);
elementNode.setAccessLevel(AccessLevel.toValue(AccessLevel.READ_ONLY));
elementNode.setUserAccessLevel(AccessLevel.toValue(AccessLevel.READ_ONLY));
elementNode.addReference(new Reference(elementNode.getNodeId(), Identifiers.HasComponent, node.getNodeId().expanded(), Reference.Direction.INVERSE));
diagnosticsNodeManager.addNode(elementNode);
SessionDiagnosticsVariable sessionDiagnosticsVariable = new SessionDiagnosticsVariable(elementNode, session);
sessionDiagnosticsVariable.startup();
sessionDiagnosticsVariables.add(sessionDiagnosticsVariable);
} catch (UaException e) {
logger.warn("Failed to create SessionDiagnosticsVariableTypeNode for session id={}", session.getSessionId(), e);
}
}
Aggregations