> +         if (ls.getName().startsWith(Constants.NAME)) {
> +            return ls;
> +         }
> +      }
> +
> +      throw new RuntimeException(Constants.NAME + " not found. Run the 
> CreateInstance example first.");
> +   }
> +
> +   private boolean testDatabase(Instance instance) throws TimeoutException {
> +      System.out.println("Connect to database");
> +      
> +      // See http://dev.mysql.com/doc/refman/5.6/en/connector-j-examples.html
> +      Connection conn = null;
> +      try {
> +         
> +         String connString = "jdbc:mysql://" + 
> getVirtualIPv4(getLb().getVirtualIPs()) + 

Explicit StringBuilder is for loops...
I will switch it here for clarity... However I can also put the +es on separate 
lines and do the single-line comments. Going with StringBuilder for now unless 
I hear differently.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/6/files#r4758664

Reply via email to