> + */
> + private Instance getInstance() {
> + for (Instance instance: instanceApi.list()) {
> + if (instance.getName().startsWith(Constants.NAME)) {
> + return instanceApi.get(instance.getId());
> + }
> + }
> +
> + throw new RuntimeException(Constants.NAME + " not found. Run the
> CreateInstance example first.");
> + }
> +
> + /**
> + * AddNodes specify the nodes (Cloud Servers) that requests will be sent
> to by the Load Balancer.
> + *
> + */
> + private Set<AddNode> createNodeRequests() {
This method should be named addNodesOfDatabaseInstances() or something like
that.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/6/files#r4753260