[manager,collector]feature 修改默认超时时间3000毫秒为6000毫秒 (#55)
This commit is contained in:
@@ -52,8 +52,8 @@ public class JdbcCommonCollect extends AbstractCollect {
|
||||
}
|
||||
JdbcProtocol jdbcProtocol = metrics.getJdbc();
|
||||
String databaseUrl = constructDatabaseUrl(jdbcProtocol);
|
||||
// 查询超时时间默认3000毫秒
|
||||
int timeout = 3000;
|
||||
// 查询超时时间默认6000毫秒
|
||||
int timeout = 6000;
|
||||
try {
|
||||
// 获取查询语句超时时间
|
||||
if (jdbcProtocol.getTimeout() != null) {
|
||||
|
||||
@@ -37,8 +37,8 @@ public class IcmpCollectImpl extends AbstractCollect {
|
||||
return;
|
||||
}
|
||||
IcmpProtocol icmp = metrics.getIcmp();
|
||||
// 超时时间默认300毫秒
|
||||
int timeout = 300;
|
||||
// 超时时间默认6000毫秒
|
||||
int timeout = 6000;
|
||||
try {
|
||||
timeout = Integer.parseInt(icmp.getTimeout());
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -38,8 +38,8 @@ public class TelnetCollectImpl extends AbstractCollect {
|
||||
}
|
||||
|
||||
TelnetProtocol telnet = metrics.getTelnet();
|
||||
// 超时时间默认300毫秒
|
||||
int timeout = 300;
|
||||
// 超时时间默认6000毫秒
|
||||
int timeout = 6000;
|
||||
try {
|
||||
timeout = Integer.parseInt(telnet.getTimeout());
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user