Search in sources :

Example 1 with ExpandedNodeId

use of org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId in project milo by eclipse.

the class AddressSpace method browseNodesAsync.

/**
 * Browse from {@code nodeId} using {@code browseOptions}.
 * <p>
 * This call completes asynchronously.
 *
 * @param nodeId        the {@link NodeId} to start the browse from.
 * @param browseOptions the {@link BrowseOptions} to use.
 * @return a CompletableFuture that completes successfully with a List of {@link UaNode}s
 * referenced by {@code node} given the currently configured {@link BrowseOptions} or completes
 * exceptionally if a service-level error occurs.
 */
public CompletableFuture<List<? extends UaNode>> browseNodesAsync(NodeId nodeId, BrowseOptions browseOptions) {
    BrowseDescription browseDescription = new BrowseDescription(nodeId, browseOptions.getBrowseDirection(), browseOptions.getReferenceTypeId(), browseOptions.isIncludeSubtypes(), browseOptions.getNodeClassMask(), uint(BrowseResultMask.All.getValue()));
    CompletableFuture<List<ReferenceDescription>> browse = BrowseHelper.browse(client, browseDescription, browseOptions.getMaxReferencesPerNode());
    return browse.thenCompose(references -> {
        List<CompletableFuture<? extends UaNode>> cfs = references.stream().map(reference -> {
            NodeClass nodeClass = reference.getNodeClass();
            ExpandedNodeId xNodeId = reference.getNodeId();
            ExpandedNodeId xTypeDefinitionId = reference.getTypeDefinition();
            switch(nodeClass) {
                case Object:
                case Variable:
                    {
                        CompletableFuture<CompletableFuture<? extends UaNode>> ff = toNodeIdAsync(xNodeId).thenCombine(toNodeIdAsync(xTypeDefinitionId), (targetNodeId, typeDefinitionId) -> {
                            if (nodeClass == NodeClass.Object) {
                                return getObjectNodeAsync(targetNodeId, typeDefinitionId);
                            } else {
                                return getVariableNodeAsync(targetNodeId, typeDefinitionId);
                            }
                        });
                        return unwrap(ff).exceptionally(ex -> {
                            logger.warn("Failed to create Node from Reference to {}", reference.getNodeId(), ex);
                            return null;
                        });
                    }
                default:
                    {
                        // TODO specialized getNode for other NodeClasses?
                        return toNodeIdAsync(xNodeId).thenCompose(this::getNodeAsync).exceptionally(ex -> {
                            logger.warn("Failed to create Node from Reference to {}", reference.getNodeId(), ex);
                            return null;
                        });
                    }
            }
        }).collect(Collectors.toList());
        return sequence(cfs);
    });
}
Also used : BuiltinReferenceType(org.eclipse.milo.opcua.stack.core.BuiltinReferenceType) CompletableFuture.completedFuture(java.util.concurrent.CompletableFuture.completedFuture) UaDataTypeNode(org.eclipse.milo.opcua.sdk.client.nodes.UaDataTypeNode) LoggerFactory(org.slf4j.LoggerFactory) UaObjectTypeNode(org.eclipse.milo.opcua.sdk.client.nodes.UaObjectTypeNode) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) Unsigned.uint(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.Unsigned.uint) BrowseDescription(org.eclipse.milo.opcua.stack.core.types.structured.BrowseDescription) AttributeId(org.eclipse.milo.opcua.stack.core.AttributeId) UaMethodNode(org.eclipse.milo.opcua.sdk.client.nodes.UaMethodNode) TimestampsToReturn(org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) BrowseResult(org.eclipse.milo.opcua.stack.core.types.structured.BrowseResult) ReferenceDescription(org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription) BrowseDirection(org.eclipse.milo.opcua.stack.core.types.enumerated.BrowseDirection) UByte(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte) ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) Set(java.util.Set) Collectors(java.util.stream.Collectors) Sets(com.google.common.collect.Sets) ReadValueId(org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId) Objects(java.util.Objects) UaVariableTypeNode(org.eclipse.milo.opcua.sdk.client.nodes.UaVariableTypeNode) Nullable(org.jetbrains.annotations.Nullable) List(java.util.List) NodeClass(org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass) UaNode(org.eclipse.milo.opcua.sdk.client.nodes.UaNode) StatusCode(org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode) Optional(java.util.Optional) UaVariableNode(org.eclipse.milo.opcua.sdk.client.nodes.UaVariableNode) Identifiers(org.eclipse.milo.opcua.stack.core.Identifiers) DataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue) CompletableFuture(java.util.concurrent.CompletableFuture) UaObjectNode(org.eclipse.milo.opcua.sdk.client.nodes.UaObjectNode) ArrayList(java.util.ArrayList) ConversionUtil.l(org.eclipse.milo.opcua.stack.core.util.ConversionUtil.l) ReadResponse(org.eclipse.milo.opcua.stack.core.types.structured.ReadResponse) StatusCodes(org.eclipse.milo.opcua.stack.core.StatusCodes) FutureUtils.failedUaFuture(org.eclipse.milo.opcua.stack.core.util.FutureUtils.failedUaFuture) Logger(org.slf4j.Logger) UInteger(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText) ExecutionException(java.util.concurrent.ExecutionException) Consumer(java.util.function.Consumer) BrowseResultMask(org.eclipse.milo.opcua.stack.core.types.enumerated.BrowseResultMask) FutureUtils.failedFuture(org.eclipse.milo.opcua.stack.core.util.FutureUtils.failedFuture) ObjectNodeConstructor(org.eclipse.milo.opcua.sdk.client.ObjectTypeManager.ObjectNodeConstructor) UaException(org.eclipse.milo.opcua.stack.core.UaException) Preconditions(com.google.common.base.Preconditions) UaReferenceTypeNode(org.eclipse.milo.opcua.sdk.client.nodes.UaReferenceTypeNode) Collections(java.util.Collections) UaViewNode(org.eclipse.milo.opcua.sdk.client.nodes.UaViewNode) NodeClass(org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass) ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) CompletableFuture(java.util.concurrent.CompletableFuture) UaNode(org.eclipse.milo.opcua.sdk.client.nodes.UaNode) List(java.util.List) ArrayList(java.util.ArrayList) BrowseDescription(org.eclipse.milo.opcua.stack.core.types.structured.BrowseDescription)

