Toggle navigation
Toggle navigation
This project
Loading...
Sign in
guizhou-monitorV2.0.1
/
agent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangmingm
8 years ago
Commit
8fa9b1c7bfbbaf45da54585911b1c8633def0202
1 parent
3e47ace2
修改getPingStatus方法。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
22 deletions
src/com/sitech/ismp/coll/middleware/weblogic/CollWebLogic.java
src/com/sitech/ismp/coll/middleware/weblogic/CollWebLogic.java
View file @
8fa9b1c
...
...
@@ -136,29 +136,25 @@ public class CollWebLogic implements CollWebLogicMBean{
@Override
public
Vector
<
TblATO_KPIDETAIL
>
getPingStatus
(
HashMap
<
String
,
String
>
params
)
{
/**
* 该 kbp_class kpiId 如果不存在,需要在页面添加。
*/
String
kbp_class
=
"10-12-11-20"
;
String
kpiId
=
"FM-00-12-001-999"
;
String
isPing
=
params
.
get
(
"isPing"
);
// frank 2017-05-19 添加。Y进行ping操作,N不执行
Vector
<
TblATO_KPIDETAIL
>
vector
=
new
Vector
<
TblATO_KPIDETAIL
>();
String
serverip
=
params
.
get
(
"SERVERIP"
);
/**
* SERVERNAME 实际就是 资源标识。
*/
String
servername
=
params
.
get
(
"SERVERNAME"
);
String
unitId
=
kbp_class
+
":"
+
Formater
.
neatenunitid
(
servername
)
+
"-CONFIG"
;
CheckConnectionState
server
=
new
CheckConnectionState
();
TblATO_KPIDETAIL
kpidetail
=
new
TblATO_KPIDETAIL
();
try
{
kpidetail
.
setUNIT_ID
(
unitId
);
kpidetail
.
setKPI_ID
(
kpiId
);
kpidetail
.
setKPI_VALUE
(
server
.
getPingState
(
new
ParamterBean
(
serverip
)));
kpidetail
.
setCLL_TIME
(
new
Date
());
vector
.
add
(
kpidetail
);
}
catch
(
ParseException
e
){
e
.
printStackTrace
();
if
(
"Y"
.
equals
(
isPing
)){
String
kbp_class
=
"10-12-11-20"
;
String
kpiId
=
"FM-00-12-001-999"
;
String
serverip
=
params
.
get
(
"SERVERIP"
);
String
servername
=
params
.
get
(
"SERVERNAME"
);
String
unitId
=
kbp_class
+
":"
+
Formater
.
neatenunitid
(
servername
)
+
"-CONFIG"
;
CheckConnectionState
server
=
new
CheckConnectionState
();
TblATO_KPIDETAIL
kpidetail
=
new
TblATO_KPIDETAIL
();
try
{
kpidetail
.
setUNIT_ID
(
unitId
);
kpidetail
.
setKPI_ID
(
kpiId
);
kpidetail
.
setKPI_VALUE
(
server
.
getPingState
(
new
ParamterBean
(
serverip
)));
kpidetail
.
setCLL_TIME
(
new
Date
());
vector
.
add
(
kpidetail
);
}
catch
(
ParseException
e
){
e
.
printStackTrace
();
}
}
return
vector
;
}
...
...
Please
register
or
login
to post a comment