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
a606b7a5
Commit
a606b7a5
authored
Mar 04, 2020
by
guo_minglei@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改运行编码格式
parent
904bd700
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
MythJobProcess.java
...com/byit/executor/jobExecutor/process/MythJobProcess.java
+2
-2
LogGobbler.java
...core/src/main/java/com/byit/executor/util/LogGobbler.java
+1
-2
No files found.
byit-myth-core/myth-executor-core/src/main/java/com/byit/executor/jobExecutor/process/MythJobProcess.java
View file @
a606b7a5
...
@@ -107,8 +107,8 @@ public class MythJobProcess implements Callable<String>{
...
@@ -107,8 +107,8 @@ public class MythJobProcess implements Callable<String>{
log
.
info
(
"进程的id "
+
this
.
processId
);
log
.
info
(
"进程的id "
+
this
.
processId
);
}
}
outputGobbler
=
new
LogGobbler
(
new
InputStreamReader
(
this
.
process
.
getInputStream
(),
"
GB2312
"
),
Boolean
.
FALSE
,
30
);
outputGobbler
=
new
LogGobbler
(
new
InputStreamReader
(
this
.
process
.
getInputStream
(),
"
utf-8
"
),
Boolean
.
FALSE
,
30
);
errorGobbler
=
new
LogGobbler
(
new
InputStreamReader
(
this
.
process
.
getErrorStream
(),
"
GB2312
"
),
Boolean
.
TRUE
,
30
);
errorGobbler
=
new
LogGobbler
(
new
InputStreamReader
(
this
.
process
.
getErrorStream
(),
"
utf-8
"
),
Boolean
.
TRUE
,
30
);
//开始获取进程的运行日志
//开始获取进程的运行日志
outputGobbler
.
start
();
outputGobbler
.
start
();
errorGobbler
.
start
();
errorGobbler
.
start
();
...
...
byit-myth-core/myth-executor-core/src/main/java/com/byit/executor/util/LogGobbler.java
View file @
a606b7a5
...
@@ -62,8 +62,7 @@ public class LogGobbler extends Thread {
...
@@ -62,8 +62,7 @@ public class LogGobbler extends Thread {
}
}
}
}
public
String
getRecentLog
()
throws
UnsupportedEncodingException
{
public
String
getRecentLog
()
{
return
buffer
.
toString
();
return
buffer
.
toString
();
}
}
}
}
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