Class RegistryBasedRemoteLoggingConfigDAO
- java.lang.Object
-
- org.wso2.carbon.logging.service.dao.impl.RegistryBasedRemoteLoggingConfigDAO
-
- All Implemented Interfaces:
RemoteLoggingConfigDAO
public class RegistryBasedRemoteLoggingConfigDAO extends Object implements RemoteLoggingConfigDAO
This class is used to update the remote server logging configurations in the registry.
-
-
Constructor Summary
Constructors Constructor Description RegistryBasedRemoteLoggingConfigDAO()
-
Method Summary
All Methods Instance Methods Concrete 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
public void saveRemoteServerConfig(RemoteServerLoggerData data, LoggingConstants.LogType type) throws RemoteLoggingServerException
Description copied from interface:RemoteLoggingConfigDAOThis method is used to add a remote server configuration from the storage.- Specified by:
saveRemoteServerConfigin interfaceRemoteLoggingConfigDAO- 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
public Optional<RemoteServerLoggerData> getRemoteServerConfig(LoggingConstants.LogType type) throws RemoteLoggingServerException
Description copied from interface:RemoteLoggingConfigDAOThis method is used to get the remote server configuration from the storage.- Specified by:
getRemoteServerConfigin interfaceRemoteLoggingConfigDAO- 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
public void resetRemoteServerConfig(LoggingConstants.LogType type) throws RemoteLoggingServerException
Description copied from interface:RemoteLoggingConfigDAOThis method is used to reset the remote server configurations to the defaults in the storage.- Specified by:
resetRemoteServerConfigin interfaceRemoteLoggingConfigDAO- Parameters:
type- The log type of the remote server configuration.- Throws:
RemoteLoggingServerException- If an error occurs while loading the remote server configuration.
-
-