Package org.jclouds.blobstore

Examples of org.jclouds.blobstore.BlobStoreContextFactory


    public void init() {
        try {
            if (blobStore == null) {
                if (context == null) {
                    context = new BlobStoreContextFactory().createContext(provider, identity, credential);
                }
                blobStore = context.getBlobStore();
                signIn();
            }
        } catch (Exception ex) {
View Full Code Here


    @EndpointInject(uri = "mock:result-bar")
    protected MockEndpoint resultBar;

    @BeforeClass
    public static void setUpClass() throws Exception {
        BlobStoreContext context = new BlobStoreContextFactory().createContext("transient", "id", "credential");
        context.getBlobStore().createContainerInLocation(null, "foo");
        context.getBlobStore().createContainerInLocation(null, "bar");
    }
View Full Code Here

      try {
         if (constructInternalBlobstores) {
            // add an executor as a constructor param to
            // EnterpriseConfigurationModule, pass
            // property overrides instead of Properties()
            ctx = new BlobStoreContextFactory().createContext(cfg.getCloudService(), cfg
                  .getIdentity(), cfg.getPassword(), ImmutableSet.of(
                  new EnterpriseConfigurationModule(), new Log4JLoggingModule()),
                                                              new Properties());
            blobStore = ctx.getBlobStore();
            asyncBlobStore = ctx.getAsyncBlobStore();
View Full Code Here

    public static final String BLOB_PROVIDER = "whirr.blobstore.provider";
    public static final String BLOB_CONTAINER = "whirr.blobstore.container";
   
    private static BlobStoreContext getContext(Configuration config, ClusterSpec spec)
    {
        return new BlobStoreContextFactory().createContext(getProvider(config), spec.getIdentity(), spec.getCredential());
    }
View Full Code Here

    public void init() {
        try {
            if (blobStore == null) {
                if (context == null) {
                    context = new BlobStoreContextFactory().createContext(provider, identity, credential);
                }
                blobStore = context.getBlobStore();
                signIn();
            }
        } catch (Exception ex) {
View Full Code Here

    /**
     * Strategy to perform any pre setup, before {@link org.apache.camel.CamelContext} is created
     */
    @Override
    protected void doPreSetup() throws Exception {
        BlobStoreContextFactory contextFactory = new BlobStoreContextFactory();
        BlobStoreContext blobStoreContext = contextFactory.createContext("transient", "identity", "credential");
        BlobStore blobStore = blobStoreContext.getBlobStore();
        blobStore.createContainerInLocation(null, TEST_CONTAINER);
        blobStore.clearContainer(TEST_CONTAINER);
    }
View Full Code Here

import org.jclouds.blobstore.BlobStoreContextFactory;

public class BlobStoreContextBuilder {

  public static BlobStoreContext build(final ClusterSpec spec) {
    return build(new BlobStoreContextFactory(), spec);
  }
View Full Code Here

    /**
     * Strategy to perform any pre setup, before {@link org.apache.camel.CamelContext} is created
     */
    @Override
    protected void doPreSetup() throws Exception {
        BlobStoreContextFactory contextFactory = new BlobStoreContextFactory();
        BlobStoreContext blobStoreContext = contextFactory.createContext("transient", "identity", "credential");
        BlobStore blobStore = blobStoreContext.getBlobStore();
        blobStore.createContainerInLocation(null, TEST_CONTAINER);
        blobStore.clearContainer(TEST_CONTAINER);
    }
View Full Code Here

    /**
     * Strategy to perform any pre setup, before {@link org.apache.camel.CamelContext} is created
     */
    @Override
    protected void doPreSetup() throws Exception {
        BlobStoreContextFactory contextFactory = new BlobStoreContextFactory();
        BlobStoreContext blobStoreContext = contextFactory.createContext("transient", "identity", "credential");
        BlobStore blobStore = blobStoreContext.getBlobStore();
        blobStore.createContainerInLocation(null, TEST_CONTAINER);
        blobStore.clearContainer(TEST_CONTAINER);
    }
View Full Code Here

    @EndpointInject(uri = "mock:result-bar")
    protected MockEndpoint resultBar;

    @BeforeClass
    public static void setUpClass() throws Exception {
        BlobStoreContext context = new BlobStoreContextFactory().createContext("transient", "id", "credential");
        context.getBlobStore().createContainerInLocation(null, "foo");
        context.getBlobStore().createContainerInLocation(null, "bar");
    }
View Full Code Here

TOP

Related Classes of org.jclouds.blobstore.BlobStoreContextFactory

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.