public interface ConfigGroup
Modifier and Type | Method and Description |
---|---|
void |
addHost(Host host)
Add host to Config group
|
ConfigGroupResponse |
convertToResponse()
Return @ConfigGroupResponse for the config group
|
void |
delete()
Delete config group and the related host and config mapping
entities from the persistence store
|
String |
getClusterName()
Cluster name to which config group belongs
|
Map<String,Config> |
getConfigurations()
Gets an unmodifiable map of
Config s. |
String |
getDescription()
Config group description
|
Map<Long,Host> |
getHosts()
Gets an unmodifiable list of
Host s. |
Long |
getId()
Primary key of config group
|
String |
getName()
Unique config group name
|
String |
getServiceName()
Name of service which config group is wired to
|
String |
getTag()
Tag which associates config group to service
|
void |
removeHost(Long hostId)
Remove host mapping
|
void |
setConfigurations(Map<String,Config> configs)
Reassign the set of configs associated with this config group
|
void |
setDescription(String description)
Update description
|
void |
setHosts(Map<Long,Host> hosts)
Reassign the set of hosts associated with this config group
|
void |
setName(String name)
Update Group name
|
void |
setServiceName(String serviceName) |
void |
setTag(String tag)
Update tag
|
Long getId()
String getName()
void setName(String name)
name
- String getClusterName()
String getTag()
void setTag(String tag)
tag
- String getDescription()
void setDescription(String description)
description
- Map<String,Config> getConfigurations()
Config
s.void delete()
void addHost(Host host) throws org.apache.ambari.server.AmbariException
host
- org.apache.ambari.server.AmbariException
ConfigGroupResponse convertToResponse() throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
void setHosts(Map<Long,Host> hosts)
hosts
- void setConfigurations(Map<String,Config> configs) throws org.apache.ambari.server.AmbariException
configs
- org.apache.ambari.server.AmbariException
void removeHost(Long hostId) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
String getServiceName()
void setServiceName(String serviceName)
Copyright © 2022 Apache Software Foundation. All rights reserved.