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 RemoteServerLoggerDatagetRemoteServerConfig(String logType)This method is used to get the remote server configuration from the storage.voidresetRemoteServerConfigInRegistry(String appenderName)This method is used to reset the remote server configurations to the defaults in the storage.voidsaveRemoteServerConfigInRegistry(RemoteServerLoggerData data, String appenderName)This method is used to add a remote server configuration from the storage.
-
-
-
Method Detail
-
saveRemoteServerConfigInRegistry
public void saveRemoteServerConfigInRegistry(RemoteServerLoggerData data, String appenderName) throws org.apache.commons.configuration.ConfigurationException
Description copied from interface:RemoteLoggingConfigDAOThis method is used to add a remote server configuration from the storage.- Specified by:
saveRemoteServerConfigInRegistryin interfaceRemoteLoggingConfigDAO- Parameters:
data- RemoteServerLoggerData object that contains the remote server configuration.appenderName- The appender name of the remote server configuration.- Throws:
org.apache.commons.configuration.ConfigurationException- If an error occurs while loading the remote server configuration.
-
getRemoteServerConfig
public RemoteServerLoggerData getRemoteServerConfig(String logType) throws org.apache.commons.configuration.ConfigurationException
Description copied from interface:RemoteLoggingConfigDAOThis method is used to get the remote server configuration from the storage.- Specified by:
getRemoteServerConfigin interfaceRemoteLoggingConfigDAO- Parameters:
logType- The log type of the remote server configuration.- Returns:
- RemoteServerLoggerData object that contains the remote server configuration.
- Throws:
org.apache.commons.configuration.ConfigurationException- If an error occurs while loading the remote server configuration.
-
resetRemoteServerConfigInRegistry
public void resetRemoteServerConfigInRegistry(String appenderName) throws org.apache.commons.configuration.ConfigurationException
Description copied from interface:RemoteLoggingConfigDAOThis method is used to reset the remote server configurations to the defaults in the storage.- Specified by:
resetRemoteServerConfigInRegistryin interfaceRemoteLoggingConfigDAO- Parameters:
appenderName- The appender name of the remote server configuration.- Throws:
org.apache.commons.configuration.ConfigurationException- If an error occurs while loading the remote server configuration.
-
-