Package com.zetaplugins.zetacore.debug
Class ReportDataCollector
java.lang.Object
com.zetaplugins.zetacore.debug.ReportDataCollector
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 Summary
ConstructorsConstructorDescriptionReportDataCollector
(JavaPlugin plugin, File pluginFile, Map<String, String> configs) Creates a new ReportDataCollector instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic DebugReport
Collects a debug report for the specified plugin.
-
Constructor Details
-
ReportDataCollector
Creates a new ReportDataCollector instance.- Parameters:
plugin
- the JavaPlugin instance for which the report is being collectedpluginFile
- 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
Collects a debug report for the specified plugin.- Parameters:
plugin
- the JavaPlugin instance for which the report is being collectedpluginFile
- 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
-