public abstract class AbstractServerInfos extends Object
| 构造器和说明 |
|---|
AbstractServerInfos() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract String |
getCpuSerial()
获取CPU序列号
|
protected abstract List<String> |
getIpAddress()
获取IP地址
|
protected List<InetAddress> |
getLocalAllInetAddress()
获取当前服务器所有符合条件的InetAddress
|
protected abstract List<String> |
getMacAddress()
获取Mac地址
|
protected String |
getMacByInetAddress(InetAddress inetAddr)
获取某个网络接口的Mac地址
|
protected abstract String |
getMainBoardSerial()
获取主板序列号
|
ServerModel |
getServerInfos() |
public ServerModel getServerInfos()
protected abstract List<String> getIpAddress() throws Exception
Exception - 异常protected abstract List<String> getMacAddress() throws Exception
Exception - 异常protected abstract String getCpuSerial() throws Exception
Exception - 异常protected abstract String getMainBoardSerial() throws Exception
Exception - 异常protected List<InetAddress> getLocalAllInetAddress() throws Exception
Exception - 异常protected String getMacByInetAddress(InetAddress inetAddr)
Copyright © 2022. All rights reserved.