com.cloudera.api.model
Class ApiDeployment

java.lang.Object
  extended by com.cloudera.api.model.ApiDeployment

public class ApiDeployment
extends Object

This objects represents a deployment including all clusters, hosts, services, roles, etc in the system. It can be used to save and restore all settings.


Constructor Summary
ApiDeployment()
           
 
Method Summary
 boolean equals(Object o)
           
 ApiConfigList getAllHostsConfig()
          Configuration parameters that apply to all hosts, unless overridden at the host level.
 List<ApiCluster> getClusters()
          List of clusters in the system including their services, roles and complete config values.
 List<ApiHost> getHosts()
          List of hosts in the system
 ApiHostTemplateList getHostTemplates()
          The list of all host templates in Cloudera Manager.
 ApiService getManagementService()
          The full configuration of the Cloudera Manager management service including all the management roles and their config values
 ApiConfigList getManagerSettings()
          The full configuration of Cloudera Manager itself including licensing info
 List<ApiCmPeer> getPeers()
          The list of peers configured in Cloudera Manager.
 Date getTimestamp()
          Readonly.
 List<ApiUser> getUsers()
          List of all users in the system
 ApiVersionInfo getVersionInfo()
          Full version information about the running Cloudera Manager instance
 int hashCode()
           
 void setAllHostsConfig(ApiConfigList allHostsConfig)
           
 void setClusters(List<ApiCluster> clusters)
           
 void setHosts(List<ApiHost> hosts)
           
 void setHostTemplates(ApiHostTemplateList hostTemplates)
           
 void setManagementService(ApiService managementService)
           
 void setManagerSettings(ApiConfigList managerSettings)
           
 void setPeers(List<ApiCmPeer> peers)
           
 void setTimestamp(Date date)
           
 void setUsers(List<ApiUser> users)
           
 void setVersionInfo(ApiVersionInfo versionInfo)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiDeployment

public ApiDeployment()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getTimestamp

public Date getTimestamp()
Readonly. This timestamp is provided when you request a deployment and is not required (or even read) when creating a deployment. This timestamp is useful if you have multiple deployments saved and want to determine which one to use as a restore point.


setTimestamp

public void setTimestamp(Date date)

getClusters

public List<ApiCluster> getClusters()
List of clusters in the system including their services, roles and complete config values.


setClusters

public void setClusters(List<ApiCluster> clusters)

getHosts

public List<ApiHost> getHosts()
List of hosts in the system


setHosts

public void setHosts(List<ApiHost> hosts)

getUsers

public List<ApiUser> getUsers()
List of all users in the system


setUsers

public void setUsers(List<ApiUser> users)

getVersionInfo

public ApiVersionInfo getVersionInfo()
Full version information about the running Cloudera Manager instance


setVersionInfo

public void setVersionInfo(ApiVersionInfo versionInfo)

getManagementService

public ApiService getManagementService()
The full configuration of the Cloudera Manager management service including all the management roles and their config values


setManagementService

public void setManagementService(ApiService managementService)

getManagerSettings

public ApiConfigList getManagerSettings()
The full configuration of Cloudera Manager itself including licensing info


setManagerSettings

public void setManagerSettings(ApiConfigList managerSettings)

getAllHostsConfig

public ApiConfigList getAllHostsConfig()
Configuration parameters that apply to all hosts, unless overridden at the host level. Available since API v3.


setAllHostsConfig

public void setAllHostsConfig(ApiConfigList allHostsConfig)

getPeers

public List<ApiCmPeer> getPeers()
The list of peers configured in Cloudera Manager. Available since API v3.


setPeers

public void setPeers(List<ApiCmPeer> peers)

getHostTemplates

public ApiHostTemplateList getHostTemplates()
The list of all host templates in Cloudera Manager.


setHostTemplates

public void setHostTemplates(ApiHostTemplateList hostTemplates)


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