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

public class ProgressEventTypeNode extends BaseEventTypeNode implements ProgressEventType
  • Constructor Details

    • ProgressEventTypeNode

      public ProgressEventTypeNode(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

    • getContext

      public Object getContext() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ProgressEventType
      Get the local value of the Context Node.

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

      Specified by:
      getContext in interface ProgressEventType
      Returns:
      the local value of the Context Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Context Node.
    • setContext

      public void setContext(Object value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ProgressEventType
      Set the local value of the Context Node.

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

      Specified by:
      setContext in interface ProgressEventType
      Parameters:
      value - the local value to set for the Context Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Context Node.
    • readContext

      public Object readContext() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ProgressEventType
      Read the value of the Context Node from the server and update the local value if the operation succeeds.
      Specified by:
      readContext in interface ProgressEventType
      Returns:
      the Object value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeContext

      public void writeContext(Object value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ProgressEventType
      Write a new value for the Context Node to the server and update the local value if the operation succeeds.
      Specified by:
      writeContext in interface ProgressEventType
      Parameters:
      value - the Object value to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • readContextAsync

      public CompletableFuture<?> readContextAsync()
      Description copied from interface: ProgressEventType
      An asynchronous implementation of ProgressEventType.readContext().
      Specified by:
      readContextAsync in interface ProgressEventType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writeContextAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeContextAsync(Object context)
      Description copied from interface: ProgressEventType
      An asynchronous implementation of ProgressEventType.writeContext(java.lang.Object).
      Specified by:
      writeContextAsync in interface ProgressEventType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getContextNode

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

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

      Specified by:
      getContextNode in interface ProgressEventType
      Returns:
      the Context 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.
    • getContextNodeAsync

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

      public org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort getProgress() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ProgressEventType
      Get the local value of the Progress Node.

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

      Specified by:
      getProgress in interface ProgressEventType
      Returns:
      the local value of the Progress Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Progress Node.
    • setProgress

      public void setProgress(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ProgressEventType
      Set the local value of the Progress Node.

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

      Specified by:
      setProgress in interface ProgressEventType
      Parameters:
      value - the local value to set for the Progress Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Progress Node.
    • readProgress

      public org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort readProgress() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ProgressEventType
      Read the value of the Progress Node from the server and update the local value if the operation succeeds.
      Specified by:
      readProgress in interface ProgressEventType
      Returns:
      the UShort value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeProgress

      public void writeProgress(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: ProgressEventType
      Write a new value for the Progress Node to the server and update the local value if the operation succeeds.
      Specified by:
      writeProgress in interface ProgressEventType
      Parameters:
      value - the UShort value to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • readProgressAsync

      public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort> readProgressAsync()
      Description copied from interface: ProgressEventType
      An asynchronous implementation of ProgressEventType.readProgress().
      Specified by:
      readProgressAsync in interface ProgressEventType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writeProgressAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeProgressAsync(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort progress)
      Description copied from interface: ProgressEventType
      Specified by:
      writeProgressAsync in interface ProgressEventType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getProgressNode

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

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

      Specified by:
      getProgressNode in interface ProgressEventType
      Returns:
      the Progress 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.
    • getProgressNodeAsync

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