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 5
5
6
6
import org .springframework .util .Assert ;
7
7
8
- public class Node {
8
+ import com .studiomediatech .queryresponse .util .Logging ;
9
+
10
+ public class Node implements Logging {
9
11
10
12
public static final Comparator <Node > SORT = Comparator .comparing (Node ::getName ).thenComparing (Node ::getUUID );
11
13
@@ -35,6 +37,8 @@ public Node update(Node other) {
35
37
36
38
Assert .isTrue (other .uuid .equals (this .uuid ), "Must be same node." );
37
39
40
+ log ().info ("Updating {} with {}" , this , other );
41
+
38
42
this .host = other .host ;
39
43
this .name = other .name ;
40
44
this .uptime = other .uptime ;
@@ -48,28 +52,40 @@ public String toString() {
48
52
return "Node [uuid=%s]" .formatted (uuid );
49
53
}
50
54
51
- public UUID getUUID () {
52
- return uuid ;
53
- }
54
-
55
- private String getName () {
55
+ public String getName () {
56
56
return name ;
57
57
}
58
58
59
59
public void setName (String name ) {
60
60
this .name = name ;
61
61
}
62
62
63
+ public String getPid () {
64
+ return pid ;
65
+ }
66
+
63
67
public void setPid (String pid ) {
64
68
this .pid = pid ;
65
69
}
66
70
71
+ public String getHost () {
72
+ return host ;
73
+ }
74
+
67
75
public void setHost (String host ) {
68
76
this .host = host ;
69
77
}
70
78
79
+ public String getUptime () {
80
+ return uptime ;
81
+ }
82
+
71
83
public void setUptime (String uptime ) {
72
84
this .uptime = uptime ;
73
85
}
74
86
87
+ public UUID getUUID () {
88
+ return uuid ;
89
+ }
90
+
75
91
}
You can’t perform that action at this time.
0 commit comments