Constructor and Description |
---|
BlueprintImpl(BlueprintEntity entity) |
BlueprintImpl(String name,
Collection<HostGroup> groups,
Stack stack,
Configuration configuration,
SecurityConfiguration security) |
BlueprintImpl(String name,
Collection<HostGroup> groups,
Stack stack,
Configuration configuration,
SecurityConfiguration security,
Setting setting) |
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 the specified 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 host groups which contain a component.
|
Collection<HostGroup> |
getHostGroupsForService(String service)
Get host groups which contain a component for the given service.
|
String |
getName()
Get the name of the blueprint.
|
String |
getRecoveryEnabled(String serviceName,
String componentName)
Get whether the specified component in the service is enabled
for auto start.
|
List<RepositorySetting> |
getRepositorySettings() |
SecurityConfiguration |
getSecurity() |
Collection<ServiceInfo> |
getServiceInfos() |
Collection<String> |
getServices()
Get all services represented in blueprint.
|
Setting |
getSetting()
Get the Blueprint cluster scoped setting.
|
Stack |
getStack()
Get the stack associated with the blueprint.
|
String |
getStackName() |
String |
getStackVersion() |
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 blueprint configuration.
|
void |
validateTopology()
Validate the blueprint topology.
|
public BlueprintImpl(BlueprintEntity entity) throws NoSuchStackException
NoSuchStackException
public BlueprintImpl(String name, Collection<HostGroup> groups, Stack stack, Configuration configuration, SecurityConfiguration security)
public BlueprintImpl(String name, Collection<HostGroup> groups, Stack stack, Configuration configuration, SecurityConfiguration security, Setting setting)
public String getName()
Blueprint
public String getStackName()
public String getStackVersion()
public SecurityConfiguration getSecurity()
getSecurity
in interface Blueprint
public Map<String,HostGroup> getHostGroups()
Blueprint
getHostGroups
in interface Blueprint
public HostGroup getHostGroup(String name)
Blueprint
getHostGroup
in interface Blueprint
name
- name of the host group to getpublic Configuration getConfiguration()
Blueprint
getConfiguration
in interface Blueprint
public Setting getSetting()
Blueprint
getSetting
in interface Blueprint
public Collection<String> getServices()
getServices
in interface Blueprint
public Collection<ServiceInfo> getServiceInfos()
getServiceInfos
in interface Blueprint
public Collection<String> getComponents(String service)
Blueprint
getComponents
in interface Blueprint
service
- service namepublic String getRecoveryEnabled(String serviceName, String componentName)
getRecoveryEnabled
in interface Blueprint
serviceName
- - Service name.componentName
- - Component name.public String getCredentialStoreEnabled(String serviceName)
{
"service_settings" : [
{ "name" : "RANGER",
"recovery_enabled" : "true",
"credential_store_enabled" : "true"
},
{ "name" : "HIVE",
"recovery_enabled" : "true",
"credential_store_enabled" : "false"
},
{ "name" : "TEZ",
"recovery_enabled" : "false"
}
]
}
getCredentialStoreEnabled
in interface Blueprint
serviceName
- - Service name.public boolean shouldSkipFailure()
Blueprint
shouldSkipFailure
in interface Blueprint
public Stack getStack()
Blueprint
public Collection<HostGroup> getHostGroupsForComponent(String component)
getHostGroupsForComponent
in interface Blueprint
component
- component namepublic Collection<HostGroup> getHostGroupsForService(String service)
getHostGroupsForService
in interface Blueprint
service
- service namepublic void validateTopology() throws InvalidTopologyException
Blueprint
validateTopology
in interface Blueprint
InvalidTopologyException
- if the topology is invalidpublic BlueprintEntity toEntity()
Blueprint
public void validateRequiredProperties() throws InvalidTopologyException, GPLLicenseNotAcceptedException
validateRequiredProperties
in interface Blueprint
InvalidTopologyException
- if the blueprint configuration is invalidGPLLicenseNotAcceptedException
- ambari was configured to use gpl software, but gpl license is not acceptedpublic boolean isValidConfigType(String configType)
isValidConfigType
in interface Blueprint
public List<RepositorySetting> getRepositorySettings()
getRepositorySettings
in interface Blueprint
Copyright © 2022 Apache Software Foundation. All rights reserved.