修改短链接
This commit is contained in:
parent
6ad20cd905
commit
983459f816
@ -27,10 +27,10 @@ public class SydApi4Database implements SydApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SydApi SYD_Short_Connect_Ex(String[] pcIpList, int[] iPortList, int iConnectTimeOut, int iDealTimeOut) {
|
public SydApi SYD_Short_Connect_Ex(String[] pcIpList, int[] iPortList, int iConnectTimeOut, int allDealTimeOut) {
|
||||||
Logger log = LogFactory.getLogger();
|
Logger log = LogFactory.getLogger();
|
||||||
if (LogFactory.iLogLevel==3) {
|
if (LogFactory.iLogLevel==3) {
|
||||||
log.debug("SYD_Connect_Ex方法接收参数:pcIpList:{},iPortList:{},iConnectTimeOut:{},iDealTimeOut:{}", Arrays.toString(pcIpList), Arrays.toString(iPortList), iConnectTimeOut, iDealTimeOut);
|
log.debug("SYD_Connect_Ex方法接收参数:pcIpList:{},iPortList:{},iConnectTimeOut:{},iDealTimeOut:{}", Arrays.toString(pcIpList), Arrays.toString(iPortList), iConnectTimeOut, allDealTimeOut);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pcIpList.length!=iPortList.length) {
|
if (pcIpList.length!=iPortList.length) {
|
||||||
@ -38,12 +38,12 @@ public class SydApi4Database implements SydApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SydApi4j[] apis = new SydApi4j[pcIpList.length];
|
SydApi4j[] apis = new SydApi4j[pcIpList.length];
|
||||||
|
int iDealTimeOut = allDealTimeOut / pcIpList.length;
|
||||||
for (int i = 0; i < pcIpList.length ; i++) {
|
for (int i = 0; i < pcIpList.length ; i++) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
apis[i] = (SydApi4j) new SydApi4j().connect(pcIpList[i], iPortList[i], null, iConnectTimeOut);
|
apis[i] = (SydApi4j) new SydApi4j().connect(pcIpList[i], iPortList[i], null, iConnectTimeOut, iDealTimeOut);
|
||||||
|
|
||||||
}catch ( Exception e) {
|
}catch ( Exception e) {
|
||||||
// 忽略错误
|
// 忽略错误
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user