| 程序包 | 说明 |
|---|---|
| net.wicp.tams.common.beans |
| 限定符和类型 | 方法和说明 |
|---|---|
static Host |
Host.fromParts(String hostIp,
int port) |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Host> |
Host.jsonToHosts(String jsonAryStr)
把json转为Host,这样就可以写到主机的/etc/hosts文件中。
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
Host.compareTo(Host o) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
Host.getHostStr(List<Host> hostnames)
把主机按规则写入/etc/hosts
|
Copyright © 2020. All rights reserved.