You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2014/01/15 20:14:34 UTC

git commit: AMBARI-4293. Support tolerance level for batched requests based on task status. JSON fix. (swagle)

Updated Branches:
  refs/heads/trunk fa78cd71a -> db9f0cbc7


AMBARI-4293. Support tolerance level for batched requests based on task status. JSON fix. (swagle)


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

Branch: refs/heads/trunk
Commit: db9f0cbc716cde5eeed091cf92f748ec5ead52f6
Parents: fa78cd7
Author: Siddharth Wagle <sw...@hortonworks.com>
Authored: Wed Jan 15 11:14:08 2014 -0800
Committer: Siddharth Wagle <sw...@hortonworks.com>
Committed: Wed Jan 15 11:14:15 2014 -0800

----------------------------------------------------------------------
 .../java/org/apache/ambari/server/state/scheduler/Schedule.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/db9f0cbc/ambari-server/src/main/java/org/apache/ambari/server/state/scheduler/Schedule.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/state/scheduler/Schedule.java b/ambari-server/src/main/java/org/apache/ambari/server/state/scheduler/Schedule.java
index cccc650..6878566 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/state/scheduler/Schedule.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/state/scheduler/Schedule.java
@@ -138,6 +138,11 @@ public class Schedule {
     return true;
   }
 
+  /**
+   * Return empty if schedule has non usable fields.
+   * @return
+   */
+  @JsonIgnore
   public boolean isEmpty() {
     return (minutes == null || minutes.isEmpty())
       && (hours == null || hours.isEmpty())