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 0FCA8189EC for ; Thu, 11 Jun 2015 06:12:51 +0000 (UTC) Received: (qmail 71372 invoked by uid 500); 11 Jun 2015 06:12:51 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 71338 invoked by uid 500); 11 Jun 2015 06:12:50 -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 71329 invoked by uid 99); 11 Jun 2015 06:12:50 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2015 06:12:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7D06EC0940 for ; Thu, 11 Jun 2015 06:12:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.791 X-Spam-Level: * X-Spam-Status: No, score=1.791 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 0008PBnFhE5D for ; Thu, 11 Jun 2015 06:12:36 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 114812765B for ; Thu, 11 Jun 2015 06:12:26 +0000 (UTC) Received: (qmail 69182 invoked by uid 99); 11 Jun 2015 06:12:25 -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; Thu, 11 Jun 2015 06:12:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E33FDE04D7; Thu, 11 Jun 2015 06:12:25 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vozerov@apache.org To: commits@ignite.incubator.apache.org Date: Thu, 11 Jun 2015 06:12:55 -0000 Message-Id: <902ae64ac94b453992cff4794cf78ed7@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [31/50] [abbrv] incubator-ignite git commit: # IGNITE-992 Minor. # IGNITE-992 Minor. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/af120a7a Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/af120a7a Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/af120a7a Branch: refs/heads/ignite-gg-10326 Commit: af120a7ac00e5dd3b591b21f17d2f38d6f93668d Parents: eeae5b7 Author: AKuznetsov Authored: Wed Jun 10 17:38:28 2015 +0700 Committer: AKuznetsov Committed: Wed Jun 10 17:38:28 2015 +0700 ---------------------------------------------------------------------- .../ignite/internal/visor/query/VisorQueryJob.java | 2 +- .../ignite/internal/visor/util/VisorTaskUtils.java | 16 +++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/af120a7a/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryJob.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryJob.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryJob.java index e977d2e..bd9fb1e 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryJob.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryJob.java @@ -139,7 +139,7 @@ public class VisorQueryJob extends VisorJob(VisorTaskUtils.wrap(e), null); + return new IgniteBiTuple<>(new VisorExceptionWrapper(e), null); } } http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/af120a7a/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java index b0afbc9..6636a08 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java @@ -436,6 +436,7 @@ public class VisorTaskUtils { * @param file Starting folder * @param maxDepth Depth of the tree. If 1 - just look in the folder, no sub-folders. * @param filter file filter. + * @return List of found files. */ public static List fileTree(File file, int maxDepth, @Nullable FileFilter filter) { if (file.isDirectory()) { @@ -506,7 +507,7 @@ public class VisorTaskUtils { * * @param f File to process. * @return File charset. - * @throws IOException + * @throws IOException in case of error. */ public static Charset decode(File f) throws IOException { SortedMap charsets = Charset.availableCharsets(); @@ -735,8 +736,10 @@ public class VisorTaskUtils { * Log message. * * @param log Logger. + * @param msg Message to log. * @param clazz class. * @param start start time. + * @return Time when message was logged. */ public static long log(@Nullable IgniteLogger log, String msg, Class clazz, long start) { final long end = U.currentTimeMillis(); @@ -791,6 +794,7 @@ public class VisorTaskUtils { * * @param args A string array containing the program and its arguments. * @return Started process. + * @throws IOException in case of error. */ public static Process openInConsole(String... args) throws IOException { return openInConsole(null, args); @@ -867,14 +871,4 @@ public class VisorTaskUtils { return bos.toByteArray(); } - - /** - * Wrap throwable object of any type to presented on Visor throwable object. - * - * @param e Base throwable object. - * @return Wrapped throwable object. - */ - public static VisorExceptionWrapper wrap(Throwable e) { - return new VisorExceptionWrapper(e); - } }