作者 crossoverJie

:bulb: Documenting source code.

@@ -158,7 +158,7 @@ public class CIMClient { @@ -158,7 +158,7 @@ public class CIMClient {
158 .build(); 158 .build();
159 ChannelFuture future = channel.writeAndFlush(login); 159 ChannelFuture future = channel.writeAndFlush(login);
160 future.addListener((ChannelFutureListener) channelFuture -> 160 future.addListener((ChannelFutureListener) channelFuture ->
161 - echoService.echo("registry cim server success!") 161 + echoService.echo("Registry cim server success!")
162 ); 162 );
163 } 163 }
164 164
@@ -19,13 +19,13 @@ public enum StatusEnum { @@ -19,13 +19,13 @@ public enum StatusEnum {
19 FAIL("4000", "失败"), 19 FAIL("4000", "失败"),
20 20
21 /** 重复登录 */ 21 /** 重复登录 */
22 - REPEAT_LOGIN("5000", "账号重复登录,请退出一个账号!"), 22 + REPEAT_LOGIN("5000", "Repeat login, log out an account please!"),
23 23
24 /** 账号不在线 */ 24 /** 账号不在线 */
25 OFF_LINE("7000", "你选择的账号不在线,请重新选择!"), 25 OFF_LINE("7000", "你选择的账号不在线,请重新选择!"),
26 26
27 /** 登录信息不匹配 */ 27 /** 登录信息不匹配 */
28 - ACCOUNT_NOT_MATCH("9100", "登录信息不匹配!"), 28 + ACCOUNT_NOT_MATCH("9100", "The User information you have used is incorrect!"),
29 29
30 /** 请求限流 */ 30 /** 请求限流 */
31 REQUEST_LIMIT("6000", "请求限流"), 31 REQUEST_LIMIT("6000", "请求限流"),
@@ -17,7 +17,7 @@ public class RouteApplication implements CommandLineRunner{ @@ -17,7 +17,7 @@ public class RouteApplication implements CommandLineRunner{
17 17
18 public static void main(String[] args) { 18 public static void main(String[] args) {
19 SpringApplication.run(RouteApplication.class, args); 19 SpringApplication.run(RouteApplication.class, args);
20 - LOGGER.info("启动 route 成功"); 20 + LOGGER.info("Start cim route success!!!");
21 } 21 }
22 22
23 @Override 23 @Override
@@ -28,7 +28,7 @@ public class CIMServerApplication implements CommandLineRunner{ @@ -28,7 +28,7 @@ public class CIMServerApplication implements CommandLineRunner{
28 28
29 public static void main(String[] args) { 29 public static void main(String[] args) {
30 SpringApplication.run(CIMServerApplication.class, args); 30 SpringApplication.run(CIMServerApplication.class, args);
31 - LOGGER.info("启动 Server 成功"); 31 + LOGGER.info("Start cim server success!!!");
32 } 32 }
33 33
34 @Override 34 @Override
@@ -42,7 +42,7 @@ public class RegistryZK implements Runnable { @@ -42,7 +42,7 @@ public class RegistryZK implements Runnable {
42 if (appConfiguration.isZkSwitch()){ 42 if (appConfiguration.isZkSwitch()){
43 String path = appConfiguration.getZkRoot() + "/ip-" + ip + ":" + cimServerPort + ":" + httpPort; 43 String path = appConfiguration.getZkRoot() + "/ip-" + ip + ":" + cimServerPort + ":" + httpPort;
44 zKit.createNode(path); 44 zKit.createNode(path);
45 - logger.info("注册 zookeeper 成功,msg=[{}]", path); 45 + logger.info("Registry zookeeper success, msg=[{}]", path);
46 } 46 }
47 47
48 48
@@ -73,7 +73,7 @@ public class CIMServer { @@ -73,7 +73,7 @@ public class CIMServer {
73 public void destroy() { 73 public void destroy() {
74 boss.shutdownGracefully().syncUninterruptibly(); 74 boss.shutdownGracefully().syncUninterruptibly();
75 work.shutdownGracefully().syncUninterruptibly(); 75 work.shutdownGracefully().syncUninterruptibly();
76 - LOGGER.info("关闭 cim server 成功"); 76 + LOGGER.info("Close cim server success!!!");
77 } 77 }
78 78
79 79