public class SystemDataUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static MessageDigest |
md |
| Modifier and Type | Method and Description |
|---|---|
static int |
getAvailableProcessors() |
static String |
getJavaVirtualMachine()
Returns a string of the JVM details.
|
static long |
getMaxMemory() |
static String |
getNetwork()
Returns a string of the network details.
|
static NetworkData |
getNetworkData()
Returns a
NetworkData. |
static List<NetworkData> |
getNetworkDataList()
Returns a list of
NetworkData. |
static String |
getOperatingSystem()
Returns a string of the OS details.
|
static String |
getResources() |
static String |
getSystemDataHash()
Returns a hash string generated from all the system data: OS + JVM +
network details + system resources.
|
static long |
getSystemId()
Returns a system hash ID generated from all the system details
concatenated: OS + JVM + network details + system resources.
|
protected static MessageDigest md
public static long getSystemId()
public static String getSystemDataHash()
public static String getOperatingSystem()
public static String getJavaVirtualMachine()
public static String getResources()
public static int getAvailableProcessors()
public static long getMaxMemory()
public static String getNetwork()
public static NetworkData getNetworkData()
NetworkData.
This method returns the network data associated to the host name.NetworkDatapublic static List<NetworkData> getNetworkDataList()
NetworkData.
This method iterates over all the network interfaces to return those that
are up and running.
NOTE: it may be VERY EXPENSIVE on Windows systems, because it creates a
lot of virtual network interfaces.NetworkDataCopyright © 2019. All rights reserved.