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 Summary
Modifier and TypeMethodDescriptionThis method is used to get the remote server configuration from the storage.voidThis method is used to reset the remote server configurations to the defaults in the storage.voidThis method is used to add a remote server configuration from the storage.
-
Method Details
-
saveRemoteServerConfig
void saveRemoteServerConfig(RemoteServerLoggerData data, LoggingConstants.LogType type) throws RemoteLoggingServerException This method is used to add a remote server configuration from the storage.- Parameters:
data- RemoteServerLoggerData object that contains the remote server configuration.type- The log type of the remote server configuration.- Throws:
RemoteLoggingServerException- If an error occurs while loading the remote server configuration.
-
getRemoteServerConfig
Optional<RemoteServerLoggerData> getRemoteServerConfig(LoggingConstants.LogType type) throws RemoteLoggingServerException This method is used to get the remote server configuration from the storage.- Parameters:
type- The log type of the remote server configuration.- Returns:
- The remote server configuration.
- Throws:
RemoteLoggingServerException- If an error occurs while loading the remote server configuration.
-
resetRemoteServerConfig
This method is used to reset the remote server configurations to the defaults in the storage.- Parameters:
type- The log type of the remote server configuration.- Throws:
RemoteLoggingServerException- If an error occurs while loading the remote server configuration.
-