Browse Source

comm state rest api update

hante 6 days ago
parent
commit
4b3b7a00ca

+ 0 - 4
conf/ggits-comm-server.yml

@@ -1,7 +1,3 @@
-spring:
-  profiles:
-    active: prod
-
 server:
   port: 9873
 

+ 0 - 4
conf/ggits-etlp-server.yml

@@ -1,7 +1,3 @@
-spring:
-  profiles:
-    active: prod
-
 server:
   port: 9874
 

+ 2 - 4
conf/sig-comm-server.yml

@@ -1,7 +1,3 @@
-spring:
-  profiles:
-    active: prod
-
 server:
   port: 9871
 
@@ -12,6 +8,8 @@ application:
     bootstrap-servers: 192.168.11.23:9092
     enable-node: false
     enable-sig: false
+  white-list-ips:
+    - 192.168.10.9
 
 logging:
   file:

+ 0 - 4
conf/sig-todp-server.yml

@@ -1,7 +1,3 @@
-spring:
-  profiles:
-    active: prod
-
 server:
   port: 9872
 

+ 1 - 1
ggits-comm-server/src/main/java/com/sig/ggits/comm/server/controller/GgitsCommServerRestController.java

@@ -89,7 +89,7 @@ public class GgitsCommServerRestController {
             total++;
             String commStts = "Offline";
             if (center.isCommOnline()) {
-                commStts = "Online-";
+                commStts = " Online";
                 onLine++;
                 if (center.getRealClusterId() == 1) {
                     node1++;

+ 1 - 1
ggits-tsinfo-server/src/main/java/com/sig/ggits/tsinfo/server/controller/GgitsTsinfoServerRestController.java

@@ -55,7 +55,7 @@ public class GgitsTsinfoServerRestController {
             total++;
             String commStts = "Offline";
             if (center.isCommOnline(this.config.getCommFailSeconds())) {
-                commStts = "Online-";
+                commStts = " Online";
                 onLine++;
             }
             sb.append(String.format("%3d %6.6s%6d%7d   %-7.7s  %-19.19s  %-19.19s  %s",