Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7724517374 for ; Wed, 8 Apr 2015 09:17:45 +0000 (UTC) Received: (qmail 78591 invoked by uid 500); 8 Apr 2015 09:17:36 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 78558 invoked by uid 500); 8 Apr 2015 09:17:36 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 78544 invoked by uid 99); 8 Apr 2015 09:17:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2015 09:17:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 08 Apr 2015 09:17:33 +0000 Received: (qmail 77938 invoked by uid 99); 8 Apr 2015 09:17:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2015 09:17:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EC25AE2F2B; Wed, 8 Apr 2015 09:17:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.incubator.apache.org Date: Wed, 08 Apr 2015 09:17:22 -0000 Message-Id: In-Reply-To: <123deefc341a4d3d97fe69dd0888bfff@git.apache.org> References: <123deefc341a4d3d97fe69dd0888bfff@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [11/16] incubator-ignite git commit: # Minor code cleanup. X-Virus-Checked: Checked by ClamAV on apache.org # Minor code cleanup. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/76f8049c Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/76f8049c Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/76f8049c Branch: refs/heads/ignite-694 Commit: 76f8049c2124b965d142f8dc781fad2ff20419d1 Parents: cbab850 Author: AKuznetsov Authored: Wed Apr 8 14:38:10 2015 +0700 Committer: AKuznetsov Committed: Wed Apr 8 14:38:10 2015 +0700 ---------------------------------------------------------------------- .../visor/commands/cache/VisorCacheClearCommand.scala | 3 +-- .../src/main/scala/org/apache/ignite/visor/visor.scala | 12 ++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/76f8049c/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheClearCommand.scala ---------------------------------------------------------------------- diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheClearCommand.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheClearCommand.scala index f012b19..379b566 100644 --- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheClearCommand.scala +++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheClearCommand.scala @@ -93,8 +93,7 @@ class VisorCacheClearCommand { case Some(s) if s.startsWith("@") => warn("Can't find cache variable with specified name: " + s, - "Type 'cache' to see available cache variables." - ) + "Type 'cache' to see available cache variables.") break() http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/76f8049c/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala ---------------------------------------------------------------------- diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala index 5710458..33ba976 100644 --- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala +++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala @@ -1820,23 +1820,23 @@ object visor extends VisorTag { /** * Guards against invalid percent readings. * - * @param v Value in '%' to guard. Any value below `0` and greater than `100` - * will return `` string. + * @param v Value in '%' to guard. + * @return Percent as string. Any value below `0` and greater than `100` will return `<n/a>` string. */ def safePercent(v: Double): String = if (v < 0 || v > 100) NA else formatDouble(v) + " %" /** Convert to task argument. */ def emptyTaskArgument[A](nid: UUID): VisorTaskArgument[Void] = new VisorTaskArgument(nid, false) - def emptyTaskArgument[A](nids: Iterable[UUID]): VisorTaskArgument[Void] = new VisorTaskArgument(new JavaHashSet(nids), - false) + def emptyTaskArgument[A](nids: Iterable[UUID]): VisorTaskArgument[Void] + = new VisorTaskArgument(new JavaHashSet(nids), false) /** Convert to task argument. */ def toTaskArgument[A](nid: UUID, arg: A): VisorTaskArgument[A] = new VisorTaskArgument(nid, arg, false) /** Convert to task argument. */ - def toTaskArgument[A](nids: Iterable[UUID], arg: A): VisorTaskArgument[A] = new VisorTaskArgument( - new JavaHashSet(nids), arg, false) + def toTaskArgument[A](nids: Iterable[UUID], arg: A): VisorTaskArgument[A] + = new VisorTaskArgument(new JavaHashSet(nids), arg, false) def compute(nid: UUID): IgniteCompute = ignite.compute(ignite.cluster.forNodeId(nid)).withNoFailover()