Code Monkey home page Code Monkey logo

legacy-jclouds-examples's Introduction

jclouds

Apache jclouds is an open source multi-cloud toolkit for the Java platform that gives you the freedom to create applications that are portable across clouds while giving you full control to use cloud-specific features.

This repository is archived. Please see apache/jclouds.

License

Copyright (C) 2009-2019 The Apache Software Foundation

Licensed under the Apache License, Version 2.0

legacy-jclouds-examples's People

Contributors

abayer avatar aledsage avatar andreaturli avatar benatkin avatar etoews avatar gaul avatar iocanel avatar mattiasholmqvist avatar milkmansrevenge avatar nacx avatar omixon avatar pandriani avatar richardcloudsoft avatar vijaykiran avatar whitlockjc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

legacy-jclouds-examples's Issues

Provider String error: key [rackspace-cloudservers-uk] not in the list of providers or apis

I used the following provider strings for using the UK servers :

  1. rackspace-cloudservers-uk
  2. cloudfiles-uk

but everytime I get the following error during initializing the connection:
key [rackspace-cloudservers-uk] not in the list of providers or apis: {apis=[cloudfiles, transient, openstack-keystone, swift, swift-keystone]}

please help me with this provider string.

thnx.

Illegal Argument Exception when using CommonSwiftClient for aws-s3 provider

I am using

RestContext<CommonSwiftClient, CommonSwiftAsyncClient>

for provider = "aws-s3"

and I get an error:

java.lang.IllegalArgumentException: backend type: org.jclouds.rest.RestContext<org.jclouds.aws.s3.AWSS3Client, org.jclouds.aws.s3.AWSS3AsyncClient> not assignable from org.jclouds.rest.RestContext<org.jclouds.cloudfiles.CloudFilesClient, org.jclouds.cloudfiles.CloudFilesAsyncClient>

I have the following code for initializing cloud connection:

private BlobStore                                               storage;
    private RestContext<CommonSwiftClient, CommonSwiftAsyncClient>  swift;
    private CloudFilesClient                                        fileClient;

final String provider = "aws-s3";
        final BlobStoreContext context = ContextBuilder.newBuilder(provider).credentials(FolderSync.KEY,
                FolderSync.SECRETKEY).buildView(BlobStoreContext.class);
        this.storage = context.getBlobStore();
        this.swift = context.unwrap();
        this.fileClient = context.unwrap(CloudFilesApiMetadata.CONTEXT_TOKEN).getApi();

this code is working perfectly for rackspace cloude files server with provider string = "cloudfiles-uk"

Please suggest if I am missing something.

It is a maven project with the following dependencies:

<dependency>
            <groupId>org.jclouds</groupId>
            <artifactId>jclouds-allcompute</artifactId>
            <version>1.5.2</version>
        </dependency>
        <dependency>
            <groupId>org.jclouds</groupId>
            <artifactId>jclouds-allblobstore</artifactId>
            <version>1.5.2</version>
        </dependency>
        <dependency> 
            <groupId>org.jclouds.provider</groupId>
            <artifactId>cloudservers-uk</artifactId>
            <version>1.5.1</version>
        </dependency>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.