ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject git commit: AMBARI-4293. Support tolerance level for batched requests based on task status. JSON fix. (swagle)
Date Wed, 15 Jan 2014 19:14:34 GMT
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 <swagle@hortonworks.com>
Authored: Wed Jan 15 11:14:08 2014 -0800
Committer: Siddharth Wagle <swagle@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())


Mime
View raw message