Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PRMS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengfunan
PRMS
Commits
782f4bf3
Commit
782f4bf3
authored
Jan 21, 2021
by
gaozhentao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除测试数据和无用方法
parent
b8fd0ef6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
30 deletions
+6
-30
ReliabilityApi.java
src/main/java/com/yingxin/prms/api/ReliabilityApi.java
+3
-22
Manager.java
src/main/java/com/yingxin/prms/service/business/Manager.java
+3
-8
No files found.
src/main/java/com/yingxin/prms/api/ReliabilityApi.java
View file @
782f4bf3
...
...
@@ -3,6 +3,7 @@ package com.yingxin.prms.api;
import
com.yingxin.prms.domain.FlowLine
;
import
com.yingxin.prms.domain.FlowNode
;
import
com.yingxin.prms.service.business.Manager
;
import
net.sf.json.JSONObject
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.core.task.AsyncTaskExecutor
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
...
...
@@ -88,15 +89,6 @@ public class ReliabilityApi {
public
Map
selectTopology
(){
return
manager
.
selectTopology
();
}
/**
* 获取拓扑图线数据
*
* @return
*/
// @PostMapping("selectTopologyLine")
// public List<FlowLine> selectTopologyLine(){
// return manager.selectTopologyLine();
// }
/**
* 保存数据
...
...
@@ -111,19 +103,8 @@ public class ReliabilityApi {
* @return
*/
@GetMapping
(
"getStatistics"
)
public
Map
getStatistics
()
{
Map
map
=
new
HashMap
();
Map
ss
=
new
HashMap
();
ss
.
put
(
"yearVistis"
,
22701
);
ss
.
put
(
"monthVistis"
,
22701
);
ss
.
put
(
"dayVistis"
,
22701
);
ss
.
put
(
"avgDailyVisits"
,
22701
);
ss
.
put
(
"weekVisits"
,
22701
);
map
.
put
(
"code"
,
0
);
map
.
put
(
"data"
,
ss
);
map
.
put
(
"msg"
,
"成功"
);
// return manager.getStatistics();
return
map
;
public
JSONObject
getStatistics
()
{
return
manager
.
getStatistics
();
}
}
src/main/java/com/yingxin/prms/service/business/Manager.java
View file @
782f4bf3
...
...
@@ -508,10 +508,11 @@ public class Manager {
}
public
Map
getStatistics
()
{
public
JSONObject
getStatistics
()
{
Server_Host_Info
serverHostInfo
=
cassandraDao
.
getStatisticsUri
();
Map
<
String
,
String
>
map
=
SendHttpUtil
.
doGet
(
serverHostInfo
.
getService_path
());
return
map
;
JSONObject
json
=
JSONObject
.
fromObject
(
map
.
get
(
"body"
));
return
json
;
}
public
Map
<
String
,
Map
>
getErrorCountCluster
()
{
/*线程池*/
...
...
@@ -546,13 +547,7 @@ public class Manager {
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
// for (SingleHostStatus singleHostStatus : result) {
// SingleHostStatus singleHostStatus = (SingleHostStatus) future.get();
// hostStatusList.add(singleHostStatus);
// }
}
// Server_Host_Info serverHostInfo = cassandraDao.getStatisticsUri();
// Map<String, String> map = SendHttpUtil.doGet(serverHostInfo.getService_path());
Map
<
String
,
Map
>
map
=
new
HashMap
();
map
.
put
(
"total"
,
totalMap
);
map
.
put
(
"error"
,
errorMap
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment