HOSTGROUP_REGEX
Constructor and Description |
---|
HostGroupImpl(HostGroupEntity entity,
String blueprintName,
Stack stack) |
HostGroupImpl(String name,
String bpName,
Stack stack,
Collection<Component> components,
Configuration configuration,
String cardinality) |
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 with the specified provision action to the
host group.
|
boolean |
containsMasterComponent()
Determine if the host group contains a master component.
|
static String |
formatAbsoluteName(String bpName,
String hgName) |
String |
getBlueprintName()
Get the associated blueprint name.
|
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 components for the specified service which are associated with the host group.
|
Configuration |
getConfiguration()
Get this host groups configuration.
|
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 the services which are deployed to this host group.
|
Stack |
getStack()
Get the stack associated with the host group.
|
String |
toString() |
public HostGroupImpl(HostGroupEntity entity, String blueprintName, Stack stack)
public HostGroupImpl(String name, String bpName, Stack stack, Collection<Component> components, Configuration configuration, String cardinality)
public String getName()
HostGroup
public String getFullyQualifiedName()
HostGroup
getFullyQualifiedName
in interface HostGroup
public Collection<Component> getComponents()
HostGroup
getComponents
in interface HostGroup
public Collection<String> getComponentNames()
HostGroup
getComponentNames
in interface HostGroup
public Collection<String> getComponentNames(ProvisionAction provisionAction)
HostGroup
getComponentNames
in interface HostGroup
provisionAction
- the provision action that must be associated
with the component names returnedpublic Collection<String> getServices()
getServices
in interface HostGroup
public boolean addComponent(String component)
addComponent
in interface HostGroup
component
- component to addpublic boolean addComponent(String component, ProvisionAction provisionAction)
addComponent
in interface HostGroup
component
- component nameprovisionAction
- provision action for this componentpublic Collection<String> getComponents(String service)
getComponents
in interface HostGroup
service
- service namepublic Configuration getConfiguration()
getConfiguration
in interface HostGroup
public String getBlueprintName()
getBlueprintName
in interface HostGroup
public boolean containsMasterComponent()
HostGroup
containsMasterComponent
in interface HostGroup
public Stack getStack()
HostGroup
public String getCardinality()
HostGroup
getCardinality
in interface HostGroup
Copyright © 2022 Apache Software Foundation. All rights reserved.