Skip to content

Commit 0abd501

Browse files
committed
Remove final mutable state from NodeStatus
1 parent d388aa8 commit 0abd501

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

java/server/src/org/openqa/selenium/grid/data/NodeStatus.java

-13
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public class NodeStatus {
4545
private final Duration heartbeatPeriod;
4646
private final String version;
4747
private final Map<String, String> osInfo;
48-
private long touched = System.currentTimeMillis();
4948

5049
public NodeStatus(
5150
NodeId nodeId,
@@ -177,14 +176,6 @@ public Map<String, String> getOsInfo() {
177176
return osInfo;
178177
}
179178

180-
public long getTouched() {
181-
return touched;
182-
}
183-
184-
public void setTouched(long touched) {
185-
this.touched = touched;
186-
}
187-
188179
public float getLoad() {
189180
float inUse = slots.parallelStream()
190181
.filter(slot -> slot.getSession() != null)
@@ -201,10 +192,6 @@ public long getLastSessionCreated() {
201192
.orElse(0);
202193
}
203194

204-
public void touch() {
205-
touched = System.currentTimeMillis();
206-
}
207-
208195
@Override
209196
public boolean equals(Object o) {
210197
if (!(o instanceof NodeStatus)) {

0 commit comments

Comments
 (0)