Package org.jclouds.management.config

Examples of org.jclouds.management.config.ManagementLifecycle


                if (!Strings.isNullOrEmpty(endpoint)) {
                    builder = builder.endpoint(endpoint);
                }

                builder = builder.name(id).modules(ImmutableSet.<Module>of(new Log4JLoggingModule(), new SshjSshClientModule(), new ManagementLifecycle(BaseManagementContext.INSTANCE)));

                if (credentialStore != null) {
                    builder = builder.modules(ImmutableSet.<Module>of(credentialStore));
                }
View Full Code Here


                if (!Strings.isNullOrEmpty(endpoint)) {
                    builder = builder.endpoint(endpoint);
                }
                context = builder.name(id).credentials(identity, credential)
                        .modules(ImmutableSet.<Module>of(new Log4JLoggingModule(), new ManagementLifecycle(BaseManagementContext.INSTANCE)))
                        .overrides(props)
                        .build(BlobStoreContext.class);

                BlobStore blobStore = context.getBlobStore();
                newRegistration = bundleContext.registerService(
View Full Code Here

   @Override
   public Context createContext(String id, String name, String identity, String credential, String endpoint, String overrides) throws IOException {
      return ToContext.INSTANCE.apply(
              ContextBuilder.newBuilder(id).name(name).credentials(identity, credential).endpoint(endpoint)
                      .modules(ImmutableSet.of(new ManagementLifecycle(BaseManagementContext.INSTANCE)))
                      .overrides(stringToProperties(overrides))
                      .build()
      );
   }
View Full Code Here

   @Override
   public Context createContext(String id, String name, String identity, String credential, String endpoint, String overrides) throws IOException {
      return ToContext.INSTANCE.apply(
              ContextBuilder.newBuilder(id).name(name).credentials(identity, credential).endpoint(endpoint)
                      .modules(ImmutableSet.of(new ManagementLifecycle(BaseManagementContext.INSTANCE)))
                      .overrides(stringToProperties(overrides))
                      .build()
      );
   }
View Full Code Here

                builder = builder.endpoint(endpoint);
            }

            builder = builder.credentials(identity, credential);
            builder = builder.overrides(props);
            builder = builder.modules(ImmutableSet.<Module>of(new ManagementLifecycle(BaseManagementContext.INSTANCE)));
            builder = builder.name(providerId).modules(ImmutableSet.<Module>of(new Log4JLoggingModule(), new SshjSshClientModule()));
           
            ComputeServiceContext context = builder.build(ComputeServiceContext.class);
           
            return context.getComputeService();
View Full Code Here

TOP

Related Classes of org.jclouds.management.config.ManagementLifecycle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.