Class ReportDataCollector

java.lang.Object
com.zetaplugins.zetacore.debug.ReportDataCollector

public final class ReportDataCollector extends Object
ReportDataCollector is responsible for collecting data for a debug report. It gathers information about the plugin, server, and installed plugins, and generates a DebugReport object containing this data.
  • Constructor Details

    • ReportDataCollector

      public ReportDataCollector(JavaPlugin plugin, File pluginFile, Map<String,String> configs)
      Creates a new ReportDataCollector instance.
      Parameters:
      plugin - the JavaPlugin instance for which the report is being collected
      pluginFile - the file of the plugin, used to generate a hash. Can be obtained using JavaPlugin#getFile(} inside a plugin's main class.
      configs - a map of configuration settings, where the key is the configuration file name and the value is the configuration saved as a string
  • Method Details

    • collect

      public static DebugReport collect(JavaPlugin plugin, File pluginFile, Map<String,String> configs)
      Collects a debug report for the specified plugin.
      Parameters:
      plugin - the JavaPlugin instance for which the report is being collected
      pluginFile - the file of the plugin, used to generate a hash. Can be obtained using JavaPlugin#getFile(} inside a plugin's main class.
      configs - a map of configuration settings, where the key is the configuration file name and the value is the configuration saved as a string
      Returns:
      a DebugReport object containing the collected data
    • collectReport

      public DebugReport collectReport()