@Test public void testGetEnergyEstimation() { System.out.println("getEnergyEstimation"); RestVMClient instance = new RestVMClient("", ""); Object expResult = null; fail("The test case is a prototype."); }
public <T> T getEnergyEstimation(Class<T> responseType, String vmId, String duration) throws UniformInterfaceException { WebResource resource = webResource; if (duration != null) { resource = resource.queryParam("duration", duration); } resource = resource.path(java.text.MessageFormat.format("{0}/energy-estimation", new Object[]{vmId})); return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_XML).get(responseType); }
RestVMClient { public <T> T getEnergyEstimation(Class<T> responseType, String vmId, String duration) throws UniformInterfaceException { WebResource resource = webResource; if (duration != null) { resource = resource.queryParam("duration", duration); } resource = resource.path(java.text.MessageFormat.format("{0}/energy-estimation", new Object[]{vmId})); return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_XML).get(responseType); } }
RestVMClient { public <T> T getEnergyEstimation(Class<T> responseType, String vmId, String duration) throws UniformInterfaceException { WebResource resource = webResource; if (duration != null) { resource = resource.queryParam("duration", duration); } resource = resource.path(java.text.MessageFormat.format("{0}/energy-estimation", new Object[]{vmId})); return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_XML).get(responseType); } RestVMClient(String applicationName, String deploymentId); }
RestVMClient { public <T> T getEnergyEstimation(Class<T> responseType, String vmId, String duration) throws UniformInterfaceException { WebResource resource = webResource; if (duration != null) { resource = resource.queryParam("duration", duration); } resource = resource.path(java.text.MessageFormat.format("{0}/energy-estimation", new Object[]{vmId})); return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_XML).get(responseType); } RestVMClient(String applicationName, String deploymentId); void setResourcePath(String applicationName, String deploymentId); T getEnergySample(Class<T> responseType, String vmId, String eventId, String startTime, String interval, String endTime); T getPowerConsumption(Class<T> responseType, String vmId, String startTime, String endTime); T getCostEstimation(Class<T> responseType, String vmId, String eventId); T getVM(Class<T> responseType, String vmId); ClientResponse postVM(Object requestEntity); T getEnergyConsumption(Class<T> responseType, String vmId, String startTime, String endTime); ClientResponse deleteVM(String vm_id); T getVMs(Class<T> responseType); T getEnergyEstimation(Class<T> responseType, String vmId, String duration); T getEventPowerConsumption(Class<T> responseType, String vmId, String eventId, String startTime, String endTime); T getPowerEstimationForAnEvent(Class<T> responseType, String vmId, String eventId); T getPowerEstimation(Class<T> responseType, String vmId); T getEventEnergyConsumption(Class<T> responseType, String vmId, String eventId, String startTime, String endTime); T getEnergyEstimationForAnEvent(Class<T> responseType, String vmId, String eventId, String duration); void close(); }
RestVMClient { public <T> T getEnergyEstimation(Class<T> responseType, String vmId, String duration) throws UniformInterfaceException { WebResource resource = webResource; if (duration != null) { resource = resource.queryParam("duration", duration); } resource = resource.path(java.text.MessageFormat.format("{0}/energy-estimation", new Object[]{vmId})); return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_XML).get(responseType); } RestVMClient(String applicationName, String deploymentId); void setResourcePath(String applicationName, String deploymentId); T getEnergySample(Class<T> responseType, String vmId, String eventId, String startTime, String interval, String endTime); T getPowerConsumption(Class<T> responseType, String vmId, String startTime, String endTime); T getCostEstimation(Class<T> responseType, String vmId, String eventId); T getVM(Class<T> responseType, String vmId); ClientResponse postVM(Object requestEntity); T getEnergyConsumption(Class<T> responseType, String vmId, String startTime, String endTime); ClientResponse deleteVM(String vm_id); T getVMs(Class<T> responseType); T getEnergyEstimation(Class<T> responseType, String vmId, String duration); T getEventPowerConsumption(Class<T> responseType, String vmId, String eventId, String startTime, String endTime); T getPowerEstimationForAnEvent(Class<T> responseType, String vmId, String eventId); T getPowerEstimation(Class<T> responseType, String vmId); T getEventEnergyConsumption(Class<T> responseType, String vmId, String eventId, String startTime, String endTime); T getEnergyEstimationForAnEvent(Class<T> responseType, String vmId, String eventId, String duration); void close();  }