@Override protected void azureNodeAction(NodeActionEvent e) throws AzureCmdException { virtualMachine.start(); refreshItems(); }
@Override public Void call() throws Exception { try { vm.start(); } catch (CloudException e) { log.error("Error starting " + vm.resourceGroupName() + " " + vm.name() + ": " + e.getMessage(), e); throw new RuntimeException(e); } catch (IOException e) { log.error("Error starting " + vm.resourceGroupName() + " " + vm.name() + ": " + e.getMessage(), e); throw new RuntimeException(e); } return null; } }));
azureClient.virtualMachines().getByResourceGroup(agent.getResourceGroupName(), agent.getNodeName()).start(); successful = true; // may be we can just return } catch (Exception e) {