Re: Fwd: Delivery Status Notification (Failure)

2016-11-07 Thread Ken
No worries, thanks for the heads up!

...Ken

On Mon, Nov 7, 2016, 14:37 Andrew Phillips  wrote:

> Hi Ken
>
> > I haven't made a break through on this yet. Any pointers will be very
> > useful.
>
> Thanks for the ping - sorry to hear things are still not working. I hope
> someone on this list with more knowledge of the Openstack provider will
> be able to help; I just wanted to point out that there may be a bit of a
> delay at present as the release of jclouds 2.0 is currently in progress.
>
> Thanks for your patience!
>
> ap
>


Re: Fwd: Delivery Status Notification (Failure)

2016-11-07 Thread Andrew Phillips

Hi Ken


I haven't made a break through on this yet. Any pointers will be very
useful.


Thanks for the ping - sorry to hear things are still not working. I hope 
someone on this list with more knowledge of the Openstack provider will 
be able to help; I just wanted to point out that there may be a bit of a 
delay at present as the release of jclouds 2.0 is currently in progress.


Thanks for your patience!

ap


Re: Fwd: Delivery Status Notification (Failure)

2016-11-07 Thread Ken
Hi,

I haven't made a break through on this yet. Any pointers will be very
useful.
Thanks.


Regards
Kennedy

On Sat, Nov 5, 2016, 17:47 Ken  wrote:

> Hi Andrew,
>
> Thanks, sorry for the longer message before.
> Here is a short code example, directly taken from the examples here.
> 
>
> .
>
>public Swifter() {
>   Iterable modules = ImmutableSet.of(
> new SLF4JLoggingModule());
>
>   String provider = "openstack-swift";
>   String identity = "xx:xx";
>   String credential = "";
>
>   swiftApi = ContextBuilder.newBuilder(provider)
> .endpoint("http://xx.xx.xx:50034/v2.0;)
> .credentials(identity, credential)
> .modules(modules)
> .buildApi(SwiftApi.class);
>}
>
>private void createContainer() {
>   System.out.println("Create Container");
>
>   ContainerApi containerApi = swiftApi.getContainerApi("RegionOne");
>   CreateContainerOptions options = CreateContainerOptions.Builder
> .metadata(ImmutableMap.of(
>   "key1", "value1",
>   "key2", "value2"));
>
>   containerApi.create(CONTAINER_NAME, options);
>
>   System.out.println("  " + CONTAINER_NAME);
>}
>
>private void uploadObjectFromString() {
>   System.out.println("Upload Object From String");
>
>   ObjectApi objectApi = swiftApi.getObjectApi("RegionOne",
> CONTAINER_NAME);
>   Payload payload = newByteSourcePayload(wrap("Hello
> World".getBytes()));
>
>   objectApi.put(OBJECT_NAME, payload,
> PutOptions.Builder.metadata(ImmutableMap.of("key1", "value1")));
>
>   System.out.println("  " + OBJECT_NAME);
>}
>
>
> }
>
>
> On Sat, Nov 5, 2016 at 5:39 PM, Andrew Phillips 
> wrote:
>
> Hi Ken
>
> I want to use Jcloud swift and nova, the connection always time outs
> after
> successfully authenticating...
>
>
> Could you provide a short code sample (with passwords etc. obfuscated) to
> help us understand how the connection is configured?
>
> Regards
>
> ap
>
>
>


Re: Fwd: Delivery Status Notification (Failure)

2016-11-05 Thread Ken
Hi Andrew,

Thanks, sorry for the longer message before.
Here is a short code example, directly taken from the examples here.


.
>
>public Swifter() {
>   Iterable modules = ImmutableSet.of(
> new SLF4JLoggingModule());
>
>   String provider = "openstack-swift";
>   String identity = "xx:xx";
>   String credential = "";
>
>   swiftApi = ContextBuilder.newBuilder(provider)
> .endpoint("http://xx.xx.xx:50034/v2.0;)
> .credentials(identity, credential)
> .modules(modules)
> .buildApi(SwiftApi.class);
>}
>
>private void createContainer() {
>   System.out.println("Create Container");
>
>   ContainerApi containerApi = swiftApi.getContainerApi("RegionOne");
>   CreateContainerOptions options = CreateContainerOptions.Builder
> .metadata(ImmutableMap.of(
>   "key1", "value1",
>   "key2", "value2"));
>
>   containerApi.create(CONTAINER_NAME, options);
>
>   System.out.println("  " + CONTAINER_NAME);
>}
>
>private void uploadObjectFromString() {
>   System.out.println("Upload Object From String");
>
>   ObjectApi objectApi = swiftApi.getObjectApi("RegionOne",
> CONTAINER_NAME);
>   Payload payload = newByteSourcePayload(wrap("Hello
> World".getBytes()));
>
>   objectApi.put(OBJECT_NAME, payload,
> PutOptions.Builder.metadata(ImmutableMap.of("key1", "value1")));
>
>   System.out.println("  " + OBJECT_NAME);
>}
>
>
> }
>

On Sat, Nov 5, 2016 at 5:39 PM, Andrew Phillips 
wrote:

> Hi Ken
>
> I want to use Jcloud swift and nova, the connection always time outs
>> after
>> successfully authenticating...
>>
>
> Could you provide a short code sample (with passwords etc. obfuscated) to
> help us understand how the connection is configured?
>
> Regards
>
> ap
>


Re: Fwd: Delivery Status Notification (Failure)

2016-11-05 Thread Andrew Phillips

Hi Ken


I want to use Jcloud swift and nova, the connection always time outs
after
successfully authenticating...


Could you provide a short code sample (with passwords etc. obfuscated) 
to help us understand how the connection is configured?


Regards

ap