All Implemented Interfaces:
AuditEventType, AuditSecurityEventType, AuditSessionEventType, BaseEventType, BaseObjectType, org.eclipse.milo.opcua.sdk.core.nodes.Node, org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode
Direct Known Subclasses:
AuditActivateSessionEventTypeNode, AuditCancelEventTypeNode, AuditCreateSessionEventTypeNode

public class AuditSessionEventTypeNode extends AuditSecurityEventTypeNode implements AuditSessionEventType
  • Constructor Details

    • AuditSessionEventTypeNode

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

    • getSessionId

      public org.eclipse.milo.opcua.stack.core.types.builtin.NodeId getSessionId() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: AuditSessionEventType
      Get the local value of the SessionId Node.

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

      Specified by:
      getSessionId in interface AuditSessionEventType
      Returns:
      the local value of the SessionId Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the SessionId Node.
    • setSessionId

      public void setSessionId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: AuditSessionEventType
      Set the local value of the SessionId Node.

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

      Specified by:
      setSessionId in interface AuditSessionEventType
      Parameters:
      value - the local value to set for the SessionId Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the SessionId Node.
    • readSessionId

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

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

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

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeSessionIdAsync(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId sessionId)
      Description copied from interface: AuditSessionEventType
      Specified by:
      writeSessionIdAsync in interface AuditSessionEventType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getSessionIdNode

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

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

      Specified by:
      getSessionIdNode in interface AuditSessionEventType
      Returns:
      the SessionId 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.
    • getSessionIdNodeAsync

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