Class RemoteLoggingConfigClient


  • public class RemoteLoggingConfigClient
    extends Object
    This is the Admin client used for updating Log4J2 appenders related to remote server configuration.
    • Field Detail

      • stub

        public org.wso2.carbon.logging.remote.config.stub.RemoteLoggingConfigStub stub
    • Constructor Detail

      • RemoteLoggingConfigClient

        public RemoteLoggingConfigClient​(String cookie,
                                         String backendServerURL,
                                         org.apache.axis2.context.ConfigurationContext configCtx)
                                  throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault
    • Method Detail

      • addRemoteServerConfig

        public void addRemoteServerConfig​(org.wso2.carbon.logging.remote.config.stub.types.carbon.RemoteServerLoggerData data)
                                   throws Exception
        Add remote server configuration.
        Parameters:
        data - RemoteServerLoggerData
        Throws:
        Exception - Exception
      • resetRemoteServerConfig

        public void resetRemoteServerConfig​(org.wso2.carbon.logging.remote.config.stub.types.carbon.RemoteServerLoggerData data)
                                     throws Exception
        Reset remote server configuration.
        Parameters:
        data - RemoteServerLoggerData
        Throws:
        Exception - Exception
      • getRemoteServerConfigs

        public org.wso2.carbon.logging.remote.config.stub.types.carbon.RemoteServerLoggerData[] getRemoteServerConfigs()
                                                                                                                throws Exception
        Get remote server configuration.
        Returns:
        RemoteServerLoggerData[] Array of RemoteServerLoggerData
        Throws:
        Exception - If an error occurs while getting remote server configuration.
      • getRemoteServerConfig

        public org.wso2.carbon.logging.remote.config.stub.types.carbon.RemoteServerLoggerData getRemoteServerConfig​(String logType)
                                                                                                             throws Exception
        Get remote server configuration for a given log type.
        Parameters:
        logType - The log type of the remote server configuration.
        Returns:
        RemoteServerLoggerData object that contains the remote server configuration.
        Throws:
        Exception - If an error occurs while getting remote server configuration.