Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lts-common-task
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈文顺
lts-common-task
Commits
3c3d6982
Commit
3c3d6982
authored
Aug 24, 2018
by
陈文顺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
responseBody
parent
6bfd6369
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/main/java/com/freemud/ltscommontask/JobRunnerImpl.java
+3
-2
No files found.
src/main/java/com/freemud/ltscommontask/JobRunnerImpl.java
View file @
3c3d6982
...
@@ -25,6 +25,7 @@ public class JobRunnerImpl implements JobRunner {
...
@@ -25,6 +25,7 @@ public class JobRunnerImpl implements JobRunner {
@Override
@Override
public
Result
run
(
JobContext
jobContext
)
throws
Throwable
{
public
Result
run
(
JobContext
jobContext
)
throws
Throwable
{
String
responseBody
=
""
;
try
{
try
{
BizLogger
bizLogger
=
jobContext
.
getBizLogger
();
BizLogger
bizLogger
=
jobContext
.
getBizLogger
();
...
@@ -36,7 +37,7 @@ public class JobRunnerImpl implements JobRunner {
...
@@ -36,7 +37,7 @@ public class JobRunnerImpl implements JobRunner {
return
new
Result
(
Action
.
EXECUTE_SUCCESS
,
"执行成功了,哈哈"
);
return
new
Result
(
Action
.
EXECUTE_SUCCESS
,
"执行成功了,哈哈"
);
}
}
String
responseBody
=
restTemplate
.
getForObject
(
url
,
String
.
class
);
responseBody
=
restTemplate
.
getForObject
(
url
,
String
.
class
);
LOGGER
.
info
(
"=========== responseBody:{}"
,
responseBody
);
LOGGER
.
info
(
"=========== responseBody:{}"
,
responseBody
);
...
@@ -49,6 +50,6 @@ public class JobRunnerImpl implements JobRunner {
...
@@ -49,6 +50,6 @@ public class JobRunnerImpl implements JobRunner {
LOGGER
.
info
(
"Run job failed!"
,
e
);
LOGGER
.
info
(
"Run job failed!"
,
e
);
return
new
Result
(
Action
.
EXECUTE_FAILED
,
e
.
getMessage
());
return
new
Result
(
Action
.
EXECUTE_FAILED
,
e
.
getMessage
());
}
}
return
new
Result
(
Action
.
EXECUTE_SUCCESS
,
"执行成功了,哈哈"
);
return
new
Result
(
Action
.
EXECUTE_SUCCESS
,
responseBody
);
}
}
}
}
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