public interface ConfigGroup
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(Config config)
Add config to the config group
|
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()
List of @Config objects
|
String |
getDescription()
Config group description
|
Map<String,Host> |
getHosts()
List of hosts to which configs are applied
|
Long |
getId()
Primary key of config group
|
String |
getName()
Unique config group name
|
String |
getTag()
Tag which associates config group to service
|
void |
persist()
Persist the Config group along with the related host and config mapping
entities to the persistence store
|
void |
refresh()
Refresh Config group and the host and config mappings for the group
|
void |
removeHost(String hostname)
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<String,Host> hosts)
Reassign the set of hosts associated with this config group
|
void |
setName(String name)
Update Group name
|
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
- void persist()
void delete()
void addHost(Host host) throws AmbariException
host
- AmbariException
void addConfiguration(Config config) throws AmbariException
config
- AmbariException
ConfigGroupResponse convertToResponse() throws AmbariException
AmbariException
void refresh()
void setHosts(Map<String,Host> hosts)
hosts
- void setConfigurations(Map<String,Config> configs)
configs
- void removeHost(String hostname) throws AmbariException
AmbariException
Copyright © 2015. All rights reserved.