()
| 121 | } |
| 122 | |
| 123 | public int getTotalSlots() { |
| 124 | return distributorStatus.getNodes().stream().mapToInt(status -> status.getSlots().size()).sum(); |
| 125 | } |
| 126 | |
| 127 | public int getMaxSession() { |
| 128 | return distributorStatus.getNodes().stream().mapToInt(NodeStatus::getMaxSessionCount).sum(); |