Class LogFileProvider


  • public class LogFileProvider
    extends Object
    This class will handle log file related operations.
    • Constructor Detail

      • LogFileProvider

        public LogFileProvider()
    • Method Detail

      • getLogFileInfoList

        public List<LogFileInfo> getLogFileInfoList​(String tenantDomain,
                                                    String serverKey)
        This method will return the information of log files in repository/logs.
        Parameters:
        tenantDomain - - Tenant domain eg: t1.com.
        serverKey - Server name.
        Returns:
        Info list of log files.
      • downloadLogFile

        public DataHandler downloadLogFile​(String logFile)
                                    throws LogViewerException
        This method will download a log file with the given name.
        Parameters:
        logFile - - File name which need to download, this should not be null.
        Returns:
        DataHandler whith input stream of the file.
        Throws:
        LogViewerException - Error occurred while reading the file.