Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3420b1bd
authored
May 28, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
日志回调服务
parent
87060f42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
xxl-job-core/src/main/java/com/xxl/job/core/handler/HandlerRepository.java
xxl-job-core/src/main/java/com/xxl/job/core/handler/HandlerRepository.java
View file @
3420b1bd
...
@@ -204,21 +204,24 @@ public class HandlerRepository {
...
@@ -204,21 +204,24 @@ public class HandlerRepository {
new
Thread
(
new
Runnable
()
{
new
Thread
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
try
{
while
(
true
){
HashMap
<
String
,
String
>
item
=
callBackQueue
.
poll
();
try
{
if
(
item
!=
null
)
{
HashMap
<
String
,
String
>
item
=
callBackQueue
.
poll
();
RemoteCallBack
callback
=
null
;
if
(
item
!=
null
)
{
try
{
RemoteCallBack
callback
=
null
;
callback
=
HttpUtil
.
post
(
item
.
get
(
"_address"
),
item
);
try
{
}
catch
(
Exception
e
)
{
callback
=
HttpUtil
.
post
(
item
.
get
(
"_address"
),
item
);
logger
.
info
(
"HandlerThread Exception:"
,
e
);
}
catch
(
Exception
e
)
{
}
logger
.
info
(
"HandlerThread Exception:"
,
e
);
logger
.
info
(
">>>>>>>>>>> xxl-job callback , params:{}, result:{}"
,
new
Object
[]{
item
,
callback
});
}
}
logger
.
info
(
">>>>>>>>>>> xxl-job callback , params:{}, result:{}"
,
new
Object
[]{
item
,
callback
});
}
catch
(
Exception
e
)
{
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
}
}
});
})
.
start
()
;
}
}
public
static
void
pushCallBack
(
String
address
,
HashMap
<
String
,
String
>
params
){
public
static
void
pushCallBack
(
String
address
,
HashMap
<
String
,
String
>
params
){
params
.
put
(
"_address"
,
address
);
params
.
put
(
"_address"
,
address
);
...
...
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