All Implemented Interfaces:
BaseObjectType, PublishedDataItemsType, PublishedDataSetType, org.eclipse.milo.opcua.sdk.core.nodes.Node, org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode

public class PublishedDataItemsTypeNode extends PublishedDataSetTypeNode implements PublishedDataItemsType
  • Constructor Details

    • PublishedDataItemsTypeNode

      public PublishedDataItemsTypeNode(OpcUaClient client, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass nodeClass, org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName browseName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText displayName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText description, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger writeMask, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger userWriteMask, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] rolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] userRolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.AccessRestrictionType accessRestrictions, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte eventNotifier)
  • Method Details

    • getPublishedData

      public org.eclipse.milo.opcua.stack.core.types.structured.PublishedVariableDataType[] getPublishedData() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: PublishedDataItemsType
      Get the local value of the PublishedData Node.

      The returned value is the last seen; it is not read live from the server.

      Specified by:
      getPublishedData in interface PublishedDataItemsType
      Returns:
      the local value of the PublishedData Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the PublishedData Node.
    • setPublishedData

      public void setPublishedData(org.eclipse.milo.opcua.stack.core.types.structured.PublishedVariableDataType[] value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: PublishedDataItemsType
      Set the local value of the PublishedData Node.

      The value is only updated locally; it is not written to the server.

      Specified by:
      setPublishedData in interface PublishedDataItemsType
      Parameters:
      value - the local value to set for the PublishedData Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the PublishedData Node.
    • readPublishedData

      public org.eclipse.milo.opcua.stack.core.types.structured.PublishedVariableDataType[] readPublishedData() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: PublishedDataItemsType
      Read the value of the PublishedData Node from the server and update the local value if the operation succeeds.
      Specified by:
      readPublishedData in interface PublishedDataItemsType
      Returns:
      the PublishedVariableDataType value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writePublishedData

      public void writePublishedData(org.eclipse.milo.opcua.stack.core.types.structured.PublishedVariableDataType[] value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: PublishedDataItemsType
      Write a new value for the PublishedData Node to the server and update the local value if the operation succeeds.
      Specified by:
      writePublishedData in interface PublishedDataItemsType
      Parameters:
      value - the PublishedVariableDataType value to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • readPublishedDataAsync

      public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.structured.PublishedVariableDataType[]> readPublishedDataAsync()
      Description copied from interface: PublishedDataItemsType
      An asynchronous implementation of PublishedDataItemsType.readPublishedData().
      Specified by:
      readPublishedDataAsync in interface PublishedDataItemsType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writePublishedDataAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writePublishedDataAsync(org.eclipse.milo.opcua.stack.core.types.structured.PublishedVariableDataType[] publishedData)
      Description copied from interface: PublishedDataItemsType
      Specified by:
      writePublishedDataAsync in interface PublishedDataItemsType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getPublishedDataNode

      public PropertyTypeNode getPublishedDataNode() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: PublishedDataItemsType
      Get the PublishedData PropertyType Node, or null if it does not exist.

      The Node is created when first accessed and cached for subsequent calls.

      Specified by:
      getPublishedDataNode in interface PublishedDataItemsType
      Returns:
      the PublishedData PropertyType Node, or null if it does not exist.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Node.
    • getPublishedDataNodeAsync

      public CompletableFuture<? extends PropertyTypeNode> getPublishedDataNodeAsync()
      Description copied from interface: PublishedDataItemsType
      Asynchronous implementation of PublishedDataItemsType.getPublishedDataNode().
      Specified by:
      getPublishedDataNodeAsync in interface PublishedDataItemsType
      Returns:
      a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.