jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From najtmar <notificati...@github.com>
Subject Re: [jclouds-examples] Adding an example to run a simple program on a GCE VM. (#56)
Date Fri, 01 Aug 2014 09:10:46 GMT
> +      } catch (Exception e) {
> +         e.printStackTrace();
> +      } finally {
> +         executeApplication.close();
> +      }
> +   }
> +
> +   public ExecuteApplication(final String serviceAccountEmailAddress, final String serviceAccountKey)
{
> +      // These properties control how often jclouds polls for a status update.
> +      Properties overrides = new Properties();
> +      overrides.setProperty(POLL_INITIAL_PERIOD, POLL_PERIOD_TWENTY_SECONDS);
> +      overrides.setProperty(POLL_MAX_PERIOD, POLL_PERIOD_TWENTY_SECONDS);
> +
> +      Iterable<Module> modules = ImmutableSet.<Module> of(new SshjSshClientModule());
> +
> +      ComputeServiceContext context = ContextBuilder.newBuilder(PROVIDER)

In import static org.jclouds.examples.google.computeengine.Constants.*;

Now importing individual Constants instead of .* 

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/56/files#r15687499
Mime
View raw message