public abstract class ApiSchedule extends Object
Modifier | Constructor and Description |
---|---|
protected |
ApiSchedule() |
protected |
ApiSchedule(Long id,
Date startTime,
Date endTime,
long interval,
ApiScheduleInterval intervalUnit,
boolean paused) |
Modifier and Type | Method and Description |
---|---|
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() |
protected ApiSchedule()
protected ApiSchedule(Long id, Date startTime, Date endTime, long interval, ApiScheduleInterval intervalUnit, boolean paused)
public Long getId()
public void setId(Long id)
public String getDisplayName()
public void setDisplayName(String displayName)
public String getDescription()
public void setDescription(String description)
public Date getStartTime()
public void setStartTime(Date startTime)
public Date getEndTime()
public void setEndTime(Date endTime)
public long getInterval()
public void setInterval(long interval)
public ApiScheduleInterval getIntervalUnit()
public void setIntervalUnit(ApiScheduleInterval intervalUnit)
public Date getNextRun()
public void setNextRun(Date nextRun)
public boolean isPaused()
public void setPaused(boolean paused)
public boolean getAlertOnStart()
public void setAlertOnStart(boolean alertOnStart)
public boolean getAlertOnSuccess()
public void setAlertOnSuccess(boolean alertOnSuccess)
public boolean getAlertOnFail()
public void setAlertOnFail(boolean alertOnFail)
public boolean getAlertOnAbort()
public void setAlertOnAbort(boolean alertOnAbort)
protected com.google.common.base.Objects.ToStringHelper toStringHelper()
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.