Class ServerNode

    • Constructor Detail

      • ServerNode

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

      • serverCapabilities

        public ServerCapabilitiesNode serverCapabilities()
                                                  throws com.plccom.opc.ua.common.ServiceResultException
        Returns the ServerCapabilities from connected ua server
        Returns:
        the ServerCapabilities
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • serverDiagnostics

        public ServerDiagnosticsNode serverDiagnostics()
                                                throws com.plccom.opc.ua.common.ServiceResultException
        Returns the ServerDiagnostics from connected ua server
        Returns:
        the ServerDiagnostics
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • vendorServerInfo

        public VendorServerInfoNode vendorServerInfo()
                                              throws com.plccom.opc.ua.common.ServiceResultException
        Returns the VendorServerInfo from connected ua server
        Returns:
        the VendorServerInfo
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • serverRedundancy

        public ServerRedundancyNode serverRedundancy()
                                              throws com.plccom.opc.ua.common.ServiceResultException
        Returns the ServerRedundancy from connected ua server
        Returns:
        the ServerRedundancy
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • namespaces

        public NamespacesNode namespaces()
                                  throws com.plccom.opc.ua.common.ServiceResultException
        Returns the Namespaces from connected ua server
        Returns:
        the Namespaces
        Throws:
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • getServerArray

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

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

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

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

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

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

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

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

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

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

        public com.plccom.opc.ua.core.ServerStatusDataType getServerStatus()
                                                                    throws com.plccom.opc.ua.encoding.DecodingException,
                                                                           com.plccom.opc.ua.common.ServiceFaultException,
                                                                           com.plccom.opc.ua.common.ServiceResultException
        Returns the ServerStatus from cache or directly from connected ua server
        Returns:
        the ServerStatus
        Throws:
        com.plccom.opc.ua.encoding.DecodingException - throws if internal cast operation throws errors
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setServerStatus

        public com.plccom.opc.ua.builtintypes.StatusCode setServerStatus​(com.plccom.opc.ua.core.ServerStatusDataType value)
                                                                  throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                         com.plccom.opc.ua.common.ServiceResultException
        Sets the ServerStatus
        Parameters:
        value - the ServerStatus
        Returns:
        a StatusCode object with result of actual operation
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error