public interface Blueprint
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getComponents(String service)
Get the components that are included in the blueprint for the specified service.
|
Configuration |
getConfiguration()
Get the Blueprint cluster scoped configuration.
|
String |
getCredentialStoreEnabled(String serviceName)
Get whether a service is enabled for credential store use.
|
HostGroup |
getHostGroup(String name)
Get a hostgroup specified by name.
|
Map<String,HostGroup> |
getHostGroups()
Get the hot groups contained in the blueprint.
|
Collection<HostGroup> |
getHostGroupsForComponent(String component)
Get the host groups which contain the give component.
|
Collection<HostGroup> |
getHostGroupsForService(String service)
Get the host groups which contain components for the specified service.
|
String |
getName()
Get the name of the blueprint.
|
String |
getRecoveryEnabled(String serviceName,
String componentName)
Get whether a component is enabled for auto start.
|
List<RepositorySetting> |
getRepositorySettings() |
SecurityConfiguration |
getSecurity() |
Collection<ServiceInfo> |
getServiceInfos() |
Collection<String> |
getServices()
Get all of the services represented in the blueprint.
|
Setting |
getSetting()
Get the Blueprint cluster scoped setting.
|
Stack |
getStack()
Get the stack associated with the blueprint.
|
boolean |
isValidConfigType(String configType)
A config type is valid if there are services related to except cluster-env and global.
|
boolean |
shouldSkipFailure()
Check if auto skip failure is enabled.
|
BlueprintEntity |
toEntity()
Obtain the blueprint as an entity.
|
void |
validateRequiredProperties()
Validate that the blueprint contains all of the required properties.
|
void |
validateTopology()
Validate the blueprint topology.
|
String getName()
Map<String,HostGroup> getHostGroups()
HostGroup getHostGroup(String name)
name
- name of the host group to getConfiguration getConfiguration()
Setting getSetting()
Collection<String> getServices()
Collection<ServiceInfo> getServiceInfos()
Collection<String> getComponents(String service)
service
- service nameString getRecoveryEnabled(String serviceName, String componentName)
serviceName
- - Service name.componentName
- - Component name.String getCredentialStoreEnabled(String serviceName)
serviceName
- - Service name.boolean shouldSkipFailure()
Stack getStack()
Collection<HostGroup> getHostGroupsForService(String service)
service
- service nameCollection<HostGroup> getHostGroupsForComponent(String component)
component
- component nameSecurityConfiguration getSecurity()
void validateTopology() throws InvalidTopologyException
InvalidTopologyException
- if the topology is invalidvoid validateRequiredProperties() throws InvalidTopologyException, GPLLicenseNotAcceptedException
InvalidTopologyException
- if the blueprint doesn't contain all required propertiesGPLLicenseNotAcceptedException
boolean isValidConfigType(String configType)
configType
- BlueprintEntity toEntity()
List<RepositorySetting> getRepositorySettings()
Copyright © 2022 Apache Software Foundation. All rights reserved.