Skip to content

Commit

Permalink
Remove zeroed sockets_used/sockets_total
Browse files Browse the repository at this point in the history
Values are zeroed following partial removal of the FHC.
  • Loading branch information
essen committed Jun 24, 2024
1 parent 7a262ef commit 178a8fc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
26 changes: 0 additions & 26 deletions src/main/java/com/rabbitmq/http/client/domain/NodeInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ public class NodeInfo {
@JsonProperty("fd_used_details")
private RateDetails fdUsedDetails;

@JsonProperty("sockets_used")
private long socketsUsed;
@JsonProperty("sockets_total")
private long socketsTotal;
@JsonProperty("sockets_used_details")
private RateDetails socketsUsedDetails;

@JsonProperty("mem_used")
private long memoryUsed;
@JsonProperty("mem_limit")
Expand Down Expand Up @@ -174,14 +167,6 @@ public void setFileDescriptorsTotal(long fileDescriptorsTotal) {
this.fileDescriptorsTotal = fileDescriptorsTotal;
}

public long getSocketsUsed() {
return socketsUsed;
}

public void setSocketsUsed(long socketsUsed) {
this.socketsUsed = socketsUsed;
}

public long getSocketsTotal() {
return socketsTotal;
}
Expand Down Expand Up @@ -442,14 +427,6 @@ public void setErlangProcessesUsedDetails(RateDetails erlangProcessesUsedDetails
this.erlangProcessesUsedDetails = erlangProcessesUsedDetails;
}

public RateDetails getSocketsUsedDetails() {
return socketsUsedDetails;
}

public void setSocketsUsedDetails(RateDetails socketsUsedDetails) {
this.socketsUsedDetails = socketsUsedDetails;
}

public String getRatesMode() {
return ratesMode;
}
Expand Down Expand Up @@ -483,9 +460,6 @@ public String toString() {
", fileDescriptorsUsed=" + fileDescriptorsUsed +
", fileDescriptorsTotal=" + fileDescriptorsTotal +
", fdUsedDetails=" + fdUsedDetails +
", socketsUsed=" + socketsUsed +
", socketsTotal=" + socketsTotal +
", socketsUsedDetails=" + socketsUsedDetails +
", memoryUsed=" + memoryUsed +
", memoryLimit=" + memoryLimit +
", memoryAlarmActive=" + memoryAlarmActive +
Expand Down
1 change: 0 additions & 1 deletion src/test/groovy/com/rabbitmq/http/client/ClientSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3075,7 +3075,6 @@ class ClientSpec extends Specification {
protected static void verifyNode(NodeInfo node) {
assert node != null
assert node.name != null
assert node.socketsUsed <= node.socketsTotal
assert node.erlangProcessesUsed <= node.erlangProcessesTotal
assert node.erlangRunQueueLength >= 0
assert node.memoryUsed <= node.memoryLimit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2632,7 +2632,6 @@ class ReactorNettyClientSpec extends Specification {
protected static void verifyNode(NodeInfo node) {
assert node != null
assert node.name != null
assert node.socketsUsed <= node.socketsTotal
assert node.erlangProcessesUsed <= node.erlangProcessesTotal
assert node.erlangRunQueueLength >= 0
assert node.memoryUsed <= node.memoryLimit
Expand Down

0 comments on commit 178a8fc

Please sign in to comment.