From user-return-2888-archive-asf-public=cust-asf.ponee.io@jclouds.apache.org Fri Mar 15 10:38:26 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 F3288180627 for ; Fri, 15 Mar 2019 11:38:25 +0100 (CET) Received: (qmail 5222 invoked by uid 500); 15 Mar 2019 10:38:25 -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 5212 invoked by uid 99); 15 Mar 2019 10:38:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2019 10:38:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 87968C21CF for ; Fri, 15 Mar 2019 10:38:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.798 X-Spam-Level: ** X-Spam-Status: No, score=2.798 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Zze4xWigpt3T for ; Fri, 15 Mar 2019 10:38:23 +0000 (UTC) Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id BC80B6110A for ; Fri, 15 Mar 2019 10:38:22 +0000 (UTC) Received: by mail-io1-f45.google.com with SMTP id f6so7807456iop.3 for ; Fri, 15 Mar 2019 03:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=no5VgChxI8yqHiBGbc/NE85KcVdf0J/U9ulTUSJPHY4=; b=FRuKgqwxFWVe/0wUc/2mqdsQxSUr+0YFRxgmu1J7bN/8+Yczx7oD00WxnJJtENpL+7 4wPYr8uFP9uDZNuXjIhL3R1TDRzfuCT92Rz143+IJirBgNtKK1JBICCrQFBUYzo+N+qI 2Rf5ady/ho8DujzhH/YzttAlJofh/Wt9C89voH/PN47dqwKewos5ypfeFboDcME+Q2DR JNlQ5x1SCDgyqa42IoJy634t7OTS3Y1L++8xHEOFIfXJI7c+IhtiHNJKZnP7FimPDdtw aaht+MqTabbYyGHL9mtsVMbKq8U06zxAYvOD9K3RY+1jWqGYfGrc7KUol8ZknZz0KZ0i BgHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=no5VgChxI8yqHiBGbc/NE85KcVdf0J/U9ulTUSJPHY4=; b=VuzV1dIcacuVe5b8cvmoSKLGaEBWsv97wtwh7A23h7KlmMBK5cjulOsnZt27yyiU93 I7cmL3Ez7LkTLhjhQkF756w0LHEnUhA0NkLQr4e5dn/CfSMr9A7yQn+cDY6K5OU4gaTq uXwjuXn1SWbzt77mgrvGh/fTcgdtqUBf3bM/+Ff066FPoLyI/LfiZNELWQOqO3LXv0DX uQ4BeY9p+b0+hZ/JYMp/2zktPTeuqrqOB7LHcR5+A4B6q5JdjqlKjgQsZ/mNknf5rgXe EgsugJxegZ5zuFX4il6498Nj0p+i31jaM3cFbAT/h1rwHSmK0NdmAQN41Xf/5PX9ymOa 58OQ== X-Gm-Message-State: APjAAAWXNzuF1eR5TqmDQrq9mlG0qqAm8Wsk3Focxx3hc8NxoSnfI0kN iEvVOpfQMHcY9MeFf2ISaknOnYt5hrLwLC4ZrRLyK/AURec= X-Google-Smtp-Source: APXvYqwkquWjlW1zehU1im2iYL5O+Chzv0q8rYV0Rf/zvqHpcUQZe+HYJTRCN/yb1CEzwZqjAOElFsd6qE1sZ7URZZ0= X-Received: by 2002:a5e:d803:: with SMTP id l3mr1443079iok.144.1552646301325; Fri, 15 Mar 2019 03:38:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrea Turli Date: Fri, 15 Mar 2019 11:38:10 +0100 Message-ID: Subject: Re: How to set local properties in jclouds? To: user@jclouds.apache.org Content-Type: multipart/alternative; boundary="000000000000409dbd05841fa330" --000000000000409dbd05841fa330 Content-Type: text/plain; charset="UTF-8" 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 > --000000000000409dbd05841fa330 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Li Yudong,


adding something li= ke this to the properties overrides you pass to your Context

overrid= es.setProperty(Constants.PROPERTY_MAX_RETRIES, Integer.toString(100));
<= /div>

HTH,
Andrea

On Fri, Mar 15, 2= 019 at 11:21 AM liyudong123@hotm= ail.com <liyudong123@hotm= ail.com> wrote:
Hi,

As jclouds Documentation-Configuration describes, properties can be set bef= ore 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
--000000000000409dbd05841fa330--