Interface RemoteLoggingConfigDAO

  • All Known Implementing Classes:
    RegistryBasedRemoteLoggingConfigDAO

    public interface RemoteLoggingConfigDAO
    This is the interface used for managing the remote server logging configurations in the storage.
    • Method Detail

      • saveRemoteServerConfigInRegistry

        void saveRemoteServerConfigInRegistry​(RemoteServerLoggerData data,
                                              LoggingConstants.LogType logType)
                                       throws org.apache.commons.configuration.ConfigurationException
        This method is used to add a remote server configuration from the storage.
        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

        Optional<RemoteServerLoggerData> getRemoteServerConfig​(LoggingConstants.LogType logType)
                                                        throws org.apache.commons.configuration.ConfigurationException
        This method is used to get the remote server configuration from the storage.
        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

        void resetRemoteServerConfigInRegistry​(LoggingConstants.LogType logType)
                                        throws org.apache.commons.configuration.ConfigurationException
        This method is used to reset the remote server configurations to the defaults in the storage.
        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.