Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- java -Dlog4j.configuration=log4j.xml -jar Gateway.jar
- // get a context with filesystem that offers the portable BlobStore api
- this.__context = new BlobStoreContextFactory().createContext(token.getProviderName(), properties);
- // create a container in the default location
- this.__blobStore = this.__context.getBlobStore();
- if(!this.__blobStore.containerExists(containerName))
- {
- this.__blobStore.createContainerInLocation(null, containerName);
- }
- // in case you are passing in configuration such as log4j
- Set<Module> wiring = ImmutableSet.<Module> of(new Log4JLoggingModule());
- // get a context with filesystem that offers the portable BlobStore api
- this.__context = new BlobStoreContextFactory().createContext(token.getProviderName(), wiring, properties);
- // create a container in the default location
Add Comment
Please, Sign In to add comment