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()
HostGrouppublic String getFullyQualifiedName()
HostGroupgetFullyQualifiedName in interface HostGrouppublic Collection<Component> getComponents()
HostGroupgetComponents in interface HostGrouppublic Collection<String> getComponentNames()
HostGroupgetComponentNames in interface HostGrouppublic Collection<String> getComponentNames(ProvisionAction provisionAction)
HostGroupgetComponentNames in interface HostGroupprovisionAction - the provision action that must be associated
with the component names returnedpublic Collection<String> getServices()
getServices in interface HostGrouppublic boolean addComponent(String component)
addComponent in interface HostGroupcomponent - component to addpublic boolean addComponent(String component, ProvisionAction provisionAction)
addComponent in interface HostGroupcomponent - component nameprovisionAction - provision action for this componentpublic Collection<String> getComponents(String service)
getComponents in interface HostGroupservice - service namepublic Configuration getConfiguration()
getConfiguration in interface HostGrouppublic String getBlueprintName()
getBlueprintName in interface HostGrouppublic boolean containsMasterComponent()
HostGroupcontainsMasterComponent in interface HostGrouppublic Stack getStack()
HostGrouppublic String getCardinality()
HostGroupgetCardinality in interface HostGroupCopyright © 2022 Apache Software Foundation. All rights reserved.