You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/04/09 12:13:20 UTC
[22/50] [abbrv] incubator-ignite git commit: # Minor code cleanup.
# 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-673
Commit: 76f8049c2124b965d142f8dc781fad2ff20419d1
Parents: cbab850
Author: AKuznetsov <ak...@gridgain.com>
Authored: Wed Apr 8 14:38:10 2015 +0700
Committer: AKuznetsov <ak...@gridgain.com>
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 `<n/a>` 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()