File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed
ui/src/main/java/com/studiomediatech/queryresponse/ui/app/telemetry Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change 55
66import org .springframework .util .Assert ;
77
8- public class Node {
8+ import com .studiomediatech .queryresponse .util .Logging ;
9+
10+ public class Node implements Logging {
911
1012 public static final Comparator <Node > SORT = Comparator .comparing (Node ::getName ).thenComparing (Node ::getUUID );
1113
@@ -35,6 +37,8 @@ public Node update(Node other) {
3537
3638 Assert .isTrue (other .uuid .equals (this .uuid ), "Must be same node." );
3739
40+ log ().info ("Updating {} with {}" , this , other );
41+
3842 this .host = other .host ;
3943 this .name = other .name ;
4044 this .uptime = other .uptime ;
@@ -48,28 +52,40 @@ public String toString() {
4852 return "Node [uuid=%s]" .formatted (uuid );
4953 }
5054
51- public UUID getUUID () {
52- return uuid ;
53- }
54-
55- private String getName () {
55+ public String getName () {
5656 return name ;
5757 }
5858
5959 public void setName (String name ) {
6060 this .name = name ;
6161 }
6262
63+ public String getPid () {
64+ return pid ;
65+ }
66+
6367 public void setPid (String pid ) {
6468 this .pid = pid ;
6569 }
6670
71+ public String getHost () {
72+ return host ;
73+ }
74+
6775 public void setHost (String host ) {
6876 this .host = host ;
6977 }
7078
79+ public String getUptime () {
80+ return uptime ;
81+ }
82+
7183 public void setUptime (String uptime ) {
7284 this .uptime = uptime ;
7385 }
7486
87+ public UUID getUUID () {
88+ return uuid ;
89+ }
90+
7591}
You can’t perform that action at this time.
0 commit comments