Example 2 with ExpandedNodeId

use of org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId in project milo by eclipse.

the class ObjectTypeNodeLoader method loadNode16.

private void loadNode16() {
    UaObjectTypeNode node = new UaObjectTypeNode(this.context, Identifiers.AuditConditionAcknowledgeEventType, new QualifiedName(0, "AuditConditionAcknowledgeEventType"), new LocalizedText("en", "AuditConditionAcknowledgeEventType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), false);
    node.addReference(new Reference(Identifiers.AuditConditionAcknowledgeEventType, Identifiers.HasProperty, new ExpandedNodeId(UShort.valueOf(0), null, UInteger.valueOf(15002), UInteger.valueOf(0)), true));
    node.addReference(new Reference(Identifiers.AuditConditionAcknowledgeEventType, Identifiers.HasProperty, Identifiers.AuditConditionAcknowledgeEventType_Comment.expanded(), true));
    node.addReference(new Reference(Identifiers.AuditConditionAcknowledgeEventType, Identifiers.HasSubtype, Identifiers.AuditConditionEventType.expanded(), false));
    this.nodeManager.addNode(node);
}
Also used : ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) UaObjectTypeNode(org.eclipse.milo.opcua.sdk.server.nodes.UaObjectTypeNode) Reference(org.eclipse.milo.opcua.sdk.core.Reference) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText)

Example 3 with ExpandedNodeId

use of org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId in project milo by eclipse.

the class JsonStructureCodec method opcUaToMemberTypeScalar.

