瀏覽代碼

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

Siddharth Wagle 12 年之前
父節點
當前提交
db9f0cbc71
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      ambari-server/src/main/java/org/apache/ambari/server/state/scheduler/Schedule.java

+ 5 - 0
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())