Closed MoonBow-1 closed 7 months ago
Before:
for (final String ip : ipAddresses) {
final HostIPPayload hostIPPayload = new HostIPPayload(ip, hostId);
final JsonRequest jsonRequest = new JsonRequest(
...
);
client.sendRequest(jsonRequest);
}
After:
for (final String ip : ipAddresses) {
new HostIPPayload(ip, hostId)
.send(client);
}
Methods that send IPs and Interfaces have also been made private
Description
Those classes currently don't have their own send methods, but are sent from
Host
class in a loop