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 anInstalledPlugin
objectconfigurations
- 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(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
(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 aDebugReport
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurations
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinstalledPlugins
record component.Returns the value of thejavaVersion
record component.Returns the value of thelatestLogs
record component.Returns the value of theminecraftVersion
record component.osName()
Returns the value of theosName
record component.Returns the value of theosVersion
record component.Returns the value of thepluginHash
record component.Returns the value of thepluginName
record component.Returns the value of thepluginVersion
record component.Returns the value of theserverSoftware
record component.long
Returns the value of thetimestamp
record component.org.json.simple.JSONObject
toJson()
Converts the implementing object to a JSON representation.toString()
Returns a string representation of this record class.
-
Constructor Details
-
DebugReport
public DebugReport(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 aDebugReport
record class.- Parameters:
timestamp
- the value for thetimestamp
record componentpluginName
- the value for thepluginName
record componentpluginVersion
- the value for thepluginVersion
record componentpluginHash
- the value for thepluginHash
record componentminecraftVersion
- the value for theminecraftVersion
record componentjavaVersion
- the value for thejavaVersion
record componentserverSoftware
- the value for theserverSoftware
record componentosName
- the value for theosName
record componentosVersion
- the value for theosVersion
record componentlatestLogs
- the value for thelatestLogs
record componentinstalledPlugins
- the value for theinstalledPlugins
record componentconfigurations
- the value for theconfigurations
record component
-
-
Method Details
-
toJson
public org.json.simple.JSONObject toJson()Description copied from interface:JsonSeriaizable
Converts the implementing object to a JSON representation.- Specified by:
toJson
in 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 '=='. -
timestamp
public long timestamp()Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
pluginName
Returns the value of thepluginName
record component.- Returns:
- the value of the
pluginName
record component
-
pluginVersion
Returns the value of thepluginVersion
record component.- Returns:
- the value of the
pluginVersion
record component
-
pluginHash
Returns the value of thepluginHash
record component.- Returns:
- the value of the
pluginHash
record component
-
minecraftVersion
Returns the value of theminecraftVersion
record component.- Returns:
- the value of the
minecraftVersion
record component
-
javaVersion
Returns the value of thejavaVersion
record component.- Returns:
- the value of the
javaVersion
record component
-
serverSoftware
Returns the value of theserverSoftware
record component.- Returns:
- the value of the
serverSoftware
record component
-
osName
Returns the value of theosName
record component.- Returns:
- the value of the
osName
record component
-
osVersion
Returns the value of theosVersion
record component.- Returns:
- the value of the
osVersion
record component
-
latestLogs
Returns the value of thelatestLogs
record component.- Returns:
- the value of the
latestLogs
record component
-
installedPlugins
Returns the value of theinstalledPlugins
record component.- Returns:
- the value of the
installedPlugins
record component
-
configurations
Returns the value of theconfigurations
record component.- Returns:
- the value of the
configurations
record component
-