@Test public void testGetHost() { System.out.println("getHost"); String hostname = "asok10"; DataGatherer instance = getDataGatherer(); Host expResult = CHOSEN_HOST; Host result = instance.getHost(hostname); assertEquals(expResult, result); }
public Host getHost(String hostname) { return knownHosts.get(hostname); }
DataGatherer implements Runnable { public Host getHost(String hostname) { return knownHosts.get(hostname); } }
DataGatherer implements Runnable { public Host getHost(String hostname) { return knownHosts.get(hostname); } DataGatherer(HostDataSource datasource, DatabaseConnector connector, Calibrator calibrator); }
DataGatherer implements Runnable { public Host getHost(String hostname) { return knownHosts.get(hostname); } DataGatherer(HostDataSource datasource, DatabaseConnector connector, Calibrator calibrator); void stop(); double getGeneralPurposeHostsPowerConsumption(); @Override void run(); void setRule(EnergyShareRule rule); HashMap<String, Host> getHostList(); HashMap<String, GeneralPurposePowerConsumer> getGeneralPurposeHostList(); Host getHost(String hostname); HashMap<String, VmDeployed> getVmList(); HashSet<VmDeployed> getVmList(String deploymentId); VmDeployed getVm(String name); VmDeployed getVm(int vmId); boolean setVm(VmDeployed vm); ArrayList<VmDeployed> getVMsOnHost(Host host); ArrayList<VmDeployed> getVMsOnHost(Host host, List<VmDeployed> activeVMs); void setPerformDataGathering(boolean performDataGathering); boolean performDataGathering(); }
DataGatherer implements Runnable { public Host getHost(String hostname) { return knownHosts.get(hostname); } DataGatherer(HostDataSource datasource, DatabaseConnector connector, Calibrator calibrator); void stop(); double getGeneralPurposeHostsPowerConsumption(); @Override void run(); void setRule(EnergyShareRule rule); HashMap<String, Host> getHostList(); HashMap<String, GeneralPurposePowerConsumer> getGeneralPurposeHostList(); Host getHost(String hostname); HashMap<String, VmDeployed> getVmList(); HashSet<VmDeployed> getVmList(String deploymentId); VmDeployed getVm(String name); VmDeployed getVm(int vmId); boolean setVm(VmDeployed vm); ArrayList<VmDeployed> getVMsOnHost(Host host); ArrayList<VmDeployed> getVMsOnHost(Host host, List<VmDeployed> activeVMs); void setPerformDataGathering(boolean performDataGathering); boolean performDataGathering();  }