[manager,collector]feature 修改默认超时时间3000毫秒为6000毫秒 (#55)
This commit is contained in:
@@ -52,8 +52,8 @@ public class JdbcCommonCollect extends AbstractCollect {
|
|||||||
}
|
}
|
||||||
JdbcProtocol jdbcProtocol = metrics.getJdbc();
|
JdbcProtocol jdbcProtocol = metrics.getJdbc();
|
||||||
String databaseUrl = constructDatabaseUrl(jdbcProtocol);
|
String databaseUrl = constructDatabaseUrl(jdbcProtocol);
|
||||||
// 查询超时时间默认3000毫秒
|
// 查询超时时间默认6000毫秒
|
||||||
int timeout = 3000;
|
int timeout = 6000;
|
||||||
try {
|
try {
|
||||||
// 获取查询语句超时时间
|
// 获取查询语句超时时间
|
||||||
if (jdbcProtocol.getTimeout() != null) {
|
if (jdbcProtocol.getTimeout() != null) {
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ public class IcmpCollectImpl extends AbstractCollect {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
IcmpProtocol icmp = metrics.getIcmp();
|
IcmpProtocol icmp = metrics.getIcmp();
|
||||||
// 超时时间默认300毫秒
|
// 超时时间默认6000毫秒
|
||||||
int timeout = 300;
|
int timeout = 6000;
|
||||||
try {
|
try {
|
||||||
timeout = Integer.parseInt(icmp.getTimeout());
|
timeout = Integer.parseInt(icmp.getTimeout());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ public class TelnetCollectImpl extends AbstractCollect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TelnetProtocol telnet = metrics.getTelnet();
|
TelnetProtocol telnet = metrics.getTelnet();
|
||||||
// 超时时间默认300毫秒
|
// 超时时间默认6000毫秒
|
||||||
int timeout = 300;
|
int timeout = 6000;
|
||||||
try {
|
try {
|
||||||
timeout = Integer.parseInt(telnet.getTimeout());
|
timeout = Integer.parseInt(telnet.getTimeout());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public class SshProtocol {
|
|||||||
/**
|
/**
|
||||||
* 超时时间
|
* 超时时间
|
||||||
*/
|
*/
|
||||||
private String timeout = "6000";
|
private String timeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户名
|
* 用户名
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ param:
|
|||||||
name: 查询超时时间
|
name: 查询超时时间
|
||||||
type: number
|
type: number
|
||||||
required: false
|
required: false
|
||||||
defaultValue: 3000
|
defaultValue: 6000
|
||||||
placeholder: '查询超时时间'
|
placeholder: '查询超时时间'
|
||||||
- field: database
|
- field: database
|
||||||
name: 数据库名称
|
name: 数据库名称
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ param:
|
|||||||
name: 查询超时时间
|
name: 查询超时时间
|
||||||
type: number
|
type: number
|
||||||
required: false
|
required: false
|
||||||
defaultValue: 3000
|
defaultValue: 6000
|
||||||
placeholder: '查询超时时间'
|
placeholder: '查询超时时间'
|
||||||
- field: database
|
- field: database
|
||||||
name: 数据库名称
|
name: 数据库名称
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ param:
|
|||||||
name: 查询超时时间
|
name: 查询超时时间
|
||||||
type: number
|
type: number
|
||||||
required: false
|
required: false
|
||||||
defaultValue: 3000
|
defaultValue: 6000
|
||||||
placeholder: '查询超时时间'
|
placeholder: '查询超时时间'
|
||||||
- field: database
|
- field: database
|
||||||
name: 数据库名称
|
name: 数据库名称
|
||||||
|
|||||||
@@ -17,4 +17,4 @@ param:
|
|||||||
range: '[0,100000]'
|
range: '[0,100000]'
|
||||||
required: true
|
required: true
|
||||||
placeholder: '请输入超时时间,单位毫秒'
|
placeholder: '请输入超时时间,单位毫秒'
|
||||||
defaultValue: 3000
|
defaultValue: 6000
|
||||||
@@ -24,4 +24,4 @@ param:
|
|||||||
range: '[0,100000]'
|
range: '[0,100000]'
|
||||||
required: true
|
required: true
|
||||||
placeholder: '请输入超时时间,单位毫秒'
|
placeholder: '请输入超时时间,单位毫秒'
|
||||||
defaultValue: 3000
|
defaultValue: 6000
|
||||||
@@ -15,7 +15,7 @@ param:
|
|||||||
name: 查询超时时间
|
name: 查询超时时间
|
||||||
type: number
|
type: number
|
||||||
required: false
|
required: false
|
||||||
defaultValue: 3000
|
defaultValue: 6000
|
||||||
placeholder: '查询超时时间'
|
placeholder: '查询超时时间'
|
||||||
- field: database
|
- field: database
|
||||||
name: 数据库名称
|
name: 数据库名称
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ param:
|
|||||||
name: 查询超时时间
|
name: 查询超时时间
|
||||||
type: number
|
type: number
|
||||||
required: false
|
required: false
|
||||||
defaultValue: 3000
|
defaultValue: 6000
|
||||||
placeholder: '查询超时时间'
|
placeholder: '查询超时时间'
|
||||||
- field: database
|
- field: database
|
||||||
name: 数据库名称
|
name: 数据库名称
|
||||||
|
|||||||
@@ -24,4 +24,4 @@ param:
|
|||||||
range: '[0,100000]'
|
range: '[0,100000]'
|
||||||
required: true
|
required: true
|
||||||
placeholder: '请输入超时时间,单位毫秒'
|
placeholder: '请输入超时时间,单位毫秒'
|
||||||
defaultValue: 3000
|
defaultValue: 6000
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
>{{ paramDefine.name }}
|
>{{ paramDefine.name }}
|
||||||
</nz-form-label>
|
</nz-form-label>
|
||||||
<nz-form-control *ngIf="paramDefine.type === 'password'" nzSpan="8" [nzErrorTip]="'validation.required' | i18n">
|
<nz-form-control *ngIf="paramDefine.type === 'password'" nzSpan="8" [nzErrorTip]="'validation.required' | i18n">
|
||||||
<nz-input-group [nzSuffix]="suffixTemplate">
|
<nz-input-group [nzSuffix]="suffixTemplate" style="width: 100%">
|
||||||
<input
|
<input
|
||||||
[type]="passwordVisible ? 'text' : 'password'"
|
[type]="passwordVisible ? 'text' : 'password'"
|
||||||
nz-input
|
nz-input
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
>{{ paramDefine.name }}
|
>{{ paramDefine.name }}
|
||||||
</nz-form-label>
|
</nz-form-label>
|
||||||
<nz-form-control *ngIf="paramDefine.type === 'password'" nzSpan="8" [nzErrorTip]="'validation.required' | i18n">
|
<nz-form-control *ngIf="paramDefine.type === 'password'" nzSpan="8" [nzErrorTip]="'validation.required' | i18n">
|
||||||
<nz-input-group [nzSuffix]="suffixTemplate">
|
<nz-input-group [nzSuffix]="suffixTemplate" style="width: 100%">
|
||||||
<input
|
<input
|
||||||
[type]="passwordVisible ? 'text' : 'password'"
|
[type]="passwordVisible ? 'text' : 'password'"
|
||||||
nz-input
|
nz-input
|
||||||
|
|||||||
Reference in New Issue
Block a user