Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
service-rest
Overview
Overview
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
常超
service-rest
Commits
745d8cce
Commit
745d8cce
authored
Nov 21, 2018
by
liuyongshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改完善weblogic的监测方法
parent
ea6450ab
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
8 deletions
+47
-8
src/main/java/com/cc/bean/JDBCEntity.java
+41
-0
src/main/java/com/cc/serviceutil/Finalweblogicmonit.java
+0
-0
src/main/java/com/cc/serviceutil/WeblogicReport.java
+6
-8
No files found.
src/main/java/com/cc/bean/JDBCEntity.java
0 → 100644
View file @
745d8cce
package
com
.
cc
.
bean
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.extern.log4j.Log4j
;
/**
* Created by liuys on 2018/11/20.
*/
@Data
@Log4j
@NoArgsConstructor
@AllArgsConstructor
public
class
JDBCEntity
{
private
String
ServiceName
;
private
String
name
;
private
String
state
;
private
String
versionJDBCDriver
;
private
Integer
maxCapacity
;
private
Integer
activeConnectionsCurrentCount
;
//历史最大活跃数
private
Integer
activeConnectionsHighCount
;
//当前连接数
private
Integer
currCapacity
;
//活动连接平均数
private
Integer
activeConnectionsAverageCount
;
//池内空闲连接数
private
Integer
numAvailable
;
//历史最大连接数
private
Integer
highestNumUnavailable
;
//泄漏的连接数
private
Integer
leakedConnectionCount
;
//失败重新连接数
private
Integer
failuresToReconnectCount
;
//返回当前等待连接的总数 WaitingForConnectionCurrentCount
private
Integer
waitingForConnectionCurrentCount
;
}
src/main/java/com/cc/serviceutil/Finalweblogicmonit.java
View file @
745d8cce
This diff is collapsed.
Click to expand it.
src/main/java/com/cc/serviceutil/WeblogicReport.java
View file @
745d8cce
package
com
.
cc
.
serviceutil
;
import
com.cc.bean.Services
;
import
com.cc.bean.ServicesRest
;
import
com.cc.service.CrudService
;
import
com.cc.service.ServiceService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.StringUtils
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* Created by changc on 2018/9/11.
...
...
@@ -32,10 +27,13 @@ public class WeblogicReport {
public
void
WeblogicReport
(){
//System.out.println("心跳开始------------------------------------》");
List
<
Services
>
ServiceList
=
(
List
<
Services
>)
crudService
.
SelectServiceList
().
getData
();
System
.
out
.
println
(
ServiceList
);
int
i
=
1
;
System
.
out
.
println
(
i
++);
for
(
Services
ser:
ServiceList
){
String
name
=
ser
.
getApplyName
();
System
.
out
.
println
(
name
);
}
}
}
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