Quellcode durchsuchen

update its-cluster

HANTE vor 2 Monaten
Ursprung
Commit
323c69b5ce

+ 20 - 0
its-cluster/src/main/java/com/its/common/cluster/vo/AbstractClusterConfig.java

@@ -34,6 +34,26 @@ public abstract class AbstractClusterConfig {
 //        loadClusterConfig();
     }
 
+    public void loggingInfo() {
+        log.info("Cluster config enabled: {}", this.enabled);
+        log.info("                    id: {}", this.id);
+        log.info("                master: {}", this.master);
+        log.info("           syncSeconds: {}", this.syncSeconds);
+        log.info("                    ip: {}", this.ip);
+        log.info("                  port: {}", this.port);
+        log.info("               logging: {}", this.logging);
+        log.info("         packetLogging: {}", this.packetLogging);
+        log.info("                  node: {} EA.", this.nodes.size());
+        for  (ClusterNode node : this.nodes) {
+            log.info("  ----------------node id: {}", node.getId());
+            log.info("                   master: {}", node.isMaster());
+            log.info("              syncSeconds: {}", node.getSyncSeconds());
+            log.info("                       ip: {}", node.getIp());
+            log.info("                     port: {}", node.getPort());
+            log.info("    logging/packetLogging: {}/{}", node.isLogging(), node.isPacketLogging());
+        }
+    }
+
     private void setDefaults() {
         this.master = true;
         this.id = 1;