com.cloudera.api.model
Class ApiReplicationCommand

java.lang.Object
  extended by com.cloudera.api.model.ApiCommand
      extended by com.cloudera.api.model.ApiReplicationCommand

public class ApiReplicationCommand
extends ApiCommand

Information about a replication command.

This object holds all the information a regular ApiCommand object provides, and adds specific information about the results of a replication command.

Depending on the type of the service where the replication was run, a different result property will be populated.


Constructor Summary
ApiReplicationCommand()
           
 
Method Summary
 boolean equals(Object o)
           
 ApiHdfsReplicationResult getHdfsResult()
          Results for replication commands on HDFS services.
 ApiHiveReplicationResult getHiveResult()
          Results for replication commands on Hive services.
 int hashCode()
           
 void setHdfsResult(ApiHdfsReplicationResult hdfsResult)
           
 void setHiveResult(ApiHiveReplicationResult hiveResult)
           
 String toString()
           
 
Methods inherited from class com.cloudera.api.model.ApiCommand
getCanRetry, getChildren, getClusterRef, getEndTime, getHostRef, getId, getName, getParent, getResultDataUrl, getResultMessage, getRoleRef, getServiceRef, getStartTime, getSuccess, isActive, isCanRetry, setActive, setCanRetry, setChildren, setClusterRef, setEndTime, setHostRef, setId, setName, setParent, setResultDataUrl, setResultMessage, setRoleRef, setServiceRef, setStartTime, setSuccess, toStringHelper
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiReplicationCommand

public ApiReplicationCommand()
Method Detail

getHdfsResult

public ApiHdfsReplicationResult getHdfsResult()
Results for replication commands on HDFS services.


setHdfsResult

public void setHdfsResult(ApiHdfsReplicationResult hdfsResult)

getHiveResult

public ApiHiveReplicationResult getHiveResult()
Results for replication commands on Hive services.


setHiveResult

public void setHiveResult(ApiHiveReplicationResult hiveResult)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class ApiCommand

toString

public String toString()
Overrides:
toString in class ApiCommand


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