Record Class DebugReport
java.lang.Object
java.lang.Record
com.zetaplugins.zetacore.debug.data.DebugReport
- Record Components:
timestamp- the time the report was generated, in milliseconds since epochpluginName- the name of the plugin generating the reportpluginVersion- the version of the plugin generating the reportpluginHash- the hash of the plugin generating the reportminecraftVersion- the version of Minecraft the server is runningjavaVersion- the version of Java the server is runningserverSoftware- the software the server is running (e.g., Paper, Spigot)osName- the name of the operating system the server is running onosVersion- the version of the operating system the server is running onlatestLogs- the latest log file from the serverinstalledPlugins- a set of installed plugins, each represented by anInstalledPluginobjectconfigurations- a map of configuration settings, where the key is the configuration file name and the value is the configuration as a string
- All Implemented Interfaces:
JsonSeriaizable
public record DebugReport(String modrinthId, long timestamp, String pluginName, String pluginVersion, String pluginHash, String minecraftVersion, String javaVersion, String serverSoftware, String osName, String osVersion, String latestLogs, Set<InstalledPlugin> installedPlugins, Map<String,String> configurations)
extends Record
implements JsonSeriaizable
Represents a debug report containing various system and plugin information.
-
Constructor Summary
ConstructorsConstructorDescriptionDebugReport(String modrinthId, long timestamp, String pluginName, String pluginVersion, String pluginHash, String minecraftVersion, String javaVersion, String serverSoftware, String osName, String osVersion, String latestLogs, Set<InstalledPlugin> installedPlugins, Map<String, String> configurations) Creates an instance of aDebugReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstalledPluginsrecord component.Returns the value of thejavaVersionrecord component.Returns the value of thelatestLogsrecord component.Returns the value of theminecraftVersionrecord component.Returns the value of themodrinthIdrecord component.osName()Returns the value of theosNamerecord component.Returns the value of theosVersionrecord component.Returns the value of thepluginHashrecord component.Returns the value of thepluginNamerecord component.Returns the value of thepluginVersionrecord component.Returns the value of theserverSoftwarerecord component.longReturns the value of thetimestamprecord component.org.json.simple.JSONObjecttoJson()Converts the implementing object to a JSON representation.toString()Returns a string representation of this record class.
-
Constructor Details
-
DebugReport
public DebugReport(String modrinthId, long timestamp, String pluginName, String pluginVersion, String pluginHash, String minecraftVersion, String javaVersion, String serverSoftware, String osName, String osVersion, String latestLogs, Set<InstalledPlugin> installedPlugins, Map<String, String> configurations) Creates an instance of aDebugReportrecord class.- Parameters:
modrinthId- the value for themodrinthIdrecord componenttimestamp- the value for thetimestamprecord componentpluginName- the value for thepluginNamerecord componentpluginVersion- the value for thepluginVersionrecord componentpluginHash- the value for thepluginHashrecord componentminecraftVersion- the value for theminecraftVersionrecord componentjavaVersion- the value for thejavaVersionrecord componentserverSoftware- the value for theserverSoftwarerecord componentosName- the value for theosNamerecord componentosVersion- the value for theosVersionrecord componentlatestLogs- the value for thelatestLogsrecord componentinstalledPlugins- the value for theinstalledPluginsrecord componentconfigurations- the value for theconfigurationsrecord component
-
-
Method Details
-
toJson
public org.json.simple.JSONObject toJson()Description copied from interface:JsonSeriaizableConverts the implementing object to a JSON representation.- Specified by:
toJsonin interfaceJsonSeriaizable- Returns:
- a JSONObject representing the object
-
toJsonString
-
toReadableText
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
modrinthId
Returns the value of themodrinthIdrecord component.- Returns:
- the value of the
modrinthIdrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
pluginName
Returns the value of thepluginNamerecord component.- Returns:
- the value of the
pluginNamerecord component
-
pluginVersion
Returns the value of thepluginVersionrecord component.- Returns:
- the value of the
pluginVersionrecord component
-
pluginHash
Returns the value of thepluginHashrecord component.- Returns:
- the value of the
pluginHashrecord component
-
minecraftVersion
Returns the value of theminecraftVersionrecord component.- Returns:
- the value of the
minecraftVersionrecord component
-
javaVersion
Returns the value of thejavaVersionrecord component.- Returns:
- the value of the
javaVersionrecord component
-
serverSoftware
Returns the value of theserverSoftwarerecord component.- Returns:
- the value of the
serverSoftwarerecord component
-
osName
Returns the value of theosNamerecord component.- Returns:
- the value of the
osNamerecord component
-
osVersion
Returns the value of theosVersionrecord component.- Returns:
- the value of the
osVersionrecord component
-
latestLogs
Returns the value of thelatestLogsrecord component.- Returns:
- the value of the
latestLogsrecord component
-
installedPlugins
Returns the value of theinstalledPluginsrecord component.- Returns:
- the value of the
installedPluginsrecord component
-
configurations
Returns the value of theconfigurationsrecord component.- Returns:
- the value of the
configurationsrecord component
-