@Test public void testGetVmByName() { System.out.println("getVmByName"); String name = VM_NAME; ZabbixDataSourceAdaptor instance = new ZabbixDataSourceAdaptor(); VmDeployed result = instance.getVmByName(name); assert (result != null); System.out.println("Name: " + result.getName()); System.out.println("Id: " + result.getId()); System.out.println("Created: " + result.getCreated()); System.out.println("CPU Count: " + result.getCpus()); System.out.println("Disks GB: " + result.getDiskGb()); System.out.println("Memory Mb: " + result.getRamMb()); System.out.println("State: " + result.getState()); }
@Override public VmDeployed getVmByName(String name) { Host host = client.getHostByName(name); return convertToVm(host, client.getItemsFromHost(name), null); }
ZabbixDataSourceAdaptor implements HostDataSource { @Override public VmDeployed getVmByName(String name) { Host host = client.getHostByName(name); return convertToVm(host, client.getItemsFromHost(name), null); } }
ZabbixDataSourceAdaptor implements HostDataSource { @Override public VmDeployed getVmByName(String name) { Host host = client.getHostByName(name); return convertToVm(host, client.getItemsFromHost(name), null); }  }
ZabbixDataSourceAdaptor implements HostDataSource { @Override public VmDeployed getVmByName(String name) { Host host = client.getHostByName(name); return convertToVm(host, client.getItemsFromHost(name), null); }  static void main(String[] args); @Override eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host getHostByName(String hostname); @Override GeneralPurposePowerConsumer getGeneralPowerConsumerByName(String hostname); @Override VmDeployed getVmByName(String name); @Override List<eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host> getHostList(); List<eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host> getHostList(String groupName); @Override List<GeneralPurposePowerConsumer> getGeneralPowerConsumerList(); @Override List<VmDeployed> getVmList(); List<VmDeployed> getVmList(String groupName); @Override List<EnergyUsageSource> getHostAndVmList(); @Override List<HostMeasurement> getHostData(); @Override HostMeasurement getHostData(eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host); @Override List<HostMeasurement> getHostData(List<eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host> hostList); @Override List<VmMeasurement> getVmData(); @Override VmMeasurement getVmData(VmDeployed vm); @Override List<VmMeasurement> getVmData(List<VmDeployed> vmList); ZabbixClient getClient(); void setClient(ZabbixClient client); @Override CurrentUsageRecord getCurrentEnergyUsage(eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host); @Override double getLowestHostPowerUsage(eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host); @Override double getHighestHostPowerUsage(eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host); @Override double getCpuUtilisation(eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host, int lastNSeconds); ZabbixHostVMFilter getHostFilter(); void setHostFilter(ZabbixHostVMFilter hostFilter); }
ZabbixDataSourceAdaptor implements HostDataSource { @Override public VmDeployed getVmByName(String name) { Host host = client.getHostByName(name); return convertToVm(host, client.getItemsFromHost(name), null); }  static void main(String[] args); @Override eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host getHostByName(String hostname); @Override GeneralPurposePowerConsumer getGeneralPowerConsumerByName(String hostname); @Override VmDeployed getVmByName(String name); @Override List<eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host> getHostList(); List<eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host> getHostList(String groupName); @Override List<GeneralPurposePowerConsumer> getGeneralPowerConsumerList(); @Override List<VmDeployed> getVmList(); List<VmDeployed> getVmList(String groupName); @Override List<EnergyUsageSource> getHostAndVmList(); @Override List<HostMeasurement> getHostData(); @Override HostMeasurement getHostData(eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host); @Override List<HostMeasurement> getHostData(List<eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host> hostList); @Override List<VmMeasurement> getVmData(); @Override VmMeasurement getVmData(VmDeployed vm); @Override List<VmMeasurement> getVmData(List<VmDeployed> vmList); ZabbixClient getClient(); void setClient(ZabbixClient client); @Override CurrentUsageRecord getCurrentEnergyUsage(eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host); @Override double getLowestHostPowerUsage(eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host); @Override double getHighestHostPowerUsage(eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host); @Override double getCpuUtilisation(eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host, int lastNSeconds); ZabbixHostVMFilter getHostFilter(); void setHostFilter(ZabbixHostVMFilter hostFilter);  }