> + }
> +
> + /**
> + * @return LoadBalancer The LoadBalancer created in this example
> + */
> + private LoadBalancer getLb() {
> + for (LoadBalancer ls : lbApi.list().concat()) {
> + 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 {
It does not require tables to be created; instead it just makes the db engine
do a simple operation and return something. If it works, the database is
working.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/6/files#r4754554