Class RegistryBasedRemoteLoggingConfigDAO

    • Constructor Detail

      • RegistryBasedRemoteLoggingConfigDAO

        public RegistryBasedRemoteLoggingConfigDAO()
    • Method Detail

      • saveRemoteServerConfigInRegistry

        public void saveRemoteServerConfigInRegistry​(RemoteServerLoggerData data,
                                                     LoggingConstants.LogType logType)
                                              throws org.apache.commons.configuration.ConfigurationException
        Description copied from interface: RemoteLoggingConfigDAO
        This method is used to add a remote server configuration from the storage.
        Specified by:
        saveRemoteServerConfigInRegistry in interface RemoteLoggingConfigDAO
        Parameters:
        data - RemoteServerLoggerData object that contains the remote server configuration.
        logType - The log type of the remote server configuration.
        Throws:
        org.apache.commons.configuration.ConfigurationException - If an error occurs while loading the remote server configuration.
      • getRemoteServerConfig

        public Optional<RemoteServerLoggerData> getRemoteServerConfig​(LoggingConstants.LogType logType)
                                                               throws org.apache.commons.configuration.ConfigurationException
        Description copied from interface: RemoteLoggingConfigDAO
        This method is used to get the remote server configuration from the storage.
        Specified by:
        getRemoteServerConfig in interface RemoteLoggingConfigDAO
        Parameters:
        logType - The log type of the remote server configuration.
        Returns:
        The remote server configuration.
        Throws:
        org.apache.commons.configuration.ConfigurationException - If an error occurs while loading the remote server configuration.
      • resetRemoteServerConfigInRegistry

        public void resetRemoteServerConfigInRegistry​(LoggingConstants.LogType logType)
                                               throws org.apache.commons.configuration.ConfigurationException
        Description copied from interface: RemoteLoggingConfigDAO
        This method is used to reset the remote server configurations to the defaults in the storage.
        Specified by:
        resetRemoteServerConfigInRegistry in interface RemoteLoggingConfigDAO
        Parameters:
        logType - The log type of the remote server configuration.
        Throws:
        org.apache.commons.configuration.ConfigurationException - If an error occurs while loading the remote server configuration.