Package org.jclouds.rest

Examples of org.jclouds.rest.RestContextFactory


   @BeforeGroups(groups = { "live" })
   public void setupClient() {
      setupCredentials();
      Properties overrides = setupProperties();

      context = new RestContextFactory().createContext(provider, ImmutableSet.<Module> of(new Log4JLoggingModule()),
            overrides);

      connection = context.getApi();
      ContainerList response = connection.list();
      for (ResourceInfo resource : response) {
View Full Code Here


   @Override
   public RestContextSpec<PCSClient, PCSAsyncClient> createContextSpec() {
      Properties properties = new Properties();
      properties.setProperty("pcs.endpoint", "http://goo");
      return new RestContextFactory().createContextSpec("pcs", "identity", "credential", properties);
   }
View Full Code Here

      Set<Module> modules = isEnterprise ? ImmutableSet.<Module> of(new NullLoggingModule(),
               new EnterpriseConfigurationModule()) : ImmutableSet
               .<Module> of(new NullLoggingModule());

      RestContext<AzureQueueClient, AzureQueueAsyncClient> context = new RestContextFactory()
               .createContext("azurequeue", account, encodedKey, modules);

      try {
         if (purgeQueues(queueName, context)) {
            logger.info("pausing 60 seconds before recreating queues");
View Full Code Here

   }

   @Override
   public RestContextSpec<SDNClient, SDNAsyncClient> createContextSpec() {
      return new RestContextFactory().createContextSpec("sdn", "user", "password", new Properties());
   }
View Full Code Here

   public void setupClient() {

      String identity = checkNotNull(System.getProperty("jclouds.test.identity"), "jclouds.test.identity");
      String credential = checkNotNull(System.getProperty("jclouds.test.credential"), "jclouds.test.credential");

      this.context = new RestContextFactory().createContext("sdn", identity, credential, ImmutableSet
               .<Module> of(new Log4JLoggingModule()));
      this.connection = context.getApi();
   }
View Full Code Here

   public RestContextSpec<?, ?> createContextSpec() {
      // TODO take this out, when the service is registered in jclouds-core/rest.properties
      Properties restProperties = new Properties();
      restProperties.setProperty(provider + ".contextbuilder", SimpleDBContextBuilder.class.getName());
      restProperties.setProperty(provider + ".propertiesbuilder", SimpleDBPropertiesBuilder.class.getName());
      return new RestContextFactory(restProperties).createContextSpec(provider, "foo", "bar", getProperties());
   }
View Full Code Here

   @BeforeGroups(groups = { "live" })
   public void setupClient() {
      setupCredentials();
      Properties overrides = setupProperties();
      context = new RestContextFactory().createContext(provider, ImmutableSet.<Module> of(new Log4JLoggingModule()),
            overrides);
      this.client = context.getApi();
   }
View Full Code Here

   }

   @Override
   public RestContextSpec<SDNClient, SDNAsyncClient> createContextSpec() {
      return new RestContextFactory().createContextSpec("sdn", "user", "password", new Properties());
   }
View Full Code Here

   }

   @Override
   public RestContextSpec<SDNClient, SDNAsyncClient> createContextSpec() {
      return new RestContextFactory().createContextSpec("sdn", "user", "password", new Properties());
   }
View Full Code Here

TOP

Related Classes of org.jclouds.rest.RestContextFactory

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.