> + */
> + private Instance getInstance() {
> + for (Instance instance: instanceApi.list()) {
> + if (instance.getName().startsWith(Constants.NAME)) {
> + return instance;
> + }
> + }
> +
> + throw new RuntimeException(Constants.NAME + " not found. Run the
> CreateInstance example first.");
> + }
> +
> + private void createDatabase(Instance instance) throws TimeoutException {
> + System.out.println("Create Database");
> +
> + boolean result = databaseApi.create(Constants.NAME);
> + System.out.println(" " + result);
Keeps it consistent with the other examples as well (not just the
clouddatabases ones). I don't really have a preference (besides keeping it
consistent).
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/6/files#r4641777