@Override
protected JsonElement opcUaToMemberTypeScalar(String name, Object value, String typeName) {
    if (value == null) {
        return JsonNull.INSTANCE;
    } else if (value instanceof Number) {
        if (value instanceof UByte) {
            return new JsonPrimitive(((UByte) value).shortValue());
        } else if (value instanceof UShort) {
            return new JsonPrimitive(((UShort) value).intValue());
        } else if (value instanceof UInteger) {
            return new JsonPrimitive(((UInteger) value).longValue());
        } else if (value instanceof ULong) {
            return new JsonPrimitive(((ULong) value).toBigInteger());
        } else {
            return new JsonPrimitive((Number) value);
        }
    } else if (value instanceof Boolean) {
        return new JsonPrimitive((Boolean) value);
    } else if (value instanceof String) {
        return new JsonPrimitive((String) value);
    } else if (value instanceof Character) {
        return new JsonPrimitive((Character) value);
    } else if (value instanceof JsonElement) {
        return (JsonElement) value;
    } else if (value instanceof DateTime) {
        return new JsonPrimitive(((DateTime) value).getUtcTime());
    } else if (value instanceof UUID) {
        return new JsonPrimitive(value.toString());
    } else if (value instanceof LocalizedText) {
        return gson.toJsonTree(value);
    } else if (value instanceof QualifiedName) {
        return gson.toJsonTree(value);
    } else if (value instanceof ByteString) {
        ByteString byteString = (ByteString) value;
        byte[] bs = byteString.bytesOrEmpty();
        JsonArray array = new JsonArray();
        for (Byte b : bs) {
            array.add(new JsonPrimitive(b));
        }
        return array;
    } else if (value instanceof XmlElement) {
        String fragment = ((XmlElement) value).getFragment();
        return fragment != null ? new JsonPrimitive(fragment) : JsonNull.INSTANCE;
    } else if (value instanceof NodeId) {
        String nodeId = ((NodeId) value).toParseableString();
        return new JsonPrimitive(nodeId);
    } else if (value instanceof ExpandedNodeId) {
        String xNodeId = ((ExpandedNodeId) value).toParseableString();
        return new JsonPrimitive(xNodeId);
    } else if (value instanceof StatusCode) {
        long code = ((StatusCode) value).getValue();
        return new JsonPrimitive(code);
    } else {
        throw new RuntimeException("could not create JsonElement for value: " + value);
    }
}
Also used : ULong(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.ULong) JsonPrimitive(com.google.gson.JsonPrimitive) ByteString(org.eclipse.milo.opcua.stack.core.types.builtin.ByteString) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) UShort(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort) ByteString(org.eclipse.milo.opcua.stack.core.types.builtin.ByteString) StatusCode(org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode) DateTime(org.eclipse.milo.opcua.stack.core.types.builtin.DateTime) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText) Unsigned.ulong(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.Unsigned.ulong) UByte(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte) JsonArray(com.google.gson.JsonArray) ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) JsonElement(com.google.gson.JsonElement) UByte(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte) UInteger(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) XmlElement(org.eclipse.milo.opcua.stack.core.types.builtin.XmlElement) UUID(java.util.UUID)

Example 4 with ExpandedNodeId

use of org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId in project milo by eclipse.

the class BrowsePathsHelper method target.

