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
f0b46e12
authored
May 07, 2017
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
JettyServer关闭逻辑优化,修复执行器无法通过脚本正常关闭的问题
parent
cafe9546
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
xxl-job-core/src/main/java/com/xxl/job/core/rpc/netcom/jetty/server/JettyServer.java
xxl-job-core/src/main/java/com/xxl/job/core/rpc/netcom/jetty/server/JettyServer.java
View file @
f0b46e12
...
@@ -44,7 +44,7 @@ public class JettyServer {
...
@@ -44,7 +44,7 @@ public class JettyServer {
logger
.
info
(
">>>>>>>>>>>> xxl-job jetty server start success at port:{}."
,
port
);
logger
.
info
(
">>>>>>>>>>>> xxl-job jetty server start success at port:{}."
,
port
);
ExecutorRegistryThread
.
getInstance
().
start
(
port
,
ip
,
appName
,
registHelper
);
ExecutorRegistryThread
.
getInstance
().
start
(
port
,
ip
,
appName
,
registHelper
);
server
.
join
();
// block until thread stopped
server
.
join
();
// block until thread stopped
logger
.
info
(
">>>>>>>>>>> xxl-rpc server
start
success, netcon={}, port={}"
,
JettyServer
.
class
.
getName
(),
port
);
logger
.
info
(
">>>>>>>>>>> xxl-rpc server
join
success, netcon={}, port={}"
,
JettyServer
.
class
.
getName
(),
port
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
""
,
e
);
logger
.
error
(
""
,
e
);
}
finally
{
}
finally
{
...
@@ -59,6 +59,7 @@ public class JettyServer {
...
@@ -59,6 +59,7 @@ public class JettyServer {
public
void
destroy
()
{
public
void
destroy
()
{
if
(
server
!=
null
)
{
if
(
server
!=
null
)
{
try
{
try
{
server
.
stop
();
server
.
destroy
();
server
.
destroy
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
""
,
e
);
logger
.
error
(
""
,
e
);
...
...
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