> +      this.template = this.buildTemplate(this.client.templateBuilder());
> +      this.template.getOptions().inboundPorts(new int[]{22, 
> 8080}).blockOnPort(22, 300).userMetadata(userMetadata).tags(tags);
> +      NodeMetadata node = (NodeMetadata) 
> Iterables.getOnlyElement(this.client.createNodesInGroup(group, 1, 
> this.template));
> +      long createSeconds = watch.elapsed(TimeUnit.SECONDS);
> +      String nodeId = node.getId();
> +      this.checkUserMetadataContains(node, userMetadata);
> +      this.checkTagsInNodeEquals(node, tags);
> +      Logger.getAnonymousLogger().info(String.format("<< available node(%s) 
> os(%s) in %ss", new Object[]{node.getId(), node.getOperatingSystem(), 
> Long.valueOf(createSeconds)}));
> +      watch.reset().start();
> +      this.client.runScriptOnNode(nodeId, new 
> StatementList(Statements.exec("sleep 50"), JettyStatements.install()), 
> nameTask("configure-jetty"));
> +      long configureSeconds = watch.elapsed(TimeUnit.SECONDS);
> +      Logger.getAnonymousLogger().info(String.format("<< configured node(%s) 
> with %s and jetty %s in %ss", new Object[]{nodeId, this.exec(nodeId, "java 
> -fullversion"), this.exec(nodeId, JettyStatements.version()), 
> Long.valueOf(configureSeconds)}));
> +      this.trackAvailabilityOfProcessOnNode(JettyStatements.start(), "start 
> jetty", node);
> +      this.client.runScriptOnNode(nodeId, JettyStatements.stop(), 
> org.jclouds.compute.options.TemplateOptions.Builder.runAsRoot(false).wrapInInitScript(false));
> +      this.trackAvailabilityOfProcessOnNode(JettyStatements.start(), "start 
> jetty", node);
> +   }

Can this test be removed so the one int he parent class is used instead?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/291/files/8a39037237f5cccc7d100bc58a9a82bdb89924b1#r67889780

Reply via email to