private CompletableFuture<List<ExpandedNodeId>> target(NodeId nodeId, RelativePathElement element) {
    NodeId referenceTypeId = element.getReferenceTypeId();
    boolean includeSubtypes = element.getIncludeSubtypes();
    QualifiedName targetName = element.getTargetName();
    if (targetName.isNull()) {
        return failedUaFuture(StatusCodes.Bad_BrowseNameInvalid);
    }
    BrowseContext browseContext = new BrowseContext(server, context.getSession().orElse(null));
    server.getAddressSpaceManager().browse(browseContext, nodeId);
    CompletableFuture<List<Reference>> future = browseContext.getFuture();
    return future.thenCompose(references -> {
        List<ExpandedNodeId> targetNodeIds = references.stream().filter(r -> referenceTypeId.isNull() || r.getReferenceTypeId().equals(referenceTypeId) || (includeSubtypes && r.subtypeOf(referenceTypeId, server.getReferenceTypes()))).filter(r -> r.isInverse() == element.getIsInverse()).map(Reference::getTargetNodeId).collect(toList());
        if (targetNodeIds.isEmpty()) {
            return failedUaFuture(StatusCodes.Bad_NoMatch);
        } else {
            return readTargetBrowseNames(targetNodeIds).thenApply(browseNames -> {
                List<ExpandedNodeId> targets = newArrayList();
                for (int i = 0; i < targetNodeIds.size(); i++) {
                    ExpandedNodeId targetNodeId = targetNodeIds.get(i);
                    QualifiedName browseName = browseNames.get(i);
                    if (matchesTarget(browseName, targetName)) {
                        targets.add(targetNodeId);
                    }
                }
                return targets;
            });
        }
    });
}
Also used : ReadContext(org.eclipse.milo.opcua.sdk.server.api.services.AttributeServices.ReadContext) DataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue) CompletableFuture.completedFuture(java.util.concurrent.CompletableFuture.completedFuture) FutureUtils.sequence(org.eclipse.milo.opcua.stack.core.util.FutureUtils.sequence) CompletableFuture(java.util.concurrent.CompletableFuture) ConversionUtil.a(org.eclipse.milo.opcua.stack.core.util.ConversionUtil.a) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) ServiceRequest(org.eclipse.milo.opcua.stack.server.services.ServiceRequest) BrowsePathTarget(org.eclipse.milo.opcua.stack.core.types.structured.BrowsePathTarget) Unsigned.uint(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.Unsigned.uint) ConversionUtil.l(org.eclipse.milo.opcua.stack.core.util.ConversionUtil.l) AttributeId(org.eclipse.milo.opcua.stack.core.AttributeId) TranslateBrowsePathsToNodeIdsRequest(org.eclipse.milo.opcua.stack.core.types.structured.TranslateBrowsePathsToNodeIdsRequest) ServiceAttributes(org.eclipse.milo.opcua.sdk.server.services.ServiceAttributes) Reference(org.eclipse.milo.opcua.sdk.core.Reference) StatusCodes(org.eclipse.milo.opcua.stack.core.StatusCodes) TimestampsToReturn(org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) FutureUtils.failedUaFuture(org.eclipse.milo.opcua.stack.core.util.FutureUtils.failedUaFuture) Lists.newArrayListWithCapacity(com.google.common.collect.Lists.newArrayListWithCapacity) BrowsePath(org.eclipse.milo.opcua.stack.core.types.structured.BrowsePath) ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) UInteger(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger) RelativePathElement(org.eclipse.milo.opcua.stack.core.types.structured.RelativePathElement) ReadValueId(org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId) OpcUaServer(org.eclipse.milo.opcua.sdk.server.OpcUaServer) BrowsePathResult(org.eclipse.milo.opcua.stack.core.types.structured.BrowsePathResult) DiagnosticInfo(org.eclipse.milo.opcua.stack.core.types.builtin.DiagnosticInfo) RelativePath(org.eclipse.milo.opcua.stack.core.types.structured.RelativePath) List(java.util.List) Collectors.toList(java.util.stream.Collectors.toList) Lists.newArrayList(com.google.common.collect.Lists.newArrayList) AccessContext(org.eclipse.milo.opcua.sdk.server.api.AccessContext) StatusCode(org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode) UaException(org.eclipse.milo.opcua.stack.core.UaException) TranslateBrowsePathsToNodeIdsResponse(org.eclipse.milo.opcua.stack.core.types.structured.TranslateBrowsePathsToNodeIdsResponse) Optional(java.util.Optional) BrowseContext(org.eclipse.milo.opcua.sdk.server.api.services.ViewServices.BrowseContext) ResponseHeader(org.eclipse.milo.opcua.stack.core.types.structured.ResponseHeader) Collections(java.util.Collections) BrowseContext(org.eclipse.milo.opcua.sdk.server.api.services.ViewServices.BrowseContext) ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) List(java.util.List) Collectors.toList(java.util.stream.Collectors.toList) Lists.newArrayList(com.google.common.collect.Lists.newArrayList) Unsigned.uint(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.Unsigned.uint)

Example 5 with ExpandedNodeId

use of org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId in project milo by eclipse.

the class BrowsePathsHelper method next.

