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 epoch
pluginName - the name of the plugin generating the report
pluginVersion - the version of the plugin generating the report
pluginHash - the hash of the plugin generating the report
minecraftVersion - the version of Minecraft the server is running
javaVersion - the version of Java the server is running
serverSoftware - the software the server is running (e.g., Paper, Spigot)
osName - the name of the operating system the server is running on
osVersion - the version of the operating system the server is running on
latestLogs - the latest log file from the server
installedPlugins - a set of installed plugins, each represented by an InstalledPlugin object
configurations - 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 Details

  • 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 interface JsonSeriaizable
      Returns:
      a JSONObject representing the object
    • toJsonString

      public String toJsonString()
    • toReadableText

      public String toReadableText()
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • timestamp

      public long timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • pluginName

      public String pluginName()
      Returns the value of the pluginName record component.
      Returns:
      the value of the pluginName record component
    • pluginVersion

      public String pluginVersion()
      Returns the value of the pluginVersion record component.
      Returns:
      the value of the pluginVersion record component
    • pluginHash

      public String pluginHash()
      Returns the value of the pluginHash record component.
      Returns:
      the value of the pluginHash record component
    • minecraftVersion

      public String minecraftVersion()
      Returns the value of the minecraftVersion record component.
      Returns:
      the value of the minecraftVersion record component
    • javaVersion

      public String javaVersion()
      Returns the value of the javaVersion record component.
      Returns:
      the value of the javaVersion record component
    • serverSoftware

      public String serverSoftware()
      Returns the value of the serverSoftware record component.
      Returns:
      the value of the serverSoftware record component
    • osName

      public String osName()
      Returns the value of the osName record component.
      Returns:
      the value of the osName record component
    • osVersion

      public String osVersion()
      Returns the value of the osVersion record component.
      Returns:
      the value of the osVersion record component
    • latestLogs

      public String latestLogs()
      Returns the value of the latestLogs record component.
      Returns:
      the value of the latestLogs record component
    • installedPlugins

      public Set<InstalledPlugin> installedPlugins()
      Returns the value of the installedPlugins record component.
      Returns:
      the value of the installedPlugins record component
    • configurations

      public Map<String,String> configurations()
      Returns the value of the configurations record component.
      Returns:
      the value of the configurations record component