Package org.jclouds.logging.log4j.config

Examples of org.jclouds.logging.log4j.config.Log4JLoggingModule


            }

            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


   @BeforeGroups(groups = "live")
   public void setupClient() throws FileNotFoundException, IOException {
      setupCredentials();
      Properties overrides = setupProperties();
      context = new RestContextFactory().createContext(provider, ImmutableSet.<Module> of(new Log4JLoggingModule(),
               new SshjSshClientModule()), overrides);

      connection = context.getApi();
      keyPair = ComputeTestUtils.setupKeyPair();
   }
View Full Code Here

   public void setupClient() {
      setupCredentials();
      Properties overrides = setupProperties();

      connection = (AzureQueueClient) new RestContextFactory().createContext(provider,
               ImmutableSet.<Module> of(new Log4JLoggingModule()), overrides).getApi();
   }
View Full Code Here

      Properties restProperties = new Properties();
      restProperties.setProperty("boxdotnet.contextbuilder", "org.jclouds.boxdotnet.BoxDotNetContextBuilder");
      restProperties.setProperty("boxdotnet.propertiesbuilder", "org.jclouds.boxdotnet.BoxDotNetPropertiesBuilder");

      context = new RestContextFactory(restProperties).createContext("boxdotnet", identity, credential,
            ImmutableSet.<Module> of(new Log4JLoggingModule()));

      connection = context.getApi();
   }
View Full Code Here

      //TODO take this out, when the service is registered in jclouds-core/rest.properties
      Properties restProperties = new Properties();
      restProperties.setProperty("twitter.contextbuilder", "org.jclouds.twitter.TwitterContextBuilder");
      restProperties.setProperty("twitter.propertiesbuilder", "org.jclouds.twitter.TwitterPropertiesBuilder");

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

      client = context.getApi();
   }
View Full Code Here

         String credential = checkNotNull(
                  System.getProperty("test.credential." + provider),
                  "test.credential." + provider);

         contexts.add(factory.createContext(provider, identity, credential, ImmutableSet
                  .of(new Log4JLoggingModule())));

         urisToTest.add(String.format("blobstore://%s:%s@%s/%s/%s", identity, credential,
                  provider, container, path));

      }
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);

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

      options.authorizePublicKey(keyPair.get("public")).as(AWSEC2TemplateOptions.class);

      ComputeServiceContext noSshContext = null;
      try {
         noSshContext = createView(setupProperties(), ImmutableSet.<Module> of(new Log4JLoggingModule()));

         Set<? extends NodeMetadata> nodes = noSshContext.getComputeService().createNodesInGroup(group, 1, options);

         NodeMetadata first = get(nodes, 0);
         assert first.getCredentials() != null : first;
View Full Code Here

         final List<HttpCommand> commandsInvoked = Lists.newArrayList();
        
         context = createView(
               overrides,
               ImmutableSet.<Module> of(new Log4JLoggingModule(),
                     TrackingJavaUrlHttpCommandExecutorService.newTrackingModule(commandsInvoked)));

         assert context.getComputeService().listAssignableLocations().size() < this.view.getComputeService()
               .listAssignableLocations().size();
View Full Code Here

      RestContextSpec<SDNAuthClient, SDNAuthAsyncClient> contextSpec = contextSpec("test", endpoint, "1", "", identity,
               credential, SDNAuthClient.class, SDNAuthAsyncClient.class);

      context = createContextBuilder(
               contextSpec,
               ImmutableSet.<Module> of(new Log4JLoggingModule(), new ExecutorServiceModule(MoreExecutors
                        .sameThreadExecutor(), MoreExecutors.sameThreadExecutor()))).buildContext();
   }
View Full Code Here

TOP

Related Classes of org.jclouds.logging.log4j.config.Log4JLoggingModule

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.