Package org.jclouds.logging.slf4j.config

Examples of org.jclouds.logging.slf4j.config.SLF4JLoggingModule


         protected LoadingCache<String, Set<FirewallRule>> getFirewallRulesByVirtualMachine(
            GetFirewallRulesByVirtualMachine getFirewallRules) {
            return CacheBuilder.newBuilder().build(getFirewallRules);
         }
      };
      adapter = Guice.createInjector(module, new SLF4JLoggingModule()).getInstance(
            CloudStackComputeServiceAdapter.class);

      keyPairName = prefix + "-adapter-test-keypair";
      keyPair = ComputeTestUtils.setupKeyPair();
View Full Code Here


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

        builder = builder.name(name).modules(ImmutableSet.<Module>of(new SLF4JLoggingModule()));
        builder = builder.name(name).credentials(clientName, clientCredential).overrides(chefConfig);

        ChefContext context = builder.build(ChefContext.class);
        ChefService service = context.getChefService();
        return service;
View Full Code Here

      return new SshjSshClientModule();
   }

   @Override
   protected LoggingModule getLoggingModule() {
      return new SLF4JLoggingModule();
   }
View Full Code Here

   ComputeServiceContext context;

   @BeforeClass
   public void setUp() {
      context = ContextBuilder.newBuilder("virtualbox").modules(
               ImmutableSet.<Module> of(new SLF4JLoggingModule(), new SshjSshClientModule())).build(
               ComputeServiceContext.class);
   }
View Full Code Here

      return overrides;
   }

   @Override
   protected LoggingModule getLoggingModule() {
      return new SLF4JLoggingModule();
   }
View Full Code Here

      return overrides;
   }

   @Override
   protected LoggingModule getLoggingModule() {
      return new SLF4JLoggingModule();
   }
View Full Code Here

            properties.put(entry.getKey(), entry.getValue());
        }

        // set modules
        Iterable<Module> modules =
            ImmutableSet.<Module> of(new SshjSshClientModule(), new SLF4JLoggingModule(),
                                     new EnterpriseConfigurationModule());

        // build context
        ContextBuilder builder =
            ContextBuilder.newBuilder(iaas.getProvider())
View Full Code Here

    //TODO: does all of this behavior belong on AWSClient?

    public S3TestUtils(ConnectionCredentials connectionCredentials) {
        S3BlobStoreContext blobStoreContext = ContextBuilder.newBuilder("aws-s3")
                .credentials(connectionCredentials.getIdentity(), connectionCredentials.getCredential())
                .modules(ImmutableSet.<Module>of(new SLF4JLoggingModule()))
                .buildView(S3BlobStoreContext.class);
        s3BlobStore = blobStoreContext.getBlobStore();
    }
View Full Code Here

            try {
                computeServiceContext = ContextBuilder.newBuilder("aws-ec2")
                                                      .credentials(username, password)
                                                      .modules(ImmutableSet.<Module>of(
                                                              new SshjSshClientModule(),
                                                              new SLF4JLoggingModule()))
                                                      .overrides(overrides)
                                                      .buildView(ComputeServiceContext.class);

                // since the compute service context doesn't try to auth against AWS until it
                // needs to, make a call to listNodes() to force the auth.
View Full Code Here

            }

            try {
                blobStoreContext = ContextBuilder.newBuilder("aws-s3")
                                                 .credentials(username, password)
                                                 .modules(ImmutableSet.<Module>of(new SLF4JLoggingModule()))
                                                 .buildView(BlobStoreContext.class);
            } catch (AuthorizationException ae) {
                throw new InvalidCredentialsException(ae);
            }
        }
View Full Code Here

TOP

Related Classes of org.jclouds.logging.slf4j.config.SLF4JLoggingModule

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.