[集群-自动切换过国标级联] 添加数据库脚本
This commit is contained in:
22
src/main/java/com/genersoft/iot/vmp/common/ServerInfo.java
Normal file
22
src/main/java/com/genersoft/iot/vmp/common/ServerInfo.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package com.genersoft.iot.vmp.common;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ServerInfo {
|
||||
|
||||
private String ip;
|
||||
private int port;
|
||||
/**
|
||||
* 现在使用的线程数
|
||||
*/
|
||||
private int threadNumber;
|
||||
|
||||
public static ServerInfo create(String ip, int port, int threadNumber) {
|
||||
ServerInfo serverInfo = new ServerInfo();
|
||||
serverInfo.setIp(ip);
|
||||
serverInfo.setPort(port);
|
||||
serverInfo.setThreadNumber(threadNumber);
|
||||
return serverInfo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user