Commit e37bf3c5 by 房斌

更改日志,为了测试组件顺序性 和使用临时域名

parent 47c8e1cb
...@@ -3,7 +3,7 @@ package com.secoo.mall.gracefulshutdown.component; ...@@ -3,7 +3,7 @@ package com.secoo.mall.gracefulshutdown.component;
public class ConfigConstant { public class ConfigConstant {
// public static String EXWARN="http://172.17.76.196:6080/gracefulshutdown/gracefulSave"; // public static String EXWARN="http://172.17.76.196:6080/gracefulshutdown/gracefulSave";
public static String EXWARN="http://exwarn.secoo.com/gracefulshutdown/gracefulSave"; public static String EXWARN="http://test-exwarn.secoo.com/gracefulshutdown/gracefulSave";
public static final int CONNECT_TIMEOUT = 1000;//连接超时时间 public static final int CONNECT_TIMEOUT = 1000;//连接超时时间
public static final int SOCKET_TIMEOUT = 5000;//等待数据超时时间 public static final int SOCKET_TIMEOUT = 5000;//等待数据超时时间
......
...@@ -104,6 +104,7 @@ public class GracefulShutDown implements CommandLineRunner, ApplicationListener< ...@@ -104,6 +104,7 @@ public class GracefulShutDown implements CommandLineRunner, ApplicationListener<
@Override @Override
public void onApplicationEvent(ContextClosedEvent contextClosedEvent) { public void onApplicationEvent(ContextClosedEvent contextClosedEvent) {
logger.info("222222222222222 dubbo stop");
ExecutorDetails result = new ExecutorDetails(); ExecutorDetails result = new ExecutorDetails();
result.setCode(0); result.setCode(0);
List<ExecutorDetail> details = new ArrayList<ExecutorDetail>(); List<ExecutorDetail> details = new ArrayList<ExecutorDetail>();
......
...@@ -34,7 +34,6 @@ public class TomcatGracefulShutDown implements TomcatConnectorCustomizer , Appli ...@@ -34,7 +34,6 @@ public class TomcatGracefulShutDown implements TomcatConnectorCustomizer , Appli
@Override @Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
this.context = applicationContext; this.context = applicationContext;
logger.info("11111111111111111111 setContext");
} }
public TomcatShutDownHook getTomcatShutDownHook() { public TomcatShutDownHook getTomcatShutDownHook() {
return tomcatShutDownHook; return tomcatShutDownHook;
...@@ -51,7 +50,7 @@ public class TomcatGracefulShutDown implements TomcatConnectorCustomizer , Appli ...@@ -51,7 +50,7 @@ public class TomcatGracefulShutDown implements TomcatConnectorCustomizer , Appli
@Override @Override
public void onApplicationEvent(ContextClosedEvent contextClosedEvent) { public void onApplicationEvent(ContextClosedEvent contextClosedEvent) {
logger.info("11111111111111111111 "); logger.info("11111111111111111111 tomcat stop");
tomcatShutDownHook.stop(); tomcatShutDownHook.stop();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment