答复: How to set local properties in jclouds?

2019年3月15日 06:44:29 -0700

Hi Andrea,
Thank you for your replying. In my case, I need to set different MAX_RETRIES 
for specific POST request.
overrides.setProperty(Constants.PROPERTY_MAX_RETRIES, Integer.toString(100)); 
makes all requests retry for a same number of times.
Could you give me a example on that?
Thanks and best regards,
Yudong
________________________________
发件人: Andrea Turli <[email protected]>
发送时间: 2019年3月15日 18:38
收件人: [email protected]
主题: Re: How to set local properties in jclouds?
Hi Li Yudong,
I think you can do something similar to 
https://github.com/jclouds/jclouds-examples/blob/master/compute-basics/src/main/java/org/jclouds/examples/compute/basics/MainApp.java#L267
adding something like this to the properties overrides you pass to your Context
overrides.setProperty(Constants.PROPERTY_MAX_RETRIES, Integer.toString(100));
HTH,
Andrea
On Fri, Mar 15, 2019 at 11:21 AM 
[email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> wrote:
Hi,
As jclouds Documentation-Configuration describes, properties can be set before 
context built. What about local properties for example I'd like to set 
PROPERTY_MAX_RETRIES for a single command, is that possible?
Thanks
Li Yudong

Reply via email to