> +        String service = 
> groupNamingConvention.createWithoutPrefix().extractGroup(id);
> +        String name = service == null ? id : id.substring(service.length() + 
> 1);
> +        String deploymentName = 
> client.getVirtualMachineApi().getDeploymentBySlot(service, 
> DeploymentSlot.Production).getName();
> +        client.getVirtualMachineApi().startVirtualMachine(service, 
> deploymentName, name);
> +    }
> +
> +    @Override
> +    public void suspendNode(String id) {
> +        String service = 
> groupNamingConvention.createWithoutPrefix().extractGroup(id);
> +        String name = service == null ? id : id.substring(service.length() + 
> 1);
> +        String deploymentName = 
> client.getVirtualMachineApi().getDeploymentBySlot(service, 
> DeploymentSlot.Production).getName();
> +        VirtualMachineShutdownParameters parameters = new 
> VirtualMachineShutdownParameters();
> +        client.getVirtualMachineApi().shutdownVirtualMachine(service, 
> deploymentName, name, parameters);
> +    }
> +
> +    private Function<String, Long> toLong() {

Remove if unused.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/132/files#r24749355

Reply via email to