Interface RemoteLoggingConfigDAO
-
- All Known Implementing Classes:
RegistryBasedRemoteLoggingConfigDAO
public interface RemoteLoggingConfigDAOThis is the interface used for managing the remote server logging configurations in the storage.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<RemoteServerLoggerData>getRemoteServerConfig(LoggingConstants.LogType type)This method is used to get the remote server configuration from the storage.voidresetRemoteServerConfig(LoggingConstants.LogType type)This method is used to reset the remote server configurations to the defaults in the storage.voidsaveRemoteServerConfig(RemoteServerLoggerData data, LoggingConstants.LogType type)This method is used to add a remote server configuration from the storage.
-
-
-
Method Detail
-
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
void resetRemoteServerConfig(LoggingConstants.LogType type) throws RemoteLoggingServerException
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.
-
-