Record Class SysInfo

java.lang.Object
java.lang.Record
org.jpos.log.evt.SysInfo
All Implemented Interfaces:
AuditLogEvent

public record SysInfo(String osName, String osVersion, String javaVersion, String javaVendor, String aes, String host, String userName, String cwd, String watchService, String environment, String args, Charset encoding, String zoneInfo, String processName, String freeSpace, String usableSpace, String version, String revision, UUID instance, Duration uptime, double loadAverage, int processors, long drift, long maxMemory, long totalMemory, long freeMemory, long inUseMemory, long gcTotalCnt, long gcTotalTime, int threadCount, int threadPeak, List<KV> nameRegistrarEntries, List<KV> threads, List<ProcessOutput> scripts) extends Record implements AuditLogEvent
  • Constructor Summary

    Constructors
    Constructor
    Description
    SysInfo(String osName, String osVersion, String javaVersion, String javaVendor, String aes, String host, String userName, String cwd, String watchService, String environment, String args, Charset encoding, String zoneInfo, String processName, String freeSpace, String usableSpace, String version, String revision, UUID instance, Duration uptime, double loadAverage, int processors, long drift, long maxMemory, long totalMemory, long freeMemory, long inUseMemory, long gcTotalCnt, long gcTotalTime, int threadCount, int threadPeak, List<KV> nameRegistrarEntries, List<KV> threads, List<ProcessOutput> scripts)
    Creates an instance of a SysInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    aes()
    Returns the value of the aes record component.
    Returns the value of the args record component.
    cwd()
    Returns the value of the cwd record component.
    long
    Returns the value of the drift record component.
    Returns the value of the encoding record component.
    Returns the value of the environment record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the freeMemory record component.
    Returns the value of the freeSpace record component.
    long
    Returns the value of the gcTotalCnt record component.
    long
    Returns the value of the gcTotalTime record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the host record component.
    Returns the value of the instance record component.
    long
    Returns the value of the inUseMemory record component.
    Returns the value of the javaVendor record component.
    Returns the value of the javaVersion record component.
    double
    Returns the value of the loadAverage record component.
    long
    Returns the value of the maxMemory record component.
    Returns the value of the nameRegistrarEntries record component.
    Returns the value of the osName record component.
    Returns the value of the osVersion record component.
    Returns the value of the processName record component.
    int
    Returns the value of the processors record component.
    Returns the value of the revision record component.
    Returns the value of the scripts record component.
    int
    Returns the value of the threadCount record component.
    int
    Returns the value of the threadPeak record component.
    Returns the value of the threads record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the totalMemory record component.
    Returns the value of the uptime record component.
    Returns the value of the usableSpace record component.
    Returns the value of the userName record component.
    Returns the value of the version record component.
    Returns the value of the watchService record component.
    Returns the value of the zoneInfo record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SysInfo

      public SysInfo(String osName, String osVersion, String javaVersion, String javaVendor, String aes, String host, String userName, String cwd, String watchService, String environment, String args, Charset encoding, String zoneInfo, String processName, String freeSpace, String usableSpace, String version, String revision, UUID instance, Duration uptime, double loadAverage, int processors, long drift, long maxMemory, long totalMemory, long freeMemory, long inUseMemory, long gcTotalCnt, long gcTotalTime, int threadCount, int threadPeak, List<KV> nameRegistrarEntries, List<KV> threads, List<ProcessOutput> scripts)
      Creates an instance of a SysInfo record class.
      Parameters:
      osName - the value for the osName record component
      osVersion - the value for the osVersion record component
      javaVersion - the value for the javaVersion record component
      javaVendor - the value for the javaVendor record component
      aes - the value for the aes record component
      host - the value for the host record component
      userName - the value for the userName record component
      cwd - the value for the cwd record component
      watchService - the value for the watchService record component
      environment - the value for the environment record component
      args - the value for the args record component
      encoding - the value for the encoding record component
      zoneInfo - the value for the zoneInfo record component
      processName - the value for the processName record component
      freeSpace - the value for the freeSpace record component
      usableSpace - the value for the usableSpace record component
      version - the value for the version record component
      revision - the value for the revision record component
      instance - the value for the instance record component
      uptime - the value for the uptime record component
      loadAverage - the value for the loadAverage record component
      processors - the value for the processors record component
      drift - the value for the drift record component
      maxMemory - the value for the maxMemory record component
      totalMemory - the value for the totalMemory record component
      freeMemory - the value for the freeMemory record component
      inUseMemory - the value for the inUseMemory record component
      gcTotalCnt - the value for the gcTotalCnt record component
      gcTotalTime - the value for the gcTotalTime record component
      threadCount - the value for the threadCount record component
      threadPeak - the value for the threadPeak record component
      nameRegistrarEntries - the value for the nameRegistrarEntries record component
      threads - the value for the threads record component
      scripts - the value for the scripts record component
  • Method Details

    • toString

      public final 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 the compare method from their corresponding wrapper classes.
      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.
    • 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
    • javaVersion

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

      public String javaVendor()
      Returns the value of the javaVendor record component.
      Returns:
      the value of the javaVendor record component
    • aes

      public String aes()
      Returns the value of the aes record component.
      Returns:
      the value of the aes record component
    • host

      public String host()
      Returns the value of the host record component.
      Returns:
      the value of the host record component
    • userName

      public String userName()
      Returns the value of the userName record component.
      Returns:
      the value of the userName record component
    • cwd

      public String cwd()
      Returns the value of the cwd record component.
      Returns:
      the value of the cwd record component
    • watchService

      public String watchService()
      Returns the value of the watchService record component.
      Returns:
      the value of the watchService record component
    • environment

      public String environment()
      Returns the value of the environment record component.
      Returns:
      the value of the environment record component
    • args

      public String args()
      Returns the value of the args record component.
      Returns:
      the value of the args record component
    • encoding

      public Charset encoding()
      Returns the value of the encoding record component.
      Returns:
      the value of the encoding record component
    • zoneInfo

      public String zoneInfo()
      Returns the value of the zoneInfo record component.
      Returns:
      the value of the zoneInfo record component
    • processName

      public String processName()
      Returns the value of the processName record component.
      Returns:
      the value of the processName record component
    • freeSpace

      public String freeSpace()
      Returns the value of the freeSpace record component.
      Returns:
      the value of the freeSpace record component
    • usableSpace

      public String usableSpace()
      Returns the value of the usableSpace record component.
      Returns:
      the value of the usableSpace record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • revision

      public String revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • instance

      public UUID instance()
      Returns the value of the instance record component.
      Returns:
      the value of the instance record component
    • uptime

      public Duration uptime()
      Returns the value of the uptime record component.
      Returns:
      the value of the uptime record component
    • loadAverage

      public double loadAverage()
      Returns the value of the loadAverage record component.
      Returns:
      the value of the loadAverage record component
    • processors

      public int processors()
      Returns the value of the processors record component.
      Returns:
      the value of the processors record component
    • drift

      public long drift()
      Returns the value of the drift record component.
      Returns:
      the value of the drift record component
    • maxMemory

      public long maxMemory()
      Returns the value of the maxMemory record component.
      Returns:
      the value of the maxMemory record component
    • totalMemory

      public long totalMemory()
      Returns the value of the totalMemory record component.
      Returns:
      the value of the totalMemory record component
    • freeMemory

      public long freeMemory()
      Returns the value of the freeMemory record component.
      Returns:
      the value of the freeMemory record component
    • inUseMemory

      public long inUseMemory()
      Returns the value of the inUseMemory record component.
      Returns:
      the value of the inUseMemory record component
    • gcTotalCnt

      public long gcTotalCnt()
      Returns the value of the gcTotalCnt record component.
      Returns:
      the value of the gcTotalCnt record component
    • gcTotalTime

      public long gcTotalTime()
      Returns the value of the gcTotalTime record component.
      Returns:
      the value of the gcTotalTime record component
    • threadCount

      public int threadCount()
      Returns the value of the threadCount record component.
      Returns:
      the value of the threadCount record component
    • threadPeak

      public int threadPeak()
      Returns the value of the threadPeak record component.
      Returns:
      the value of the threadPeak record component
    • nameRegistrarEntries

      Returns the value of the nameRegistrarEntries record component.
      Returns:
      the value of the nameRegistrarEntries record component
    • threads

      public List<KV> threads()
      Returns the value of the threads record component.
      Returns:
      the value of the threads record component
    • scripts

      Returns the value of the scripts record component.
      Returns:
      the value of the scripts record component