falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shweth...@apache.org
Subject incubator-falcon git commit: FALCON-921 Validate command is exposed only through prism. Contributed by Ajay Yadav
Date Fri, 26 Dec 2014 08:29:33 GMT
Repository: incubator-falcon
Updated Branches:
  refs/heads/master 463f85489 -> 14686731f


FALCON-921 Validate command is exposed only through prism. Contributed by Ajay Yadav


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

Branch: refs/heads/master
Commit: 14686731f7a722ceb63f7f931800ac35c6657244
Parents: 463f854
Author: shwethags <shwetha.gs@inmobi.com>
Authored: Fri Dec 26 13:59:09 2014 +0530
Committer: shwethags <shwetha.gs@inmobi.com>
Committed: Fri Dec 26 13:59:09 2014 +0530

----------------------------------------------------------------------
 CHANGES.txt                                              |  3 +++
 .../apache/falcon/resource/SchedulableEntityManager.java | 11 +++++++++++
 2 files changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/14686731/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index e8e82d2..820a368 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -55,6 +55,9 @@ Trunk (Unreleased)
    (Suhas vasu)
 
   BUG FIXES
+   FALCON-921 Validate command is exposed only through prism. (Ajay Yadav 
+   via Shwetha GS)
+
    FALCON-916 Falcon idempotency is being voilated during delete. (Balu
    Vellanki via Srikanth Sundarrajan)
 

http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/14686731/webapp/src/main/java/org/apache/falcon/resource/SchedulableEntityManager.java
----------------------------------------------------------------------
diff --git a/webapp/src/main/java/org/apache/falcon/resource/SchedulableEntityManager.java
b/webapp/src/main/java/org/apache/falcon/resource/SchedulableEntityManager.java
index d8d8bfc..2ec7f66 100644
--- a/webapp/src/main/java/org/apache/falcon/resource/SchedulableEntityManager.java
+++ b/webapp/src/main/java/org/apache/falcon/resource/SchedulableEntityManager.java
@@ -140,4 +140,15 @@ public class SchedulableEntityManager extends AbstractSchedulableEntityManager
{
                             @Dimension("colo") @QueryParam("colo") String colo) {
         return super.resume(request, type, entity, colo);
     }
+
+    @POST
+    @Path("validate/{type}")
+    @Consumes({MediaType.TEXT_XML, MediaType.TEXT_PLAIN})
+    @Produces({MediaType.TEXT_XML, MediaType.TEXT_PLAIN, MediaType.APPLICATION_JSON})
+    @Monitored(event = "validate")
+    @Override
+    public APIResult validate(@Context HttpServletRequest request, @PathParam("type") String
type) {
+        return super.validate(request, type);
+    }
+
 }


Mime
View raw message