diff --git a/src/main/java/org/openbaton/drivers/amazon/AmazonDriver.java b/src/main/java/org/openbaton/drivers/amazon/AmazonDriver.java index 6cb6988..5d55a4c 100644 --- a/src/main/java/org/openbaton/drivers/amazon/AmazonDriver.java +++ b/src/main/java/org/openbaton/drivers/amazon/AmazonDriver.java @@ -268,6 +268,14 @@ public BaseVimInstance refresh(BaseVimInstance vimInstance) throws VimDriverExce return (BaseVimInstance) amazon; } + /** + * Waits for instance to go into status "running" + * @param name instance name + * @param vimInstance amazon vim instance + * @return server in status "running" + * @throws VimDriverException + * @throws InterruptedException + */ private Server waitForInstance(String name, BaseVimInstance vimInstance) throws VimDriverException, InterruptedException { int timeOut = Integer.parseInt(properties.getProperty("launchTimeout")); @@ -291,6 +299,11 @@ private Server waitForInstance(String name, BaseVimInstance vimInstance) "Launch Timeout reached, seems that the instance never went into running status"); } + /** + * Associates elastic ips to servers interfaces + * @param client amazon client + * @param server server with iterfaces + */ private void setupInstanceNetwork(AmazonEC2 client, Server server) { List
freeAddresses = getUnallocatedAddresses(client); List