From user-return-2889-archive-asf-public=cust-asf.ponee.io@jclouds.apache.org Fri Mar 15 13:44:22 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 58D53180627 for ; Fri, 15 Mar 2019 14:44:22 +0100 (CET) Received: (qmail 78722 invoked by uid 500); 15 Mar 2019 13:44:21 -0000 Mailing-List: contact user-help@jclouds.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@jclouds.apache.org Delivered-To: mailing list user@jclouds.apache.org Received: (qmail 78712 invoked by uid 99); 15 Mar 2019 13:44:21 -0000 Received: from ui-eu-01.ponee.io (HELO localhost) (176.9.59.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2019 13:44:21 +0000 Content-Type: text/plain; charset=utf-8 From: liyudong123@hotmail.com References: In-Reply-To: x-ponymail-sender: d81c00784eb515383cf26288c55e8299a3a71ffb Message-ID: Date: Fri, 15 Mar 2019 13:44:19 -0000 Subject: Re: How to set local properties in jclouds? X-Mailer: LuaSocket 3.0-rc1 To: MIME-Version: 1.0 x-ponymail-agent: PonyMail Composer/0.3 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 On 2019/03/15 10:38:10, Andrea Turli wrote: > 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 liyudong123@hotmail.com < > liyudong123@hotmail.com> 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 > > >