Java API

JAVA 21 / 17 PUBLIC TYPES

HostLens API 1.0.0

HostLens Java Hardware Information Library

Source archive
hostlens-1.0.0-sources.jar
Packages
2
Source
Repository ↗

me.tamkungz.hostlens16

recordCpuInfopublic record CpuInfo( String name, String architecture, int logicalCores, int availableProcessors, double systemLoadAverage, double systemCpuLoad, double processCpuLoad )recordDiskInfopublic record DiskInfo( String name, String mount, String fileSystem, String type, long totalBytes, long usableBytes, long unallocatedBytes, boolean readOnly )recordGpuInfopublic record GpuInfo( String name, String vendor, String driverVersion, String deviceId )recordHostCaptureContextpublic record HostCaptureContext( boolean includeCpu, boolean includeMemory, boolean includeGpu, boolean includeDisk, boolean includeNetwork )interfaceHostInspectorpublic interface HostInspectorclassHostLenspublic final class HostLensclassBuilderpublic static final class BuilderrecordHostLensErrorpublic record HostLensError( String source, String type, String message )classHostLensExceptionpublic final class HostLensException extends RuntimeExceptionclassHostLensFormatterpublic final class HostLensFormatterrecordHostSnapshotpublic record HostSnapshot( Instant capturedAt, RuntimeInfo runtime, OperatingSystemInfo operatingSystem, CpuInfo cpu, MemoryInfo memory, List<GpuInfo> gpus, List<DiskInfo> disks, List<NetworkInterfaceInfo> networks, Map<String, String> properties, List<HostLensError> errors )classBuilderpublic static final class BuilderrecordMemoryInfopublic record MemoryInfo( long heapUsedBytes, long heapCommittedBytes, long heapMaxBytes, long nonHeapUsedBytes, long nonHeapCommittedBytes, long physicalTotalBytes, long physicalFreeBytes, long swapTotalBytes, long swapFreeBytes )recordNetworkInterfaceInfopublic record NetworkInterfaceInfo( String name, String displayName, String macAddress, boolean up, boolean loopback, boolean virtual, int mtu, List<String> addresses )recordOperatingSystemInfopublic record OperatingSystemInfo( String name, String version, String architecture, String family, boolean windows, boolean linux, boolean mac, String hostName, String userName )recordRuntimeInfopublic record RuntimeInfo( String javaVersion, String javaVendor, String javaVmName, String javaVmVersion, String javaRuntimeName, String javaHome, String userName, String userHome, String userDir, String fileEncoding, String defaultLocale, String defaultCharset, String timeZone, long uptimeMillis, long processId, int availableProcessors )

me.tamkungz.hostlens.demo1