Class FileNode

    • Constructor Detail

      • FileNode

        public FileNode​(UaClient client,
                        com.plccom.opc.ua.builtintypes.NodeId nodeId)
        default constructor for FileNode instances
        Parameters:
        client - the client instance
        nodeId - the based nodeid
    • Method Detail

      • getSize

        public com.plccom.opc.ua.builtintypes.UnsignedLong getSize()
                                                            throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                   com.plccom.opc.ua.common.ServiceResultException
        Returns the attribute SIZE from cache or directly from connected ua server
        Returns:
        the SIZE attribute
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setSize

        public com.plccom.opc.ua.builtintypes.StatusCode setSize​(com.plccom.opc.ua.builtintypes.UnsignedLong value)
                                                          throws com.plccom.opc.ua.common.ServiceResultException
        Sets the attribute SIZE of this node at connected ua server and refreshing the nodecache
        Parameters:
        value - the SIZE attribute
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getWritable

        public Boolean getWritable()
                            throws com.plccom.opc.ua.common.ServiceFaultException,
                                   com.plccom.opc.ua.common.ServiceResultException
        Returns the attribute WRITABLE from cache or directly from connected ua server
        Returns:
        the WRITABLE attribute
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setWritable

        public com.plccom.opc.ua.builtintypes.StatusCode setWritable​(Boolean value)
                                                              throws com.plccom.opc.ua.common.ServiceResultException
        Sets the attribute WRITABLE of this node at connected ua server and refreshing the nodecache
        Parameters:
        value - the WRITABLE attribute
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getUserWritable

        public Boolean getUserWritable()
                                throws com.plccom.opc.ua.common.ServiceFaultException,
                                       com.plccom.opc.ua.common.ServiceResultException
        Returns the attribute USER_WRITABLE from cache or directly from connected ua server
        Returns:
        the USER_WRITABLE attribute
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setUserWritable

        public com.plccom.opc.ua.builtintypes.StatusCode setUserWritable​(Boolean value)
                                                                  throws com.plccom.opc.ua.common.ServiceResultException
        Sets the attribute USER_WRITABLE of this node at connected ua server and refreshing the nodecache
        Parameters:
        value - the USER_WRITABLE attribute
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getOpenCount

        public com.plccom.opc.ua.builtintypes.UnsignedShort getOpenCount()
                                                                  throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                         com.plccom.opc.ua.common.ServiceResultException
        Returns the attribute OPEN_COUNT from cache or directly from connected ua server
        Returns:
        the OPEN_COUNT attribute
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setOpenCount

        public com.plccom.opc.ua.builtintypes.StatusCode setOpenCount​(com.plccom.opc.ua.builtintypes.UnsignedShort value)
                                                               throws com.plccom.opc.ua.common.ServiceResultException
        Sets the attribute OPEN_COUNT of this node at connected ua server and refreshing the nodecache
        Parameters:
        value - the OPEN_COUNT attribute
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getMimeType

        public String getMimeType()
                           throws com.plccom.opc.ua.common.ServiceFaultException,
                                  com.plccom.opc.ua.common.ServiceResultException
        Returns the attribute MIME_TYPE from cache or directly from connected ua server
        Returns:
        the MIME_TYPE attribute
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setMimeType

        public com.plccom.opc.ua.builtintypes.StatusCode setMimeType​(String value)
                                                              throws com.plccom.opc.ua.common.ServiceResultException
        Sets the attribute MIME_TYPE of this node at connected ua server and refreshing the nodecache
        Parameters:
        value - the MIME_TYPE attribute
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error