com.cloudera.api.model
Class ApiHostTemplate

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

public class ApiHostTemplate
extends Object

A host template belongs to a cluster and contains a set of role config groups for slave roles (such as DataNodes and TaskTrackers) from services in the cluster. At most one role config group per role type can be present in a host template. Host templates can be applied to fresh hosts (those with no roles on them) in order to create a role for each of the role groups on each host.


Constructor Summary
ApiHostTemplate()
           
 
Method Summary
 boolean equals(Object o)
           
 ApiClusterRef getClusterRef()
          Readonly.
 String getName()
          The name of the host template.
 List<ApiRoleConfigGroupRef> getRoleConfigGroupRefs()
          The role config groups belonging to this host tempalte.
 int hashCode()
           
 void setClusterRef(ApiClusterRef clusterRef)
           
 void setName(String name)
           
 void setRoleConfigGroups(List<ApiRoleConfigGroupRef> roleConfigGroupRefs)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiHostTemplate

public ApiHostTemplate()
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

getName

public String getName()
The name of the host template. Unique across clusters.


setName

public void setName(String name)

getClusterRef

public ApiClusterRef getClusterRef()
Readonly. A reference to the cluster the host template belongs to.


setClusterRef

public void setClusterRef(ApiClusterRef clusterRef)

getRoleConfigGroupRefs

public List<ApiRoleConfigGroupRef> getRoleConfigGroupRefs()
The role config groups belonging to this host tempalte.


setRoleConfigGroups

public void setRoleConfigGroups(List<ApiRoleConfigGroupRef> roleConfigGroupRefs)


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