com.cloudera.api.model
Class ApiSnapshotCommand

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

public class ApiSnapshotCommand
extends ApiCommand

Information about snapshot commands.

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

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


Constructor Summary
ApiSnapshotCommand()
           
 
Method Summary
 boolean equals(Object o)
           
 ApiHBaseSnapshotResult getHBaseResult()
          Results for snapshot commands on HBase services.
 ApiHdfsSnapshotResult getHdfsResult()
          Results for snapshot commands on Hdfs services.
 int hashCode()
           
 void setHBaseResult(ApiHBaseSnapshotResult hbaseResult)
           
 void setHdfsResult(ApiHdfsSnapshotResult hdfsResult)
           
 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

ApiSnapshotCommand

public ApiSnapshotCommand()
Method Detail

getHBaseResult

public ApiHBaseSnapshotResult getHBaseResult()
Results for snapshot commands on HBase services.


setHBaseResult

public void setHBaseResult(ApiHBaseSnapshotResult hbaseResult)

getHdfsResult

public ApiHdfsSnapshotResult getHdfsResult()
Results for snapshot commands on Hdfs services.


setHdfsResult

public void setHdfsResult(ApiHdfsSnapshotResult hdfsResult)

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.