com.cloudera.api.model
Class ApiReplicationSchedule

java.lang.Object
  extended by com.cloudera.api.model.ApiSchedule
      extended by com.cloudera.api.model.ApiReplicationSchedule

public class ApiReplicationSchedule
extends ApiSchedule

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

ApiReplicationSchedule

public ApiReplicationSchedule()

ApiReplicationSchedule

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

getHdfsArguments

public ApiHdfsReplicationArguments getHdfsArguments()
Arguments for HDFS replication commands.


setHdfsArguments

public void setHdfsArguments(ApiHdfsReplicationArguments hdfsArguments)

getHiveArguments

public ApiHiveReplicationArguments getHiveArguments()
Arguments for Hive replication commands.


setHiveArguments

public void setHiveArguments(ApiHiveReplicationArguments hiveArguments)

getHdfsCloudArguments

public ApiHdfsCloudReplicationArguments getHdfsCloudArguments()
Arguments for HDFS cloud replication commands.


setHdfsCloudArguments

public void setHdfsCloudArguments(ApiHdfsCloudReplicationArguments hdfsCloudArguments)

getHistory

public List<ApiReplicationCommand> getHistory()
List of active and/or finished commands for this schedule.


setHistory

public void setHistory(List<ApiReplicationCommand> history)

isActive

public Boolean isActive()
Read-only field that is true if this schedule is currently active, false if not. Available since API v11.


setActive

public void setActive(Boolean active)

getHiveCloudArguments

public ApiHiveCloudReplicationArguments getHiveCloudArguments()
Arguments for Hive cloud replication commands.


setHiveCloudArguments

public void setHiveCloudArguments(ApiHiveCloudReplicationArguments hiveCloudArguments)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class ApiSchedule

toStringHelper

protected com.google.common.base.Objects.ToStringHelper toStringHelper()
Overrides:
toStringHelper in class ApiSchedule

toString

public String toString()
Overrides:
toString in class ApiSchedule


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