package com.continuuity.api.schedule;

/**
 * Defines a cron-based schedule for running a program. 
 */
public class Schedule {

  private String name;

  private String description;

  private String cronEntry;

  private Action action;

  public Schedule(String name, String description, String cronEntry, Action action) {
    this.name = name;
    this.description = description;
    this.cronEntry = cronEntry;
    this.action = action;
  }

  /**
   * @return Name of the schedule.
   */
  public String getName(){
    return name;
  }

  /**
   * @return Schedule description.
   */
  public String getDescription(){
    return description;
  }

  /**
   * @return Cron expression for the schedule.
   */
  public String getCronEntry() {
    return cronEntry;
  }

  /**
   * @return Action for the schedule.
   */
  public Action getAction() {
    return action;
  }

  /**
   * Defines the ScheduleAction.
   */
  public enum Action {START, STOP};
}

@@ -128,24 +128,30 @@
 %0A%0A  private 
+final 
 String name;
@@ -158,24 +158,30 @@
 %0A%0A  private 
+final 
 String descr
@@ -199,16 +199,22 @@
 private 
+final 
 String c
@@ -234,16 +234,22 @@
 private 
+final 
 Action a
@@ -535,16 +535,17 @@
 etName()
+ 
 %7B%0A    re
@@ -639,16 +639,17 @@
 iption()
+ 
 %7B%0A    re

Add final. Fix space