Class ServerDiagnosticsNode

    • Constructor Detail

      • ServerDiagnosticsNode

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

      • getEnabledFlag

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

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

        public com.plccom.opc.ua.core.ServerDiagnosticsSummaryDataType getServerDiagnosticsSummary()
                                                                                            throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                                                   com.plccom.opc.ua.common.ServiceResultException
        Returns the ServerDiagnosticsSummary from connected ua server
        Returns:
        the ServerDiagnosticsSummary
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setServerDiagnosticsSummary

        public com.plccom.opc.ua.builtintypes.StatusCode setServerDiagnosticsSummary​(com.plccom.opc.ua.core.ServerDiagnosticsSummaryDataType value)
                                                                              throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                                     com.plccom.opc.ua.common.ServiceResultException
        Sets the ServerDiagnosticsSummary at connected ua server
        Parameters:
        value - the ServerDiagnosticsSummary
        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
      • getSamplingIntervalDiagnosticsArray

        public com.plccom.opc.ua.core.SamplingIntervalDiagnosticsDataType[] getSamplingIntervalDiagnosticsArray()
                                                                                                         throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                                                                com.plccom.opc.ua.common.ServiceResultException
        Returns the SamplingIntervalDiagnosticsArray connected ua server
        Returns:
        the SamplingIntervalDiagnosticsArray
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setSamplingIntervalDiagnosticsArray

        public com.plccom.opc.ua.builtintypes.StatusCode setSamplingIntervalDiagnosticsArray​(com.plccom.opc.ua.core.SamplingIntervalDiagnosticsDataType[] value)
                                                                                      throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                                             com.plccom.opc.ua.common.ServiceResultException
        Sets the SamplingIntervalDiagnosticsArray at connected ua server
        Parameters:
        value - the SamplingIntervalDiagnosticsArray
        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
      • getSubscriptionDiagnosticsArray

        public com.plccom.opc.ua.core.SubscriptionDiagnosticsDataType[] getSubscriptionDiagnosticsArray()
                                                                                                 throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                                                        com.plccom.opc.ua.common.ServiceResultException
        Returns the SubscriptionDiagnosticsArray from connected ua server
        Returns:
        the SubscriptionDiagnosticsArray
        Throws:
        com.plccom.opc.ua.common.ServiceFaultException - on error while executing the operation
        com.plccom.opc.ua.common.ServiceResultException - on communication error
      • setSubscriptionDiagnosticsArray

        public com.plccom.opc.ua.builtintypes.StatusCode setSubscriptionDiagnosticsArray​(com.plccom.opc.ua.core.SubscriptionDiagnosticsDataType[] value)
                                                                                  throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                                         com.plccom.opc.ua.common.ServiceResultException
        Sets the SubscriptionDiagnosticsArray at connected ua server
        Parameters:
        value - the SubscriptionDiagnosticsArray
        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