private CompletableFuture<ExpandedNodeId> next(NodeId nodeId, RelativePathElement element) {
    NodeId referenceTypeId = element.getReferenceTypeId();
    boolean includeSubtypes = element.getIncludeSubtypes();
    QualifiedName targetName = element.getTargetName();
    if (targetName.isNull()) {
        return failedUaFuture(StatusCodes.Bad_BrowseNameInvalid);
    }
    BrowseContext browseContext = new BrowseContext(server, context.getSession().orElse(null));
    server.getAddressSpaceManager().browse(browseContext, nodeId);
    CompletableFuture<List<Reference>> future = browseContext.getFuture();
    return future.thenCompose(references -> {
        List<ExpandedNodeId> targetNodeIds = references.stream().filter(r -> referenceTypeId.isNull() || r.getReferenceTypeId().equals(referenceTypeId) || (includeSubtypes && r.subtypeOf(referenceTypeId, server.getReferenceTypes()))).filter(r -> r.isInverse() == element.getIsInverse()).map(Reference::getTargetNodeId).collect(toList());
        if (targetNodeIds.isEmpty()) {
            return failedUaFuture(StatusCodes.Bad_NoMatch);
        } else {
            return readTargetBrowseNames(targetNodeIds).thenApply(browseNames -> {
                for (int i = 0; i < targetNodeIds.size(); i++) {
                    ExpandedNodeId targetNodeId = targetNodeIds.get(i);
                    QualifiedName browseName = browseNames.get(i);
                    if (browseName.equals(targetName)) {
                        return targetNodeId;
                    }
                }
                return ExpandedNodeId.NULL_VALUE;
            });
        }
    });
}
Also used : ReadContext(org.eclipse.milo.opcua.sdk.server.api.services.AttributeServices.ReadContext) DataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue) CompletableFuture.completedFuture(java.util.concurrent.CompletableFuture.completedFuture) FutureUtils.sequence(org.eclipse.milo.opcua.stack.core.util.FutureUtils.sequence) CompletableFuture(java.util.concurrent.CompletableFuture) ConversionUtil.a(org.eclipse.milo.opcua.stack.core.util.ConversionUtil.a) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) ServiceRequest(org.eclipse.milo.opcua.stack.server.services.ServiceRequest) BrowsePathTarget(org.eclipse.milo.opcua.stack.core.types.structured.BrowsePathTarget) Unsigned.uint(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.Unsigned.uint) ConversionUtil.l(org.eclipse.milo.opcua.stack.core.util.ConversionUtil.l) AttributeId(org.eclipse.milo.opcua.stack.core.AttributeId) TranslateBrowsePathsToNodeIdsRequest(org.eclipse.milo.opcua.stack.core.types.structured.TranslateBrowsePathsToNodeIdsRequest) ServiceAttributes(org.eclipse.milo.opcua.sdk.server.services.ServiceAttributes) Reference(org.eclipse.milo.opcua.sdk.core.Reference) StatusCodes(org.eclipse.milo.opcua.stack.core.StatusCodes) TimestampsToReturn(org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) FutureUtils.failedUaFuture(org.eclipse.milo.opcua.stack.core.util.FutureUtils.failedUaFuture) Lists.newArrayListWithCapacity(com.google.common.collect.Lists.newArrayListWithCapacity) BrowsePath(org.eclipse.milo.opcua.stack.core.types.structured.BrowsePath) ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) UInteger(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger) RelativePathElement(org.eclipse.milo.opcua.stack.core.types.structured.RelativePathElement) ReadValueId(org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId) OpcUaServer(org.eclipse.milo.opcua.sdk.server.OpcUaServer) BrowsePathResult(org.eclipse.milo.opcua.stack.core.types.structured.BrowsePathResult) DiagnosticInfo(org.eclipse.milo.opcua.stack.core.types.builtin.DiagnosticInfo) RelativePath(org.eclipse.milo.opcua.stack.core.types.structured.RelativePath) List(java.util.List) Collectors.toList(java.util.stream.Collectors.toList) Lists.newArrayList(com.google.common.collect.Lists.newArrayList) AccessContext(org.eclipse.milo.opcua.sdk.server.api.AccessContext) StatusCode(org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode) UaException(org.eclipse.milo.opcua.stack.core.UaException) TranslateBrowsePathsToNodeIdsResponse(org.eclipse.milo.opcua.stack.core.types.structured.TranslateBrowsePathsToNodeIdsResponse) Optional(java.util.Optional) BrowseContext(org.eclipse.milo.opcua.sdk.server.api.services.ViewServices.BrowseContext) ResponseHeader(org.eclipse.milo.opcua.stack.core.types.structured.ResponseHeader) Collections(java.util.Collections) BrowseContext(org.eclipse.milo.opcua.sdk.server.api.services.ViewServices.BrowseContext) ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) List(java.util.List) Collectors.toList(java.util.stream.Collectors.toList) Lists.newArrayList(com.google.common.collect.Lists.newArrayList) Unsigned.uint(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.Unsigned.uint)

Aggregations

ExpandedNodeId (org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId)25 NodeId (org.eclipse.milo.opcua.stack.core.types.builtin.NodeId)18 QualifiedName (org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName)9 Reference (org.eclipse.milo.opcua.sdk.core.Reference)7 StatusCode (org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode)7 UInteger (org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger)7 Unsigned.uint (org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.Unsigned.uint)7 List (java.util.List)6 Optional (java.util.Optional)6 UaException (org.eclipse.milo.opcua.stack.core.UaException)6 DataValue (org.eclipse.milo.opcua.stack.core.types.builtin.DataValue)6 LocalizedText (org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText)6 CompletableFuture (java.util.concurrent.CompletableFuture)5 AttributeId (org.eclipse.milo.opcua.stack.core.AttributeId)5 StatusCodes (org.eclipse.milo.opcua.stack.core.StatusCodes)5 ConversionUtil.l (org.eclipse.milo.opcua.stack.core.util.ConversionUtil.l)5 FutureUtils.failedUaFuture (org.eclipse.milo.opcua.stack.core.util.FutureUtils.failedUaFuture)5 Collections (java.util.Collections)4 CompletableFuture.completedFuture (java.util.concurrent.CompletableFuture.completedFuture)4 UaObjectTypeNode (org.eclipse.milo.opcua.sdk.server.nodes.UaObjectTypeNode)4