Does JClouds support Vsphere, ravello and nephoscale?

2014-08-05 Thread Xianyi Ye
Hi guys, Is there any one can tell me whether JClouds supports following 3 Cloud platforms? l Vsphere l Ravello l Nephoscale I do appreciate anyone's help. Thanks, Xianyi Ye

Re: Does JClouds support Vsphere, ravello and nephoscale?

2014-08-05 Thread Andrew Phillips
Hi there l Vsphere We currently have an open pull request for that: https://github.com/jclouds/jclouds-labs/pull/61 l Ravello Not at this moment. l Nephoscale Not at this moment. Regards ap

RE: How to write a Blob using an OutputStream?

2014-08-05 Thread Zack Shoylev
Your code seems fine. I have used http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/output/ByteArrayOutputStream.html in the past to convert between stream types, but it seems like it doesn't match your case very well. Note you might have to do writeBytesToBlob() before

[ANNOUNCE] Apache jclouds 1.8.0 released

2014-08-05 Thread Andrew Phillips
The Apache jclouds team is pleased to announce the release of jclouds 1.8.0. 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

RE: How to write a Blob using an OutputStream?

2014-08-05 Thread Zack Shoylev
With buffered streams, for example, close() causes buffers to be flushed (which is technically what you are doing). So yes, you can get some serious exceptions when closing. From: Steve Kingsland [steve.kingsl...@opower.com] Sent: Tuesday, August 05, 2014 9:06 AM

Re: How to write a Blob using an OutputStream?

2014-08-05 Thread Adrian Cole
jclouds currently doesn't have a direct path to the outputstream (or channel), and even if it did, things mentioned by gaul would still be true (ex. may need content-length up front). jclouds doesn't have a direct path to becoming netty, so I wouldn't get too excited about full-bore async.

Re: How to write a Blob using an OutputStream?

2014-08-05 Thread Steve Kingsland
This wasn't terribly complicated to handle using a ByteArrayOutputStream, once I fixed the callers to not closeQuietly()... Here's the calling code, that has to return an OutputStream: public OutputStream getOutputStream(String containerName, String resourceName) throws IOException {