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
ConstructorsConstructorDescriptionSysInfo(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 aSysInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionaes()Returns the value of theaesrecord component.args()Returns the value of theargsrecord component.cwd()Returns the value of thecwdrecord component.longdrift()Returns the value of thedriftrecord component.encoding()Returns the value of theencodingrecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefreeMemoryrecord component.Returns the value of thefreeSpacerecord component.longReturns the value of thegcTotalCntrecord component.longReturns the value of thegcTotalTimerecord component.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.instance()Returns the value of theinstancerecord component.longReturns the value of theinUseMemoryrecord component.Returns the value of thejavaVendorrecord component.Returns the value of thejavaVersionrecord component.doubleReturns the value of theloadAveragerecord component.longReturns the value of themaxMemoryrecord component.Returns the value of thenameRegistrarEntriesrecord component.osName()Returns the value of theosNamerecord component.Returns the value of theosVersionrecord component.Returns the value of theprocessNamerecord component.intReturns the value of theprocessorsrecord component.revision()Returns the value of therevisionrecord component.scripts()Returns the value of thescriptsrecord component.intReturns the value of thethreadCountrecord component.intReturns the value of thethreadPeakrecord component.threads()Returns the value of thethreadsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalMemoryrecord component.uptime()Returns the value of theuptimerecord component.Returns the value of theusableSpacerecord component.userName()Returns the value of theuserNamerecord component.version()Returns the value of theversionrecord component.Returns the value of thewatchServicerecord component.zoneInfo()Returns the value of thezoneInforecord component.
-
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 aSysInforecord class.- Parameters:
osName- the value for theosNamerecord componentosVersion- the value for theosVersionrecord componentjavaVersion- the value for thejavaVersionrecord componentjavaVendor- the value for thejavaVendorrecord componentaes- the value for theaesrecord componenthost- the value for thehostrecord componentuserName- the value for theuserNamerecord componentcwd- the value for thecwdrecord componentwatchService- the value for thewatchServicerecord componentenvironment- the value for theenvironmentrecord componentargs- the value for theargsrecord componentencoding- the value for theencodingrecord componentzoneInfo- the value for thezoneInforecord componentprocessName- the value for theprocessNamerecord componentfreeSpace- the value for thefreeSpacerecord componentusableSpace- the value for theusableSpacerecord componentversion- the value for theversionrecord componentrevision- the value for therevisionrecord componentinstance- the value for theinstancerecord componentuptime- the value for theuptimerecord componentloadAverage- the value for theloadAveragerecord componentprocessors- the value for theprocessorsrecord componentdrift- the value for thedriftrecord componentmaxMemory- the value for themaxMemoryrecord componenttotalMemory- the value for thetotalMemoryrecord componentfreeMemory- the value for thefreeMemoryrecord componentinUseMemory- the value for theinUseMemoryrecord componentgcTotalCnt- the value for thegcTotalCntrecord componentgcTotalTime- the value for thegcTotalTimerecord componentthreadCount- the value for thethreadCountrecord componentthreadPeak- the value for thethreadPeakrecord componentnameRegistrarEntries- the value for thenameRegistrarEntriesrecord componentthreads- the value for thethreadsrecord componentscripts- the value for thescriptsrecord component
-
-
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. -
osName
-
osVersion
-
javaVersion
Returns the value of thejavaVersionrecord component.- Returns:
- the value of the
javaVersionrecord component
-
javaVendor
Returns the value of thejavaVendorrecord component.- Returns:
- the value of the
javaVendorrecord component
-
aes
-
host
-
userName
-
cwd
-
watchService
Returns the value of thewatchServicerecord component.- Returns:
- the value of the
watchServicerecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
args
-
encoding
-
zoneInfo
-
processName
Returns the value of theprocessNamerecord component.- Returns:
- the value of the
processNamerecord component
-
freeSpace
-
usableSpace
Returns the value of theusableSpacerecord component.- Returns:
- the value of the
usableSpacerecord component
-
version
-
revision
-
instance
-
uptime
-
loadAverage
Returns the value of theloadAveragerecord component.- Returns:
- the value of the
loadAveragerecord component
-
processors
Returns the value of theprocessorsrecord component.- Returns:
- the value of the
processorsrecord component
-
drift
Returns the value of thedriftrecord component.- Returns:
- the value of the
driftrecord component
-
maxMemory
Returns the value of themaxMemoryrecord component.- Returns:
- the value of the
maxMemoryrecord component
-
totalMemory
Returns the value of thetotalMemoryrecord component.- Returns:
- the value of the
totalMemoryrecord component
-
freeMemory
Returns the value of thefreeMemoryrecord component.- Returns:
- the value of the
freeMemoryrecord component
-
inUseMemory
Returns the value of theinUseMemoryrecord component.- Returns:
- the value of the
inUseMemoryrecord component
-
gcTotalCnt
Returns the value of thegcTotalCntrecord component.- Returns:
- the value of the
gcTotalCntrecord component
-
gcTotalTime
Returns the value of thegcTotalTimerecord component.- Returns:
- the value of the
gcTotalTimerecord component
-
threadCount
Returns the value of thethreadCountrecord component.- Returns:
- the value of the
threadCountrecord component
-
threadPeak
Returns the value of thethreadPeakrecord component.- Returns:
- the value of the
threadPeakrecord component
-
nameRegistrarEntries
Returns the value of thenameRegistrarEntriesrecord component.- Returns:
- the value of the
nameRegistrarEntriesrecord component
-
threads
-
scripts
Returns the value of thescriptsrecord component.- Returns:
- the value of the
scriptsrecord component
-