Package com.iizix.os
Class HardwareInfo
java.lang.Object
com.iizix.os.HardwareInfo
Hardware information class using "OSHI".
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionget
(HardwareIdentication info, boolean fresh, boolean update, String... ipAddresses) Gets the information as specified by the hardware information.static HardwareInfo
Gets the instance.Gets the map of all hardware properties.toString()
Outputs the info as a string.
Method Details
getInstance
Gets the instance.getProperties
Gets the map of all hardware properties.- Returns:
- The linked hash map.
toString
Outputs the info as a string.get
Gets the information as specified by the hardware information.- Parameters:
info
- The hardware information to return.fresh
- Flag indicating the information must be fresh (in case hardware has changed).update
- Flag to update refreshed information.ipAddresses
- Only these addresses will be included. If the list is empty, all are included.This list of addresses is only used for for:
- HardwareIdentication.HostAddressesIPv4,
- HardwareIdentication.HostNamesWithDomain, and
- HardwareIdentication.HostNames.Note: the flags "fresh" and "update" are not used if you specify a specific list of IP addresses.
- Returns:
- The string formatted according to specification of the "info".