public class SouwenConfig extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) int |
indexSockPort |
(专用程序包) int |
maxtxtlen |
(专用程序包) Properties |
pros |
(专用程序包) int |
querySockPort |
(专用程序包) int |
socket_timeout |
(专用程序包) String |
sockIp |
| 限定符 | 构造器和说明 |
|---|---|
protected |
SouwenConfig() |
|
SouwenConfig(InputStream in) |
|
SouwenConfig(Properties props) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getIndexSockPort()
得到全文库加载的通信端口
|
int |
getMaxTxtLen() |
boolean |
getPropertyOfboolean(String key) |
int |
getPropertyOfint(String key) |
long |
getPropertyOflong(String key) |
Properties |
getProps() |
int |
getQuerySockPort()
得到全文库检索的通信端口
|
int |
getSocketTimeOut() |
String |
getSockIp()
得到服务器端的ip
|
protected void |
init()
读取配置文件信息。
|
protected void |
setIndexSockPort(int indexSockPort)
设置全文库加载的通信端口
|
protected void |
setQuerySockPort(int querySockPort)
设置全文库检索的通信端口
|
protected void |
setSockIp(String sockIp)
设置服务器端的ip
|
Properties pros
String sockIp
int querySockPort
int indexSockPort
int socket_timeout
int maxtxtlen
public SouwenConfig(Properties props) throws Exception
Exceptionpublic SouwenConfig(InputStream in) throws Exception
Exceptionprotected SouwenConfig()
protected void init()
throws FileNotFoundException,
IOException
public int getIndexSockPort()
protected void setIndexSockPort(int indexSockPort)
indexSockPort - -- 加载的通信端口public int getQuerySockPort()
protected void setQuerySockPort(int querySockPort)
querySockPort - -- 检索的通信端口public String getSockIp()
protected void setSockIp(String sockIp)
sockIp - -- ippublic int getSocketTimeOut()
public int getMaxTxtLen()
public Properties getProps()
public int getPropertyOfint(String key)
public long getPropertyOflong(String key)
public boolean getPropertyOfboolean(String key)
Copyright © 2023. All rights reserved.