Record Class NuggetIntrospection.EnvironmentSummary

java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetIntrospection.EnvironmentSummary
Record Components:
jvmVersion - JVM version
jvmVendor - JVM vendor
vmName - VM name
osName - OS name
osVersion - OS version
architecture - CPU architecture
processId - process id or empty string
nuggetStartTime - nugget start time
processUptime - uptime duration
availableProcessors - processor count
heapUsedBytes - heap used bytes
heapCommittedBytes - heap committed bytes
heapMaxBytes - heap max bytes, or -1
nonHeapUsedBytes - non-heap used bytes
nonHeapCommittedBytes - non-heap committed bytes
liveThreadCount - live thread count
daemonThreadCount - daemon thread count
peakThreadCount - peak thread count
totalStartedThreadCount - total started thread count
loadedClassCount - loaded class count
totalLoadedClassCount - total loaded class count
garbageCollectors - garbage collector summaries
processCpuLoad - process CPU load, or -1
systemCpuLoad - system CPU load, or -1
processCpuTimeNanos - process CPU time, or -1
workingDirectorySummary - safe working-directory summary
environmentVariableNames - environment variable names only
jvmArgumentSummaries - redacted JVM argument summaries
capabilities - capability availability markers
collectedAt - collection timestamp
Enclosing class:
NuggetIntrospection

public static record NuggetIntrospection.EnvironmentSummary(String jvmVersion, String jvmVendor, String vmName, String osName, String osVersion, String architecture, String processId, Instant nuggetStartTime, Duration processUptime, int availableProcessors, long heapUsedBytes, long heapCommittedBytes, long heapMaxBytes, long nonHeapUsedBytes, long nonHeapCommittedBytes, int liveThreadCount, int daemonThreadCount, int peakThreadCount, long totalStartedThreadCount, int loadedClassCount, long totalLoadedClassCount, List<NuggetIntrospection.KeyValue> garbageCollectors, double processCpuLoad, double systemCpuLoad, long processCpuTimeNanos, String workingDirectorySummary, List<String> environmentVariableNames, List<NuggetIntrospection.KeyValue> jvmArgumentSummaries, Map<String,String> capabilities, Instant collectedAt) extends Record
JVM and process environment summary.
  • Constructor Details

    • EnvironmentSummary

      public EnvironmentSummary(String jvmVersion, String jvmVendor, String vmName, String osName, String osVersion, String architecture, String processId, Instant nuggetStartTime, Duration processUptime, int availableProcessors, long heapUsedBytes, long heapCommittedBytes, long heapMaxBytes, long nonHeapUsedBytes, long nonHeapCommittedBytes, int liveThreadCount, int daemonThreadCount, int peakThreadCount, long totalStartedThreadCount, int loadedClassCount, long totalLoadedClassCount, List<NuggetIntrospection.KeyValue> garbageCollectors, double processCpuLoad, double systemCpuLoad, long processCpuTimeNanos, String workingDirectorySummary, List<String> environmentVariableNames, List<NuggetIntrospection.KeyValue> jvmArgumentSummaries, Map<String,String> capabilities, Instant collectedAt)
      Creates immutable environment metadata.
  • 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.
    • jvmVersion

      public String jvmVersion()
      Returns the value of the jvmVersion record component.
      Returns:
      the value of the jvmVersion record component
    • jvmVendor

      public String jvmVendor()
      Returns the value of the jvmVendor record component.
      Returns:
      the value of the jvmVendor record component
    • vmName

      public String vmName()
      Returns the value of the vmName record component.
      Returns:
      the value of the vmName 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
    • architecture

      public String architecture()
      Returns the value of the architecture record component.
      Returns:
      the value of the architecture record component
    • processId

      public String processId()
      Returns the value of the processId record component.
      Returns:
      the value of the processId record component
    • nuggetStartTime

      public Instant nuggetStartTime()
      Returns the value of the nuggetStartTime record component.
      Returns:
      the value of the nuggetStartTime record component
    • processUptime

      public Duration processUptime()
      Returns the value of the processUptime record component.
      Returns:
      the value of the processUptime record component
    • availableProcessors

      public int availableProcessors()
      Returns the value of the availableProcessors record component.
      Returns:
      the value of the availableProcessors record component
    • heapUsedBytes

      public long heapUsedBytes()
      Returns the value of the heapUsedBytes record component.
      Returns:
      the value of the heapUsedBytes record component
    • heapCommittedBytes

      public long heapCommittedBytes()
      Returns the value of the heapCommittedBytes record component.
      Returns:
      the value of the heapCommittedBytes record component
    • heapMaxBytes

      public long heapMaxBytes()
      Returns the value of the heapMaxBytes record component.
      Returns:
      the value of the heapMaxBytes record component
    • nonHeapUsedBytes

      public long nonHeapUsedBytes()
      Returns the value of the nonHeapUsedBytes record component.
      Returns:
      the value of the nonHeapUsedBytes record component
    • nonHeapCommittedBytes

      public long nonHeapCommittedBytes()
      Returns the value of the nonHeapCommittedBytes record component.
      Returns:
      the value of the nonHeapCommittedBytes record component
    • liveThreadCount

      public int liveThreadCount()
      Returns the value of the liveThreadCount record component.
      Returns:
      the value of the liveThreadCount record component
    • daemonThreadCount

      public int daemonThreadCount()
      Returns the value of the daemonThreadCount record component.
      Returns:
      the value of the daemonThreadCount record component
    • peakThreadCount

      public int peakThreadCount()
      Returns the value of the peakThreadCount record component.
      Returns:
      the value of the peakThreadCount record component
    • totalStartedThreadCount

      public long totalStartedThreadCount()
      Returns the value of the totalStartedThreadCount record component.
      Returns:
      the value of the totalStartedThreadCount record component
    • loadedClassCount

      public int loadedClassCount()
      Returns the value of the loadedClassCount record component.
      Returns:
      the value of the loadedClassCount record component
    • totalLoadedClassCount

      public long totalLoadedClassCount()
      Returns the value of the totalLoadedClassCount record component.
      Returns:
      the value of the totalLoadedClassCount record component
    • garbageCollectors

      public List<NuggetIntrospection.KeyValue> garbageCollectors()
      Returns the value of the garbageCollectors record component.
      Returns:
      the value of the garbageCollectors record component
    • processCpuLoad

      public double processCpuLoad()
      Returns the value of the processCpuLoad record component.
      Returns:
      the value of the processCpuLoad record component
    • systemCpuLoad

      public double systemCpuLoad()
      Returns the value of the systemCpuLoad record component.
      Returns:
      the value of the systemCpuLoad record component
    • processCpuTimeNanos

      public long processCpuTimeNanos()
      Returns the value of the processCpuTimeNanos record component.
      Returns:
      the value of the processCpuTimeNanos record component
    • workingDirectorySummary

      public String workingDirectorySummary()
      Returns the value of the workingDirectorySummary record component.
      Returns:
      the value of the workingDirectorySummary record component
    • environmentVariableNames

      public List<String> environmentVariableNames()
      Returns the value of the environmentVariableNames record component.
      Returns:
      the value of the environmentVariableNames record component
    • jvmArgumentSummaries

      public List<NuggetIntrospection.KeyValue> jvmArgumentSummaries()
      Returns the value of the jvmArgumentSummaries record component.
      Returns:
      the value of the jvmArgumentSummaries record component
    • capabilities

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

      public Instant collectedAt()
      Returns the value of the collectedAt record component.
      Returns:
      the value of the collectedAt record component