Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
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
liyuan
byit-myth-job
Commits
4ff5823e
Commit
4ff5823e
authored
May 19, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
休整时间溢出问题
parent
dcc9498f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
ApiFlowController.java
...h-admin/src/main/java/com/byit/api/ApiFlowController.java
+7
-0
DaemonScanThreadRunHelperRedisLock.java
.../com/byit/factory/DaemonScanThreadRunHelperRedisLock.java
+1
-1
RunRecordingAndEmailServiceImpl.java
...vice/mapservice/impl/RunRecordingAndEmailServiceImpl.java
+4
-1
No files found.
byit-myth-admin/src/main/java/com/byit/api/ApiFlowController.java
View file @
4ff5823e
...
@@ -126,6 +126,13 @@ public class ApiFlowController {
...
@@ -126,6 +126,13 @@ public class ApiFlowController {
return
ResponseResult
.
ok
(
result
);
return
ResponseResult
.
ok
(
result
);
}
}
public
static
void
main
(
String
[]
args
)
{
int
maxValue
=
Integer
.
MAX_VALUE
;
System
.
out
.
println
(
maxValue
+
3
);
//5184000000
//2147483647
}
/**
/**
*
*
* @param param
* @param param
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/factory/DaemonScanThreadRunHelperRedisLock.java
View file @
4ff5823e
...
@@ -42,7 +42,7 @@ public class DaemonScanThreadRunHelperRedisLock extends BaseDaemonScanThreadRunH
...
@@ -42,7 +42,7 @@ public class DaemonScanThreadRunHelperRedisLock extends BaseDaemonScanThreadRunH
Long
sleepTime
=
0L
;
Long
sleepTime
=
0L
;
try
{
try
{
//加锁
//加锁
RedissLockUtil
.
lock
(
lockName
,
3
0
);
RedissLockUtil
.
lock
(
lockName
,
12
0
);
log
.
debug
(
"------------{},加锁成功,锁名称为{}----------"
,
threadName
,
lockName
);
log
.
debug
(
"------------{},加锁成功,锁名称为{}----------"
,
threadName
,
lockName
);
//调用业务操作
//调用业务操作
sleepTime
=
examplesValue
.
start
();
sleepTime
=
examplesValue
.
start
();
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/mapservice/impl/RunRecordingAndEmailServiceImpl.java
View file @
4ff5823e
...
@@ -16,6 +16,7 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -16,6 +16,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -96,7 +97,9 @@ public class RunRecordingAndEmailServiceImpl implements RunRecordingAndEmailServ
...
@@ -96,7 +97,9 @@ public class RunRecordingAndEmailServiceImpl implements RunRecordingAndEmailServ
if
(
CollectionUtil
.
isNotEmpty
(
jobTaskRunLogs
))
{
if
(
CollectionUtil
.
isNotEmpty
(
jobTaskRunLogs
))
{
jobTaskRunLogs
.
forEach
(
jobTaskRunLog
->
{
jobTaskRunLogs
.
forEach
(
jobTaskRunLog
->
{
long
timeConsuming
=
jobTaskRunLog
.
getEndTime
().
getTime
()
-
jobTaskRunLog
.
getStartTime
().
getTime
();
Date
endTime
=
jobTaskRunLog
.
getEndTime
()
==
null
?
new
Date
()
:
jobTaskRunLog
.
getEndTime
();
Date
startTime
=
jobTaskRunLog
.
getStartTime
()
==
null
?
new
Date
()
:
jobTaskRunLog
.
getStartTime
();
long
timeConsuming
=
endTime
.
getTime
()
-
startTime
.
getTime
();
/*
/*
* String iframeHtml = "<iframe src='%s'></iframe>";
* String iframeHtml = "<iframe src='%s'></iframe>";
* String logFilePath = FILE_SYSTEM_PRE+fileSystemIp+":"+fileSystemPort+"/"+jobTaskRunLog.getLogRemotelyPath();
* String logFilePath = FILE_SYSTEM_PRE+fileSystemIp+":"+fileSystemPort+"/"+jobTaskRunLog.getLogRemotelyPath();
...
...
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