系统信息采集工具
这里只提供创建 Sigar 对象的方法。
Sigar 的使用可参考 https://my.oschina.net/mkh/blog/312911。
默认仅支持 x86 的 Linux、Windows、MacOS。
如需更多系统支持,可从官网自行下载,
并将 sigar-bin/lib 下的文件解压到到应用的 src/main/resources/sigar 文件夹下即可。
否则会抛出 UnsatisfiedLinkError 异常。
| Type | Name and description |
|---|---|
static org.hyperic.sigar.Sigar |
getInstance()创建 Sigar 对象 |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |