Java API

JAVA 21 / 17 PUBLIC TYPES

HostLens API 1.0.1

HostLens Java Hardware Information Library

Source archive
HostLens-1.0.1-sources.jar
Packages
2
Source
Repository ↗

me.tamkungz.hostlens16

recordCpuInfopublic record CpuInfo( String name, String vendor, String architecture, int physicalCores, int logicalCores, int availableProcessors, int packageCount, double maxFrequencyMhz, double systemLoadAverage, double systemCpuLoad, double processCpuLoad, String processorId )recordDiskInfopublic record DiskInfo( String name, String mount, String fileSystem, String type, long totalBytes, long usableBytes, long unallocatedBytes, boolean readOnly, long usedBytes, double usedPercent, String device, String volumeName, String driveType, String mediaType, boolean rootMount, boolean systemMount, boolean removable, boolean network, boolean virtual, boolean ssd, String source )recordGpuInfopublic record GpuInfo( String name, String vendor, String driverVersion, String deviceId, String type )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 nonHeapMaxBytes, long physicalTotalBytes, long physicalFreeBytes, long physicalAvailableBytes, long physicalUsedBytes, long swapTotalBytes, long swapFreeBytes, long swapUsedBytes, long cgroupMemoryLimitBytes, long cgroupMemoryUsageBytes, long cgroupSwapLimitBytes, long cgroupSwapUsageBytes, String source )recordNetworkInterfaceInfopublic record NetworkInterfaceInfo( String name, String displayName, String macAddress, boolean up, boolean loopback, boolean virtual, int mtu, List<String> addresses, int index, String type, boolean pointToPoint, boolean multicast, boolean primary, String status, long speedMbps, List<String> ipv4Addresses, List<String> ipv6Addresses, List<String> gateways, List<String> dnsServers, String dhcp )recordOperatingSystemInfopublic record OperatingSystemInfo( String name, String version, String architecture, String family, boolean windows, boolean linux, boolean mac, String hostName, String userName, String displayName, String distribution, String distributionVersion, String kernelVersion, String buildNumber, String kernelArchitecture, boolean wsl, boolean container )recordRuntimeInfopublic record RuntimeInfo( String javaVersion, int javaMajorVersion, String javaVendor, String javaVendorVersion, String javaVmName, String javaVmVendor, String javaVmVersion, String javaVmInfo, String javaRuntimeName, String javaRuntimeVersion, String javaSpecificationName, String javaSpecificationVersion, String javaHome, String userName, String userHome, String userDir, String fileEncoding, String nativeEncoding, String defaultLocale, String defaultCharset, String timeZone, long uptimeMillis, long startTimeMillis, long processId, int availableProcessors, long heapUsedBytes, long heapCommittedBytes, long heapMaxBytes, long nonHeapUsedBytes, long nonHeapCommittedBytes, List<String> inputArguments )

me.tamkungz.hostlens.demo1