Class TransparentRedundancyNode

    • Constructor Detail

      • TransparentRedundancyNode

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

      • getCurrentServerId

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

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

        public com.plccom.opc.ua.core.RedundantServerDataType[] getRedundantServerArray()
                                                                                 throws com.plccom.opc.ua.common.ServiceFaultException,
                                                                                        com.plccom.opc.ua.common.ServiceResultException
        Returns the attribute REDUNDANT_SERVER_ARRAY from cache or directly from connected ua server
        Returns:
        the REDUNDANT_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
      • setRedundantServerArray

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