You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package 分布式对象创建系统;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 缃戠粶閰嶇疆淇℃伅锛堝崟渚嬫ā寮忥級
|
|
|
* @author chuyang
|
|
|
* @version 1.0
|
|
|
* @created 28-10月-2025 11:03:00
|
|
|
*/
|
|
|
public class NetworkConfig {
|
|
|
|
|
|
private static volatile NetworkConfig instance;
|
|
|
private String registryHost;
|
|
|
private int registryPort;
|
|
|
private int timeout;
|
|
|
|
|
|
|
|
|
|
|
|
public void finalize() throws Throwable {
|
|
|
|
|
|
}
|
|
|
private NetworkConfig(){
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 鍗曚緥妯″紡锛氬弻閲嶆<E996B2>鏌ラ攣鑾峰彇瀹炰緥
|
|
|
*/
|
|
|
public static NetworkConfig getInstance(){
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Getter鍜孲etter
|
|
|
*/
|
|
|
public String getRegistryHost(){
|
|
|
return "";
|
|
|
}
|
|
|
|
|
|
public int getRegistryPort(){
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
public int getTimeout(){
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
* @param registryHost
|
|
|
*/
|
|
|
public void setRegistryHost(String registryHost){
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
* @param registryPort
|
|
|
*/
|
|
|
public void setRegistryPort(int registryPort){
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
* @param timeout
|
|
|
*/
|
|
|
public void setTimeout(int timeout){
|
|
|
|
|
|
}
|
|
|
}//end NetworkConfig
|