Record Class NuggetIntrospection.EnvironmentSummary
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetIntrospection.EnvironmentSummary
- Record Components:
jvmVersion- JVM versionjvmVendor- JVM vendorvmName- VM nameosName- OS nameosVersion- OS versionarchitecture- CPU architectureprocessId- process id or empty stringnuggetStartTime- nugget start timeprocessUptime- uptime durationavailableProcessors- processor countheapUsedBytes- heap used bytesheapCommittedBytes- heap committed bytesheapMaxBytes- heap max bytes, or-1nonHeapUsedBytes- non-heap used bytesnonHeapCommittedBytes- non-heap committed bytesliveThreadCount- live thread countdaemonThreadCount- daemon thread countpeakThreadCount- peak thread counttotalStartedThreadCount- total started thread countloadedClassCount- loaded class counttotalLoadedClassCount- total loaded class countgarbageCollectors- garbage collector summariesprocessCpuLoad- process CPU load, or-1systemCpuLoad- system CPU load, or-1processCpuTimeNanos- process CPU time, or-1workingDirectorySummary- safe working-directory summaryenvironmentVariableNames- environment variable names onlyjvmArgumentSummaries- redacted JVM argument summariescapabilities- capability availability markerscollectedAt- 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 Summary
ConstructorsConstructorDescriptionEnvironmentSummary(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 Summary
Modifier and TypeMethodDescriptionReturns the value of thearchitecturerecord component.intReturns the value of theavailableProcessorsrecord component.Returns the value of thecapabilitiesrecord component.Returns the value of thecollectedAtrecord component.intReturns the value of thedaemonThreadCountrecord component.Returns the value of theenvironmentVariableNamesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegarbageCollectorsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theheapCommittedBytesrecord component.longReturns the value of theheapMaxBytesrecord component.longReturns the value of theheapUsedBytesrecord component.Returns the value of thejvmArgumentSummariesrecord component.Returns the value of thejvmVendorrecord component.Returns the value of thejvmVersionrecord component.intReturns the value of theliveThreadCountrecord component.intReturns the value of theloadedClassCountrecord component.longReturns the value of thenonHeapCommittedBytesrecord component.longReturns the value of thenonHeapUsedBytesrecord component.Returns the value of thenuggetStartTimerecord component.osName()Returns the value of theosNamerecord component.Returns the value of theosVersionrecord component.intReturns the value of thepeakThreadCountrecord component.doubleReturns the value of theprocessCpuLoadrecord component.longReturns the value of theprocessCpuTimeNanosrecord component.Returns the value of theprocessIdrecord component.Returns the value of theprocessUptimerecord component.doubleReturns the value of thesystemCpuLoadrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalLoadedClassCountrecord component.longReturns the value of thetotalStartedThreadCountrecord component.vmName()Returns the value of thevmNamerecord component.Returns the value of theworkingDirectorySummaryrecord component.
-
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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
jvmVersion
Returns the value of thejvmVersionrecord component.- Returns:
- the value of the
jvmVersionrecord component
-
jvmVendor
-
vmName
-
osName
-
osVersion
-
architecture
Returns the value of thearchitecturerecord component.- Returns:
- the value of the
architecturerecord component
-
processId
-
nuggetStartTime
Returns the value of thenuggetStartTimerecord component.- Returns:
- the value of the
nuggetStartTimerecord component
-
processUptime
Returns the value of theprocessUptimerecord component.- Returns:
- the value of the
processUptimerecord component
-
availableProcessors
public int availableProcessors()Returns the value of theavailableProcessorsrecord component.- Returns:
- the value of the
availableProcessorsrecord component
-
heapUsedBytes
public long heapUsedBytes()Returns the value of theheapUsedBytesrecord component.- Returns:
- the value of the
heapUsedBytesrecord component
-
heapCommittedBytes
public long heapCommittedBytes()Returns the value of theheapCommittedBytesrecord component.- Returns:
- the value of the
heapCommittedBytesrecord component
-
heapMaxBytes
public long heapMaxBytes()Returns the value of theheapMaxBytesrecord component.- Returns:
- the value of the
heapMaxBytesrecord component
-
nonHeapUsedBytes
public long nonHeapUsedBytes()Returns the value of thenonHeapUsedBytesrecord component.- Returns:
- the value of the
nonHeapUsedBytesrecord component
-
nonHeapCommittedBytes
public long nonHeapCommittedBytes()Returns the value of thenonHeapCommittedBytesrecord component.- Returns:
- the value of the
nonHeapCommittedBytesrecord component
-
liveThreadCount
public int liveThreadCount()Returns the value of theliveThreadCountrecord component.- Returns:
- the value of the
liveThreadCountrecord component
-
daemonThreadCount
public int daemonThreadCount()Returns the value of thedaemonThreadCountrecord component.- Returns:
- the value of the
daemonThreadCountrecord component
-
peakThreadCount
public int peakThreadCount()Returns the value of thepeakThreadCountrecord component.- Returns:
- the value of the
peakThreadCountrecord component
-
totalStartedThreadCount
public long totalStartedThreadCount()Returns the value of thetotalStartedThreadCountrecord component.- Returns:
- the value of the
totalStartedThreadCountrecord component
-
loadedClassCount
public int loadedClassCount()Returns the value of theloadedClassCountrecord component.- Returns:
- the value of the
loadedClassCountrecord component
-
totalLoadedClassCount
public long totalLoadedClassCount()Returns the value of thetotalLoadedClassCountrecord component.- Returns:
- the value of the
totalLoadedClassCountrecord component
-
garbageCollectors
Returns the value of thegarbageCollectorsrecord component.- Returns:
- the value of the
garbageCollectorsrecord component
-
processCpuLoad
public double processCpuLoad()Returns the value of theprocessCpuLoadrecord component.- Returns:
- the value of the
processCpuLoadrecord component
-
systemCpuLoad
public double systemCpuLoad()Returns the value of thesystemCpuLoadrecord component.- Returns:
- the value of the
systemCpuLoadrecord component
-
processCpuTimeNanos
public long processCpuTimeNanos()Returns the value of theprocessCpuTimeNanosrecord component.- Returns:
- the value of the
processCpuTimeNanosrecord component
-
workingDirectorySummary
Returns the value of theworkingDirectorySummaryrecord component.- Returns:
- the value of the
workingDirectorySummaryrecord component
-
environmentVariableNames
Returns the value of theenvironmentVariableNamesrecord component.- Returns:
- the value of the
environmentVariableNamesrecord component
-
jvmArgumentSummaries
Returns the value of thejvmArgumentSummariesrecord component.- Returns:
- the value of the
jvmArgumentSummariesrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
collectedAt
Returns the value of thecollectedAtrecord component.- Returns:
- the value of the
collectedAtrecord component
-