Class RegistryBasedRemoteLoggingConfigDAO
java.lang.Object
org.wso2.carbon.logging.service.dao.impl.RegistryBasedRemoteLoggingConfigDAO
- All Implemented Interfaces:
RemoteLoggingConfigDAO
This class is used to update the remote server logging configurations in the registry.
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
RegistryBasedRemoteLoggingConfigDAO
public RegistryBasedRemoteLoggingConfigDAO()
-
-
Method Details
-
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.
-