public interface HostGroup
Modifier and Type | Field and Description |
---|---|
static Pattern |
HOSTGROUP_REGEX
Compiled regex for hostgroup token.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addComponent(String component)
Add a component to the host group.
|
boolean |
addComponent(String component,
ProvisionAction provisionAction)
Add a component to the host group, with the specified name
and provision action.
|
boolean |
containsMasterComponent()
Determine if the host group contains a master component.
|
String |
getBlueprintName()
Get the name of the associated blueprint
|
String |
getCardinality()
Get the cardinality value that was specified for the host group.
|
Collection<String> |
getComponentNames()
Get all of the host group component names
|
Collection<String> |
getComponentNames(ProvisionAction provisionAction)
Get all host group component names for instances
that have the specified provision action association.
|
Collection<Component> |
getComponents()
Get all of the host group components.
|
Collection<String> |
getComponents(String service)
Get the host group components which belong to the specified service.
|
Configuration |
getConfiguration()
Get the configuration associated with the host group.
|
String |
getFullyQualifiedName()
Get the fully qualified host group name in the form of
blueprintName:hostgroupName
|
String |
getName()
Get the name of the host group.
|
Collection<String> |
getServices()
Get all of the services associated with the host group components.
|
Stack |
getStack()
Get the stack associated with the host group.
|
static final Pattern HOSTGROUP_REGEX
String getName()
String getBlueprintName()
String getFullyQualifiedName()
Collection<Component> getComponents()
Collection<String> getComponentNames()
Collection<String> getComponentNames(ProvisionAction provisionAction)
provisionAction
- the provision action that must be associated
with the component names returnedCollection<String> getComponents(String service)
service
- service nameboolean addComponent(String component)
component
- name of the component to addboolean addComponent(String component, ProvisionAction provisionAction)
component
- component nameprovisionAction
- provision action for this componentboolean containsMasterComponent()
Collection<String> getServices()
Configuration getConfiguration()
Stack getStack()
String getCardinality()
Copyright © 2022 Apache Software Foundation. All rights reserved.