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
7e388909
authored
Mar 13, 2017
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
泛型处理
parent
75f3f584
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
xxl-job-core/src/main/java/com/xxl/job/core/biz/impl/ExecutorBizImpl.java
xxl-job-core/src/main/java/com/xxl/job/core/biz/impl/ExecutorBizImpl.java
View file @
7e388909
...
@@ -61,7 +61,7 @@ public class ExecutorBizImpl implements ExecutorBiz {
...
@@ -61,7 +61,7 @@ public class ExecutorBizImpl implements ExecutorBiz {
// valid handler
// valid handler
IJobHandler
jobHandler
=
XxlJobExecutor
.
loadJobHandler
(
triggerParam
.
getExecutorHandler
());
IJobHandler
jobHandler
=
XxlJobExecutor
.
loadJobHandler
(
triggerParam
.
getExecutorHandler
());
if
(
jobHandler
==
null
)
{
if
(
jobHandler
==
null
)
{
return
new
ReturnT
(
ReturnT
.
FAIL_CODE
,
"job handler for JobId=["
+
triggerParam
.
getJobId
()
+
"] not found."
);
return
new
ReturnT
<
String
>
(
ReturnT
.
FAIL_CODE
,
"job handler for JobId=["
+
triggerParam
.
getJobId
()
+
"] not found."
);
}
}
// valid exists job thread:change handler, need kill old thread
// valid exists job thread:change handler, need kill old thread
...
@@ -83,7 +83,7 @@ public class ExecutorBizImpl implements ExecutorBiz {
...
@@ -83,7 +83,7 @@ public class ExecutorBizImpl implements ExecutorBiz {
// valid glueloader
// valid glueloader
if
(!
GlueFactory
.
isActive
())
{
if
(!
GlueFactory
.
isActive
())
{
return
new
ReturnT
(
ReturnT
.
FAIL_CODE
,
"glueLoader for JobId=["
+
triggerParam
.
getJobId
()
+
"] not found."
);
return
new
ReturnT
<
String
>
(
ReturnT
.
FAIL_CODE
,
"glueLoader for JobId=["
+
triggerParam
.
getJobId
()
+
"] not found."
);
}
}
// valid exists job thread:change handler or glue timeout, need kill old thread
// valid exists job thread:change handler or glue timeout, need kill old thread
...
@@ -104,7 +104,7 @@ public class ExecutorBizImpl implements ExecutorBiz {
...
@@ -104,7 +104,7 @@ public class ExecutorBizImpl implements ExecutorBiz {
jobHandler
=
GlueFactory
.
getInstance
().
loadNewInstance
(
triggerParam
.
getJobId
());
jobHandler
=
GlueFactory
.
getInstance
().
loadNewInstance
(
triggerParam
.
getJobId
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
""
,
e
);
logger
.
error
(
""
,
e
);
return
new
ReturnT
(
ReturnT
.
FAIL_CODE
,
e
.
getMessage
());
return
new
ReturnT
<
String
>
(
ReturnT
.
FAIL_CODE
,
e
.
getMessage
());
}
}
jobThread
=
XxlJobExecutor
.
registJobThread
(
triggerParam
.
getJobId
(),
new
GlueJobHandler
(
jobHandler
,
triggerParam
.
getGlueUpdatetime
()));
jobThread
=
XxlJobExecutor
.
registJobThread
(
triggerParam
.
getJobId
(),
new
GlueJobHandler
(
jobHandler
,
triggerParam
.
getGlueUpdatetime
()));
}
}
...
...
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