com.cloudera.api.model
Class ApiSchedule

java.lang.Object
  extended by com.cloudera.api.model.ApiSchedule
Direct Known Subclasses:
ApiReplicationSchedule

public abstract class ApiSchedule
extends Object

Base class for commands that can be scheduled in Cloudera Manager.

Note that schedule IDs are not preserved upon import.


Constructor Summary
protected ApiSchedule()
           
protected ApiSchedule(Long id, Date startTime, Date endTime, long interval, ApiScheduleInterval intervalUnit, boolean paused)
           
 
Method Summary
 boolean equals(Object o)
           
 boolean getAlertOnAbort()
          Whether to alert on abort of the scheduled activity.
 boolean getAlertOnFail()
          Whether to alert on failure of the scheduled activity.
 boolean getAlertOnStart()
          Whether to alert on start of the scheduled activity.
 boolean getAlertOnSuccess()
          Whether to alert on successful completion of the scheduled activity.
 String getDescription()
          The schedule description.
 String getDisplayName()
          The schedule display name.
 Date getEndTime()
          The time after which the scheduled activity will no longer be triggered.
 Long getId()
          The schedule id.
 long getInterval()
          The duration between consecutive triggers of a scheduled activity.
 ApiScheduleInterval getIntervalUnit()
          The unit for the repeat interval.
 Date getNextRun()
          Readonly.
 Date getStartTime()
          The time at which the scheduled activity is triggered for the first time.
 int hashCode()
           
 boolean isPaused()
          The paused state for the schedule.
 void setAlertOnAbort(boolean alertOnAbort)
           
 void setAlertOnFail(boolean alertOnFail)
           
 void setAlertOnStart(boolean alertOnStart)
           
 void setAlertOnSuccess(boolean alertOnSuccess)
           
 void setDescription(String description)
           
 void setDisplayName(String displayName)
           
 void setEndTime(Date endTime)
           
 void setId(Long id)
           
 void setInterval(long interval)
           
 void setIntervalUnit(ApiScheduleInterval intervalUnit)
           
 void setNextRun(Date nextRun)
           
 void setPaused(boolean paused)
           
 void setStartTime(Date startTime)
           
 String toString()
           
protected  com.google.common.base.Objects.ToStringHelper toStringHelper()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiSchedule

protected ApiSchedule()

ApiSchedule

protected ApiSchedule(Long id,
                      Date startTime,
                      Date endTime,
                      long interval,
                      ApiScheduleInterval intervalUnit,
                      boolean paused)
Method Detail

getId

public Long getId()
The schedule id.


setId

public void setId(Long id)

getDisplayName

public String getDisplayName()
The schedule display name.


setDisplayName

public void setDisplayName(String displayName)

getDescription

public String getDescription()
The schedule description.


setDescription

public void setDescription(String description)

getStartTime

public Date getStartTime()
The time at which the scheduled activity is triggered for the first time.


setStartTime

public void setStartTime(Date startTime)

getEndTime

public Date getEndTime()
The time after which the scheduled activity will no longer be triggered.


setEndTime

public void setEndTime(Date endTime)

getInterval

public long getInterval()
The duration between consecutive triggers of a scheduled activity.


setInterval

public void setInterval(long interval)

getIntervalUnit

public ApiScheduleInterval getIntervalUnit()
The unit for the repeat interval.


setIntervalUnit

public void setIntervalUnit(ApiScheduleInterval intervalUnit)

getNextRun

public Date getNextRun()
Readonly. The time the scheduled command will run next.


setNextRun

public void setNextRun(Date nextRun)

isPaused

public boolean isPaused()
The paused state for the schedule. The scheduled activity will not be triggered as long as the scheduled is paused.


setPaused

public void setPaused(boolean paused)

getAlertOnStart

public boolean getAlertOnStart()
Whether to alert on start of the scheduled activity.


setAlertOnStart

public void setAlertOnStart(boolean alertOnStart)

getAlertOnSuccess

public boolean getAlertOnSuccess()
Whether to alert on successful completion of the scheduled activity.


setAlertOnSuccess

public void setAlertOnSuccess(boolean alertOnSuccess)

getAlertOnFail

public boolean getAlertOnFail()
Whether to alert on failure of the scheduled activity.


setAlertOnFail

public void setAlertOnFail(boolean alertOnFail)

getAlertOnAbort

public boolean getAlertOnAbort()
Whether to alert on abort of the scheduled activity.


setAlertOnAbort

public void setAlertOnAbort(boolean alertOnAbort)

toString

public String toString()
Overrides:
toString in class Object

toStringHelper

protected com.google.common.base.Objects.ToStringHelper toStringHelper()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.