Guest User

Untitled

a guest
Jul 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. java -Dlog4j.configuration=log4j.xml -jar Gateway.jar
  2. // get a context with filesystem that offers the portable BlobStore api
  3. this.__context = new BlobStoreContextFactory().createContext(token.getProviderName(), properties);
  4. // create a container in the default location
  5.  
  6. this.__blobStore = this.__context.getBlobStore();
  7.  
  8.  
  9. if(!this.__blobStore.containerExists(containerName))
  10. {
  11. this.__blobStore.createContainerInLocation(null, containerName);
  12. }
  13.  
  14.  
  15.  
  16. // in case you are passing in configuration such as log4j
  17. Set<Module> wiring = ImmutableSet.<Module> of(new Log4JLoggingModule());
  18.  
  19. // get a context with filesystem that offers the portable BlobStore api
  20. this.__context = new BlobStoreContextFactory().createContext(token.getProviderName(), wiring, properties);
  21. // create a container in the default location
Add Comment
Please, Sign In to add comment