@SuppressWarnings("deprecation") @Test public void testMain() { System.out.println("main"); String[] args = null; ZabbixDataSourceAdaptor.main(args); }
public static void main(String[] args) { ZabbixDataSourceAdaptor adaptor = new ZabbixDataSourceAdaptor(); List<eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host> hosts = adaptor.getHostList(); for (eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host : hosts) { System.out.println(host); } System.out.println("----------------"); for (HostMeasurement measurement : adaptor.getHostData(hosts)) { System.out.println(measurement); } System.out.println("----------------"); HostMeasurement measure = adaptor.getHostData(adaptor.getHostByName("asok10")); System.out.println(measure); System.out.println("----------------"); for (eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host : hosts) { System.out.println("Host: " + host.getHostName() + " Watts In Use: " + adaptor.getLowestHostPowerUsage(host)); } }
ZabbixDataSourceAdaptor implements HostDataSource { public static void main(String[] args) { ZabbixDataSourceAdaptor adaptor = new ZabbixDataSourceAdaptor(); List<eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host> hosts = adaptor.getHostList(); for (eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host : hosts) { System.out.println(host); } System.out.println("----------------"); for (HostMeasurement measurement : adaptor.getHostData(hosts)) { System.out.println(measurement); } System.out.println("----------------"); HostMeasurement measure = adaptor.getHostData(adaptor.getHostByName("asok10")); System.out.println(measure); System.out.println("----------------"); for (eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host : hosts) { System.out.println("Host: " + host.getHostName() + " Watts In Use: " + adaptor.getLowestHostPowerUsage(host)); } } }
ZabbixDataSourceAdaptor implements HostDataSource { public static void main(String[] args) { ZabbixDataSourceAdaptor adaptor = new ZabbixDataSourceAdaptor(); List<eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host> hosts = adaptor.getHostList(); for (eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host : hosts) { System.out.println(host); } System.out.println("----------------"); for (HostMeasurement measurement : adaptor.getHostData(hosts)) { System.out.println(measurement); } System.out.println("----------------"); HostMeasurement measure = adaptor.getHostData(adaptor.getHostByName("asok10")); System.out.println(measure); System.out.println("----------------"); for (eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host : hosts) { System.out.println("Host: " + host.getHostName() + " Watts In Use: " + adaptor.getLowestHostPowerUsage(host)); } }  }
ZabbixDataSourceAdaptor implements HostDataSource { public static void main(String[] args) { ZabbixDataSourceAdaptor adaptor = new ZabbixDataSourceAdaptor(); List<eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host> hosts = adaptor.getHostList(); for (eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host : hosts) { System.out.println(host); } System.out.println("----------------"); for (HostMeasurement measurement : adaptor.getHostData(hosts)) { System.out.println(measurement); } System.out.println("----------------"); HostMeasurement measure = adaptor.getHostData(adaptor.getHostByName("asok10")); System.out.println(measure); System.out.println("----------------"); for (eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host : hosts) { System.out.println("Host: " + host.getHostName() + " Watts In Use: " + adaptor.getLowestHostPowerUsage(host)); } }  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 { public static void main(String[] args) { ZabbixDataSourceAdaptor adaptor = new ZabbixDataSourceAdaptor(); List<eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host> hosts = adaptor.getHostList(); for (eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host : hosts) { System.out.println(host); } System.out.println("----------------"); for (HostMeasurement measurement : adaptor.getHostData(hosts)) { System.out.println(measurement); } System.out.println("----------------"); HostMeasurement measure = adaptor.getHostData(adaptor.getHostByName("asok10")); System.out.println(measure); System.out.println("----------------"); for (eu.ascetic.asceticarchitecture.iaas.energymodeller.types.energyuser.Host host : hosts) { System.out.println("Host: " + host.getHostName() + " Watts In Use: " + adaptor.getLowestHostPowerUsage(host)); } }  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);  }