public final class TcpFileConfig extends Object implements ITcpConfig
ITcpConfig的默认实现
对应配置文件默认位置为resources/config/adapter.conf
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getHost()
泛协议接入SDK协议站TCP启动的地址,默认为本地地址
|
static TcpFileConfig |
getInstance() |
static TcpFileConfig |
getInstance(String configFilePath) |
String |
getName()
泛协议接入SDK协议站TCP名称,默认为TCPHub
|
Integer |
getPort()
泛协议接入SDK协议站TCP启动的端口,默认为10086
|
public static TcpFileConfig getInstance(String configFilePath)
public static TcpFileConfig getInstance()
public String getName()
ITcpConfiggetName 在接口中 ITcpConfigpublic String getHost()
ITcpConfiggetHost 在接口中 ITcpConfigpublic Integer getPort()
ITcpConfiggetPort 在接口中 ITcpConfigCopyright © 2020. All rights reserved.