> + }
> +
> + private void createDatabase(Instance instance) throws TimeoutException {
> + System.out.println("Create Database");
> +
> + boolean result = databaseApi.create(Constants.NAME);
> + System.out.println(" " + result);
> + }
> +
> + /**
> + * Always close your service when you're done with it.
> + */
> + @SuppressWarnings("deprecation")
> + public void close() {
> + closeQuietly(api);
> + }
I was talking to Everett about that. This is consistent with the other examples
- the idea is to keep the code modular and following best practices so users
can copy-paste and then just add their own code without refactoring too much.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/6/files#r4639805