ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yzhda...@apache.org
Subject incubator-ignite git commit: review
Date Fri, 31 Jul 2015 09:47:20 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-1170 c6d65b887 -> 157447336


review


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/15744733
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/15744733
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/15744733

Branch: refs/heads/ignite-1170
Commit: 1574473361a79f82c625d3c002276f929c00a725
Parents: c6d65b8
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Fri Jul 31 12:47:12 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Fri Jul 31 12:47:12 2015 +0300

----------------------------------------------------------------------
 .../rest/handlers/query/QueryCommandHandler.java          | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/15744733/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/query/QueryCommandHandler.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/query/QueryCommandHandler.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/query/QueryCommandHandler.java
index 60fa5c9..e121b23 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/query/QueryCommandHandler.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/query/QueryCommandHandler.java
@@ -130,14 +130,14 @@ public class QueryCommandHandler extends GridRestCommandHandlerAdapter
{
                     case SQL:
                         qry = new SqlQuery(req.typeName(), req.sqlQuery());
 
-                        ((SqlQuery) qry).setArgs(req.arguments());
+                        ((SqlQuery)qry).setArgs(req.arguments());
 
                         break;
 
                     case SQL_FIELDS:
                         qry = new SqlFieldsQuery(req.sqlQuery());
 
-                        ((SqlFieldsQuery) qry).setArgs(req.arguments());
+                        ((SqlFieldsQuery)qry).setArgs(req.arguments());
 
                         break;
 
@@ -159,7 +159,7 @@ public class QueryCommandHandler extends GridRestCommandHandlerAdapter
{
 
                 if (cache == null)
                     return new GridRestResponse(GridRestResponse.STATUS_FAILED,
-                        "No cache with name [cacheName=" + req.cacheName() + "]");
+                        "Failed to find cache with name: " + req.cacheName());
 
                 QueryCursor qryCur = cache.query(qry);
 
@@ -225,7 +225,7 @@ public class QueryCommandHandler extends GridRestCommandHandlerAdapter
{
 
                 if (cur == null)
                     return new GridRestResponse(GridRestResponse.STATUS_FAILED,
-                        "Cannot find query [qryId=" + req.queryId() + "]");
+                        "Failed to find query with ID: " + req.queryId());
 
                 cur.close();
 
@@ -273,7 +273,7 @@ public class QueryCommandHandler extends GridRestCommandHandlerAdapter
{
 
                 if (cur == null)
                     return new GridRestResponse(GridRestResponse.STATUS_FAILED,
-                        "Cannot find query [qryId=" + req.queryId() + "]");
+                        "Failed to find query with ID: " + req.queryId());
 
                 CacheQueryResult res = createQueryResult(qryCurs, cur, req, req.queryId(),
ctx);
 


Mime
View raw message