Skip to content

Instantly share code, notes, and snippets.

@chmouel
Created December 23, 2010 13:59
Show Gist options
  • Save chmouel/753008 to your computer and use it in GitHub Desktop.
Save chmouel/753008 to your computer and use it in GitHub Desktop.
Rackspace UK CloudFiles access
package com.chmouel.ukcloud.test;
import java.util.Properties;
import org.jclouds.blobstore.BlobStoreContext;
import org.jclouds.blobstore.BlobStoreContextFactory;
public class Main {
public static void main(String[] args) {
String container = "rcloudTest";
Properties overrides = new Properties();
overrides.setProperty("cloudfiles.endpoint","https://lon.auth.api.rackspacecloud.com");
overrides.setProperty("cloudfiles.identity","username");
overrides.setProperty("cloudfiles.credential","password");
BlobStoreContext context = new BlobStoreContextFactory().createContext(
"cloudfiles",
overrides
);
context.getBlobStore().createContainerInLocation(null, container);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment