Modifier and Type | Method and Description |
---|---|
StackInfo |
AmbariMetaInfo.getStack(StackId stackId)
Convenience method to get stack info from a stack id
|
Modifier and Type | Method and Description |
---|---|
static StackAdvisorRequest.StackAdvisorRequestBuilder |
StackAdvisorRequest.StackAdvisorRequestBuilder.forStack(StackId stackId) |
Modifier and Type | Method and Description |
---|---|
StackId |
ActionExecutionContext.getStackId()
Gets the stack to use for generating stack-associated values for a
command.
|
StackId |
ConfigurationResponse.getStackId()
Gets the Stack ID that this configuration is scoped for.
|
Modifier and Type | Method and Description |
---|---|
Config |
AmbariManagementController.createConfig(Cluster cluster,
StackId stackId,
String type,
Map<String,String> properties,
String versionTag,
Map<String,Map<String,String>> propertiesAttributes)
Create cluster config
TODO move this method to Cluster? doesn't seem to be on its place
|
Config |
AmbariManagementControllerImpl.createConfig(Cluster cluster,
StackId stackId,
String type,
Map<String,String> properties,
String versionTag,
Map<String,Map<String,String>> propertiesAttributes) |
ExecuteCommandJson |
AmbariCustomCommandExecutionHelper.getCommandJson(ActionExecutionContext actionExecContext,
Cluster cluster,
StackId stackId,
String requestContext)
Helper method to fill execution command information.
|
KerberosDescriptor |
KerberosHelperImpl.getKerberosDescriptor(KerberosHelper.KerberosDescriptorType kerberosDescriptorType,
Cluster cluster,
StackId stackId,
boolean includePreconfigureData) |
KerberosDescriptor |
KerberosHelper.getKerberosDescriptor(KerberosHelper.KerberosDescriptorType kerberosDescriptorType,
Cluster cluster,
StackId stackId,
boolean includePreconfigureData)
Gets the Kerberos descriptor for the requested stack.
|
TreeMap<String,String> |
AmbariManagementControllerImpl.getMetadataClusterLevelParams(Cluster cluster,
StackId stackId) |
void |
ActionExecutionContext.setStackId(StackId stackId)
Sets the stack to use for generating stack-associated values for a
command.
|
Constructor and Description |
---|
ConfigurationResponse(String clusterName,
StackId stackId,
String type,
String versionTag,
Long version,
Map<String,String> configs,
Map<String,Map<String,String>> configAttributes) |
ConfigurationResponse(String clusterName,
StackId stackId,
String type,
String versionTag,
Long version,
Map<String,String> configs,
Map<String,Map<String,String>> configAttributes,
Map<PropertyInfo.PropertyType,Set<String>> propertiesTypes) |
ServiceComponentResponse(Long clusterId,
String clusterName,
String serviceName,
String componentName,
StackId desiredStackId,
String desiredState,
Map<String,Integer> serviceComponentStateCount,
boolean recoveryEnabled,
String displayName,
String desiredVersion,
RepositoryVersionState repoState) |
ServiceResponse(Long clusterId,
String clusterName,
String serviceName,
StackId desiredStackId,
String desiredRepositoryVersion,
RepositoryVersionState repositoryVersionState,
String desiredState,
boolean credentialStoreSupported,
boolean credentialStoreEnabled,
boolean ssoIntegrationSupported,
boolean ssoIntegrationDesired,
boolean ssoIntegrationEnabled,
boolean ssoIntegrationRequiresKerberos,
boolean kerberosEnabled,
boolean ldapIntegrationSupported,
boolean ldapIntegrationEnabled,
boolean ldapIntegrationDesired) |
Modifier and Type | Method and Description |
---|---|
StackId |
Stack.getStackId() |
protected StackId |
RepositoryVersionResourceProvider.getStackInformationFromUrl(Map<String,Object> propertyMap) |
protected StackId |
CompatibleRepositoryVersionResourceProvider.getStackInformationFromUrl(Map<String,Object> propertyMap)
Gets the stack id from the request map
|
Constructor and Description |
---|
Stack(StackId stackId,
AmbariManagementController ambariManagementController) |
Modifier and Type | Method and Description |
---|---|
StackEntity |
StackDAO.find(StackId stackId)
Gets the stack that matches the specified stack ID by name and version.
|
List<HostVersionEntity> |
HostVersionDAO.findByClusterStackAndVersion(String clusterName,
StackId stackId,
String version)
Retrieve all of the host versions for the given cluster name, stack name,
and stack version.
|
HostVersionEntity |
HostVersionDAO.findByClusterStackVersionAndHost(String clusterName,
StackId stackId,
String version,
String hostName)
Retrieve the single host version for the given cluster, stack name, stack
version, and host name.
|
List<RepositoryVersionEntity> |
RepositoryVersionDAO.findByStack(StackId stackId)
Retrieves repository version by stack.
|
List<RepositoryVersionEntity> |
RepositoryVersionDAO.findByStackAndType(StackId stackId,
org.apache.ambari.spi.RepositoryType type)
Retrieves repository version by stack.
|
RepositoryVersionEntity |
RepositoryVersionDAO.findByStackAndVersion(StackId stackId,
String version)
Retrieves repository version by stack.
|
List<ClusterConfigEntity> |
ClusterDAO.getAllConfigurations(Long clusterId,
StackId stackId)
Get all configurations for the specified cluster and stack.
|
List<ClusterConfigEntity> |
ClusterDAO.getEnabledConfigsByStack(long clusterId,
StackId stackId)
Gets the latest configurations for a given stack for all of the
configurations of the specified cluster.
|
List<ClusterConfigEntity> |
ClusterDAO.getLatestConfigurations(long clusterId,
StackId stackId)
Gets the latest configurations for a given stack for all of the
configurations of the specified cluster.
|
List<ClusterConfigEntity> |
ClusterDAO.getLatestConfigurationsWithTypes(long clusterId,
StackId stackId,
Collection<String> configTypes)
Gets the latest configurations for a given stack with any of the given config types.
|
List<ServiceConfigEntity> |
ServiceConfigDAO.getLatestServiceConfigs(Long clusterId,
StackId stackId)
Gets the latest service configurations for the specified cluster and stack.
|
List<ServiceConfigEntity> |
ServiceConfigDAO.getServiceConfigsForServiceAndStack(Long clusterId,
StackId stackId,
String serviceName)
Get service configurations for the specified cluster and stack.
|
void |
RepositoryVersionDAO.removeByStack(StackId stackId)
Removes the specified repoversion entry based on stackid.
|
Modifier and Type | Method and Description |
---|---|
StackId |
RepositoryVersionEntity.getStackId() |
StackId |
UpgradeEntity.getUpgradePackStackId() |
Modifier and Type | Method and Description |
---|---|
static boolean |
RepositoryVersionEntity.isVersionInStack(StackId stackId,
String version)
Determine if the version belongs to the stack.
|
void |
UpgradeEntity.setUpgradePackStackId(StackId stackId) |
Modifier and Type | Method and Description |
---|---|
StackId |
UpgradePack.getOwnerStackId() |
Modifier and Type | Method and Description |
---|---|
void |
UpgradePack.setOwnerStackId(StackId stackId)
Sets the stack id that owns this upgrade pack.
|
Modifier and Type | Method and Description |
---|---|
StackId |
UpgradeContext.getSourceStack()
Gets the single source stack for the upgrade depending on the
direction.
|
StackId |
UpgradeContext.getStackIdFromVersions(Map<String,RepositoryVersionEntity> version)
Getting stackId from the set of versions.
|
StackId |
UpgradeContext.getTargetStack()
Gets the single target stack for the upgrade.
|
Modifier and Type | Method and Description |
---|---|
UpgradePack |
UpgradeHelper.suggestUpgradePack(String clusterName,
StackId sourceStackId,
StackId targetStackId,
Direction direction,
org.apache.ambari.spi.upgrade.UpgradeType upgradeType,
String preferredUpgradePackName)
Get right Upgrade Pack, depends on stack, direction and upgrade type
information
|
Modifier and Type | Method and Description |
---|---|
StackId |
Cluster.getCurrentStackVersion()
Get current stack version
|
StackId |
Service.getDesiredStackId() |
StackId |
ServiceComponentImpl.getDesiredStackId() |
StackId |
ServiceComponent.getDesiredStackId() |
StackId |
ServiceImpl.getDesiredStackId() |
StackId |
ServiceComponentHost.getDesiredStackId()
Convenience method to get the desired stack id from the service component
|
StackId |
Cluster.getDesiredStackVersion()
Get desired stack version
|
StackId |
Config.getStackId()
Gets the stack that this configuration belongs to.
|
StackId |
ConfigImpl.getStackId()
Gets the stack that this configuration belongs to.
|
Modifier and Type | Method and Description |
---|---|
void |
Clusters.addCluster(String clusterName,
StackId stackId)
Add a new Cluster
|
void |
Clusters.addCluster(String clusterName,
StackId stackId,
SecurityType securityType)
Add a new cluster
|
void |
Cluster.applyLatestConfigurations(StackId stackId,
String serviceName)
Makes the most recent configurations for the specified stack current.
|
int |
StackId.compareTo(StackId other) |
boolean |
ConfigHelper.createConfigType(Cluster cluster,
StackId stackId,
AmbariManagementController controller,
String configType,
Map<String,String> properties,
Map<String,Map<String,String>> propertyAttributes,
String authenticatedUserName,
String serviceVersionNote) |
void |
ConfigHelper.createConfigType(Cluster cluster,
StackId stackId,
AmbariManagementController controller,
String configType,
Map<String,String> properties,
String authenticatedUserName,
String serviceVersionNote) |
boolean |
ConfigHelper.createConfigTypes(Cluster cluster,
StackId stackId,
AmbariManagementController controller,
Map<String,Map<String,String>> batchProperties,
String authenticatedUserName,
String serviceVersionNote)
Create configurations and assign them for services.
|
Config |
ConfigFactory.createNew(StackId stackId,
Cluster cluster,
String type,
String tag,
Map<String,String> map,
Map<String,Map<String,String>> mapAttributes)
Creates a new
Config object using provided values. |
Map<String,Set<String>> |
ConfigHelper.createUserGroupsMap(StackId stackId,
Cluster cluster,
Map<String,DesiredConfig> desiredConfigs)
Fetch user to group mapping from the cluster configs.
|
Set<String> |
ConfigHelper.findConfigTypesByPropertyName(StackId stackId,
String propertyName,
String clusterName)
Gets all the config dictionary where property with the given name is present in stack definitions
|
Map<PropertyInfo.PropertyType,Set<String>> |
Cluster.getConfigPropertiesTypes(String configType,
StackId stackId)
Gets all properties types that matches the specified type for the given stack.
|
Map<String,Map<String,ConfigMergeHelper.ThreeWayValue>> |
ConfigMergeHelper.getConflicts(String clusterName,
StackId targetStack) |
Map<String,Map<String,String>> |
ConfigHelper.getCredentialStoreEnabledProperties(StackId stackId,
Service service)
Gets a map of config types to password property names to password property value names,
that are credential store enabled.
|
Map<String,Map<String,String>> |
ConfigHelper.getDefaultProperties(StackId stack,
String serviceName) |
Map<String,Map<String,String>> |
ConfigHelper.getDefaultStackProperties(StackId stack)
Gets the default properties for the specified service.
|
Map<PropertyInfo,String> |
ConfigHelper.getPropertiesWithPropertyType(StackId stackId,
PropertyInfo.PropertyType propertyType,
Cluster cluster,
Map<String,DesiredConfig> desiredConfigs)
Fetch all the properties of a given PropertyType.
|
Set<String> |
ConfigHelper.getPropertyValuesWithPropertyType(StackId stackId,
PropertyInfo.PropertyType propertyType,
Cluster cluster,
Map<String,DesiredConfig> desiredConfigs)
Fetch all the property values of a given PropertyType.
|
Set<PropertyInfo> |
ConfigHelper.getServiceProperties(StackId stackId,
String serviceName,
boolean removeExcluded)
Retrieves a Set of PropertyInfo objects containing the relevant properties for the requested
service.
|
boolean |
Host.hasComponentsAdvertisingVersions(StackId stackId)
Gets whether this host has components which advertise their version.
|
void |
Cluster.removeConfigurations(StackId stackId,
String serviceName)
Removes all configurations for the specified service and stack.
|
void |
Cluster.setCurrentStackVersion(StackId stackVersion)
Set current stack version
|
void |
Cluster.setDesiredStackVersion(StackId stackVersion)
Set desired stack version
|
void |
ConfigHelper.updateConfigType(Cluster cluster,
StackId stackId,
AmbariManagementController controller,
String configType,
Map<String,String> updates,
Collection<String> removals,
String authenticatedUserName,
String serviceVersionNote)
A helper method to create a new
Config for a given configuration
type and updates to the current values, if any. |
Modifier and Type | Method and Description |
---|---|
StackId |
ClusterImpl.getCurrentStackVersion() |
StackId |
ClusterImpl.getDesiredStackVersion() |
Modifier and Type | Method and Description |
---|---|
void |
ClustersImpl.addCluster(String clusterName,
StackId stackId) |
void |
ClustersImpl.addCluster(String clusterName,
StackId stackId,
SecurityType securityType) |
void |
ClusterImpl.applyLatestConfigurations(StackId stackId,
String serviceName)
Makes the most recent configurations for the specified stack current.
|
Map<PropertyInfo.PropertyType,Set<String>> |
ClusterImpl.getConfigPropertiesTypes(String configType,
StackId stackId)
Gets all properties types that matches the specified type for the given stack.
|
void |
ClusterImpl.removeConfigurations(StackId stackId,
String serviceName)
Removes all configurations for the specified service and stack.
|
void |
ClusterImpl.setCurrentStackVersion(StackId stackId) |
void |
ClusterImpl.setDesiredStackVersion(StackId stackId) |
Modifier and Type | Method and Description |
---|---|
boolean |
HostImpl.hasComponentsAdvertisingVersions(StackId stackId)
Gets whether this host has components which advertise their version.
|
Modifier and Type | Method and Description |
---|---|
StackId |
ServiceComponentHostImpl.getDesiredStackId()
Convenience method to get the desired stack id from the service component
|
Modifier and Type | Method and Description |
---|---|
void |
AmbariContext.createAmbariServiceAndComponentResources(ClusterTopology topology,
String clusterName,
StackId stackId,
Long repositoryVersionId) |
Modifier and Type | Method and Description |
---|---|
Optional<StackId> |
AddServiceRequest.getStackId() |
Copyright © 2022 Apache Software Foundation. All rights reserved.