@Test public void networkLoadHappyPath() { List<NetworkInterfaceLoad> networkInterfaceLoads = provider.networkInterfaceLoads(); assertThat(networkInterfaceLoads.size(), is(2)); }
@Override public List<NetworkInterfaceLoad> networkInterfaceLoads() { return hal.getNetworkIFs().stream() .map(mapToLoad()) .collect(Collectors.toList()); }
DefaultNetworkMetrics implements NetworkMetrics { @Override public List<NetworkInterfaceLoad> networkInterfaceLoads() { return hal.getNetworkIFs().stream() .map(mapToLoad()) .collect(Collectors.toList()); } }
DefaultNetworkMetrics implements NetworkMetrics { @Override public List<NetworkInterfaceLoad> networkInterfaceLoads() { return hal.getNetworkIFs().stream() .map(mapToLoad()) .collect(Collectors.toList()); } protected  DefaultNetworkMetrics(HardwareAbstractionLayer hal, SpeedMeasurementManager speedMeasurementManager); }
DefaultNetworkMetrics implements NetworkMetrics { @Override public List<NetworkInterfaceLoad> networkInterfaceLoads() { return hal.getNetworkIFs().stream() .map(mapToLoad()) .collect(Collectors.toList()); } protected  DefaultNetworkMetrics(HardwareAbstractionLayer hal, SpeedMeasurementManager speedMeasurementManager); @Override List<NetworkInterface> networkInterfaces(); @Override Optional<NetworkInterface> networkInterfaceById(String id); @Override List<NetworkInterfaceLoad> networkInterfaceLoads(); @Override Optional<NetworkInterfaceLoad> networkInterfaceLoadById(String id); }
DefaultNetworkMetrics implements NetworkMetrics { @Override public List<NetworkInterfaceLoad> networkInterfaceLoads() { return hal.getNetworkIFs().stream() .map(mapToLoad()) .collect(Collectors.toList()); } protected  DefaultNetworkMetrics(HardwareAbstractionLayer hal, SpeedMeasurementManager speedMeasurementManager); @Override List<NetworkInterface> networkInterfaces(); @Override Optional<NetworkInterface> networkInterfaceById(String id); @Override List<NetworkInterfaceLoad> networkInterfaceLoads(); @Override Optional<NetworkInterfaceLoad> networkInterfaceLoadById(String id);  }