|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.api.model.ApiSchedule
com.cloudera.api.model.ApiReplicationSchedule
public class ApiReplicationSchedule
A replication job schedule.
Replication jobs have service-specific arguments. This object has methods to retrieve arguments for all supported types of replication, but only one argument type is allowed to be set; the backend will check that the provided argument matches the service type where the replication is being scheduled. The replication job's arguments should match the underlying service. Refer to each property's documentation to find out which properties correspond to which services.
Constructor Summary | |
---|---|
ApiReplicationSchedule()
|
|
ApiReplicationSchedule(Long id,
Date startTime,
Date endTime,
long interval,
ApiScheduleInterval intervalUnit,
boolean paused)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
ApiHdfsReplicationArguments |
getHdfsArguments()
Arguments for HDFS replication commands. |
ApiHdfsCloudReplicationArguments |
getHdfsCloudArguments()
Arguments for HDFS cloud replication commands. |
List<ApiReplicationCommand> |
getHistory()
List of active and/or finished commands for this schedule. |
ApiHiveReplicationArguments |
getHiveArguments()
Arguments for Hive replication commands. |
ApiHiveCloudReplicationArguments |
getHiveCloudArguments()
Arguments for Hive cloud replication commands. |
int |
hashCode()
|
Boolean |
isActive()
Read-only field that is true if this schedule is currently active, false if not. |
void |
setActive(Boolean active)
|
void |
setHdfsArguments(ApiHdfsReplicationArguments hdfsArguments)
|
void |
setHdfsCloudArguments(ApiHdfsCloudReplicationArguments hdfsCloudArguments)
|
void |
setHistory(List<ApiReplicationCommand> history)
|
void |
setHiveArguments(ApiHiveReplicationArguments hiveArguments)
|
void |
setHiveCloudArguments(ApiHiveCloudReplicationArguments hiveCloudArguments)
|
String |
toString()
|
protected com.google.common.base.Objects.ToStringHelper |
toStringHelper()
|
Methods inherited from class com.cloudera.api.model.ApiSchedule |
---|
getAlertOnAbort, getAlertOnFail, getAlertOnStart, getAlertOnSuccess, getDescription, getDisplayName, getEndTime, getId, getInterval, getIntervalUnit, getNextRun, getStartTime, isPaused, setAlertOnAbort, setAlertOnFail, setAlertOnStart, setAlertOnSuccess, setDescription, setDisplayName, setEndTime, setId, setInterval, setIntervalUnit, setNextRun, setPaused, setStartTime |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ApiReplicationSchedule()
public ApiReplicationSchedule(Long id, Date startTime, Date endTime, long interval, ApiScheduleInterval intervalUnit, boolean paused)
Method Detail |
---|
public ApiHdfsReplicationArguments getHdfsArguments()
public void setHdfsArguments(ApiHdfsReplicationArguments hdfsArguments)
public ApiHiveReplicationArguments getHiveArguments()
public void setHiveArguments(ApiHiveReplicationArguments hiveArguments)
public ApiHdfsCloudReplicationArguments getHdfsCloudArguments()
public void setHdfsCloudArguments(ApiHdfsCloudReplicationArguments hdfsCloudArguments)
public List<ApiReplicationCommand> getHistory()
public void setHistory(List<ApiReplicationCommand> history)
public Boolean isActive()
public void setActive(Boolean active)
public ApiHiveCloudReplicationArguments getHiveCloudArguments()
public void setHiveCloudArguments(ApiHiveCloudReplicationArguments hiveCloudArguments)
public boolean equals(Object o)
equals
in class ApiSchedule
public int hashCode()
hashCode
in class ApiSchedule
protected com.google.common.base.Objects.ToStringHelper toStringHelper()
toStringHelper
in class ApiSchedule
public String toString()
toString
in class ApiSchedule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |