public interface AmbariManagementController
Modifier and Type | Method and Description |
---|---|
RequestStageContainer |
addStages(RequestStageContainer requestStages,
Cluster cluster,
Map<String,String> requestProperties,
Map<String,String> requestParameters,
Map<State,List<Service>> changedServices,
Map<State,List<ServiceComponent>> changedComponents,
Map<String,Map<State,List<ServiceComponentHost>>> changedHosts,
Collection<ServiceComponentHost> ignoredHosts,
boolean runSmokeTest,
boolean reconfigureClients,
boolean useGeneratedConfigs)
Add stages to the request.
|
RequestStageContainer |
addStages(RequestStageContainer requestStages,
Cluster cluster,
Map<String,String> requestProperties,
Map<String,String> requestParameters,
Map<State,List<Service>> changedServices,
Map<State,List<ServiceComponent>> changedComponents,
Map<String,Map<State,List<ServiceComponentHost>>> changedHosts,
Collection<ServiceComponentHost> ignoredHosts,
boolean runSmokeTest,
boolean reconfigureClients,
boolean useGeneratedConfigs,
boolean useClusterHostInfo)
Add stages to the request.
|
boolean |
checkLdapConfigured()
Performs a test if LDAP server is reachable.
|
RequestStatusResponse |
createAction(ExecuteActionRequest actionRequest,
Map<String,String> requestProperties)
Create the action defined by the attributes in the given request object.
|
RequestStatusResponse |
createAndPersistStages(Cluster cluster,
Map<String,String> requestProperties,
Map<String,String> requestParameters,
Map<State,List<Service>> changedServices,
Map<State,List<ServiceComponent>> changedComponents,
Map<String,Map<State,List<ServiceComponentHost>>> changedHosts,
Collection<ServiceComponentHost> ignoredHosts,
boolean runSmokeTest,
boolean reconfigureClients)
Create and persist the request stages and return a response containing the
associated request and resulting tasks.
|
void |
createCluster(ClusterRequest request)
Create the cluster defined by the attributes in the given request object.
|
Config |
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
|
ConfigurationResponse |
createConfiguration(ConfigurationRequest request)
Creates a configuration.
|
void |
createExtensionLink(ExtensionLinkRequest request)
Create a link between an extension and a stack
|
void |
createGroups(Set<GroupRequest> requests)
Creates groups.
|
void |
createHostComponents(Set<ServiceComponentHostRequest> requests)
Create the host component defined by the attributes in the given request object.
|
void |
createHostComponents(Set<ServiceComponentHostRequest> requests,
boolean isBlueprintProvisioned)
Create the host component defined by the attributes in the given request object.
|
void |
createMembers(Set<MemberRequest> requests)
Creates members of the group.
|
Set<ServiceConfigVersionResponse> |
createServiceConfigVersion(Set<ServiceConfigVersionRequest> requests)
Creates serviceconfigversions and corresponding new configurations if it is an initial request
OR
Rollbacks to an existing serviceconfigversion if request specifies.
|
void |
deleteCluster(ClusterRequest request)
Delete the cluster identified by the given request object.
|
void |
deleteExtensionLink(ExtensionLinkRequest request)
Delete a link between an extension and a stack
|
void |
deleteGroups(Set<GroupRequest> requests)
Deletes the user groups specified.
|
DeleteStatusMetaData |
deleteHostComponents(Set<ServiceComponentHostRequest> requests)
Delete the host component identified by the given request object.
|
void |
deleteMembers(Set<MemberRequest> requests)
Deletes the group members specified.
|
Map<String,Map<String,String>> |
findConfigurationTagsWithOverrides(Cluster cluster,
String hostName)
Find configuration tags with applied overrides
|
String |
findServiceName(Cluster cluster,
String componentName)
Get service name by cluster instance and component name
|
ActionManager |
getActionManager()
Get the action manager for this management controller.
|
TopologyUpdateEvent |
getAddedComponentsTopologyEvent(Set<ServiceComponentHostRequest> requests) |
AmbariEventPublisher |
getAmbariEventPublisher()
Gets an
AmbariEventPublisher which can be used to send and receive
AmbariEvent s. |
AmbariMetaInfo |
getAmbariMetaInfo()
Get the meta info for this management controller.
|
String |
getAmbariServerURI(String path)
Get an Ambari endpoint URI for the given path.
|
int |
getAuthId()
Get the authenticated user's id.
|
String |
getAuthName()
Get the authenticated user's name.
|
Map<String,BlueprintProvisioningState> |
getBlueprintProvisioningStates(Long clusterId,
Long hostId) |
MetadataUpdateEvent |
getClusterMetadataOnConfigsUpdate(Cluster cluster) |
Clusters |
getClusters()
Get the clusters for this management controller.
|
Set<ClusterResponse> |
getClusters(Set<ClusterRequest> requests)
Get the clusters identified by the given request objects.
|
ClusterResponse |
getClusterUpdateResults(ClusterRequest clusterRequest)
Get cached clusterUpdateResults, used only for service config versions currently
|
ConfigGroupFactory |
getConfigGroupFactory()
Get the config group factory for this management controller.
|
ConfigGroupResponse |
getConfigGroupUpdateResults(ConfigGroupRequest configGroupRequest) |
ConfigHelper |
getConfigHelper()
Get config helper
|
Set<ConfigurationResponse> |
getConfigurations(Set<ConfigurationRequest> requests)
Gets the configurations identified by the given request objects.
|
CredentialStoreService |
getCredentialStoreService()
Returns the CredentialStoreService implementation associated with this
controller
|
MaintenanceState |
getEffectiveMaintenanceState(ServiceComponentHost sch)
Gets the effective maintenance state for a host component
|
ExecutionCommand |
getExecutionCommand(Cluster cluster,
ServiceComponentHost scHost,
RoleCommand roleCommand)
Gets an execution command for host component life cycle command
|
ExecutionScheduleManager |
getExecutionScheduleManager()
Get Execution Schedule Manager
|
Set<ExtensionResponse> |
getExtensions(Set<ExtensionRequest> requests)
Get supported extensions.
|
Set<ExtensionVersionResponse> |
getExtensionVersions(Set<ExtensionVersionRequest> requests)
Get supported extension versions.
|
Set<GroupResponse> |
getGroups(Set<GroupRequest> requests)
Gets the user groups identified by the given request objects.
|
String |
getHealthyHost(Set<String> hostList)
Chooses a healthy host from the list of candidate hosts randomly.
|
Set<ServiceComponentHostResponse> |
getHostComponents(Set<ServiceComponentHostRequest> requests)
Get the host components identified by the given request objects.
|
Set<ServiceComponentHostResponse> |
getHostComponents(Set<ServiceComponentHostRequest> requests,
boolean statusOnly) |
String |
getJavaHome()
Getter for the java home, stored in ambari.properties
|
String |
getJCEName()
Getter for the jce name, stored in ambari.properties
|
String |
getJDKName()
Getter for the jdk name, stored in ambari.properties
|
String |
getJdkResourceUrl()
Getter for the url of JDK, stored at server resources folder
|
String |
getJobTrackerHost(Cluster cluster)
Deprecated.
|
KerberosHelper |
getKerberosHelper()
Returns KerberosHelper instance
|
LdapSyncDto |
getLdapSyncInfo()
Retrieves groups and users from external LDAP.
|
LoggingSearchPropertyProvider |
getLoggingSearchPropertyProvider()
Gets the LoggingSearchPropertyProvider instance.
|
LoggingService |
getLoggingService(String clusterName)
Gets the LoggingService instance from the dependency injection framework.
|
Set<MemberResponse> |
getMembers(Set<MemberRequest> requests)
Gets the group members identified by the given request objects.
|
MetricPropertyProviderFactory |
getMetricPropertyProviderFactory()
Gets the
MetricPropertyProviderFactory that was injected into this
class. |
MetricsCollectorHAManager |
getMetricsCollectorHAManager()
Gets an
MetricsCollectorHAManager which can be used to get/add collector host for a cluster |
List<Module> |
getModules(Long mpackId)
Fetch the module info for a given mpack.
|
MpackResponse |
getMpack(Long mpackId)
Fetch an mpack based on id
|
Set<MpackResponse> |
getMpacks()
Fetch all mpacks
|
String |
getMysqljdbcUrl()
Getter for the url of MySQL JDBC driver, stored at server resources folder
|
String |
getOjdbcUrl()
Getter for the url of Oracle JDBC driver, stored at server resources folder
|
Set<OperatingSystemResponse> |
getOperatingSystems(Set<OperatingSystemRequest> requests)
Get operating systems by stack name, version.
|
List<ServiceOsSpecific.Package> |
getPackagesForServiceHost(ServiceInfo serviceInfo,
Map<String,String> hostParams,
String osFamily) |
QuickLinkVisibilityController |
getQuicklinkVisibilityController() |
Map<String,String> |
getRcaParameters()
Returns parameters for RCA database
|
Set<RepositoryResponse> |
getRepositories(Set<RepositoryRequest> requests)
Get repositories by stack name, version and operating system.
|
RequestExecutionFactory |
getRequestExecutionFactory()
Get the Factory to create Request schedules
|
RoleCommandOrder |
getRoleCommandOrder(Cluster cluster)
Get Role Command Order
|
RoleGraphFactory |
getRoleGraphFactory()
Get the role graph factory for this management controller.
|
Set<RootServiceComponentResponse> |
getRootServiceComponents(Set<RootServiceComponentRequest> requests)
Get all components of top-level services of Ambari, not related to certain cluster.
|
AbstractRootServiceResponseFactory |
getRootServiceResponseFactory()
Get the root service response factory for this management controller.
|
Set<RootServiceResponse> |
getRootServices(Set<RootServiceRequest> requests)
Get all top-level services of Ambari, not related to certain cluster.
|
String |
getServerDB()
Getter for the name of server database
|
ServiceComponentFactory |
getServiceComponentFactory()
Get the service component factory for this management controller.
|
Set<ServiceConfigVersionResponse> |
getServiceConfigVersions(Set<ServiceConfigVersionRequest> requests)
Get service config version history
|
Set<StackServiceComponentResponse> |
getStackComponents(Set<StackServiceComponentRequest> requests)
Get components by stack name, version and service.
|
Set<StackConfigurationDependencyResponse> |
getStackConfigurationDependencies(Set<StackConfigurationDependencyRequest> requests)
Get configuration dependencies which are specific for a specific service configuration property
|
Set<StackConfigurationResponse> |
getStackConfigurations(Set<StackConfigurationRequest> requests)
Get configurations by stack name, version and service.
|
Set<StackConfigurationResponse> |
getStackLevelConfigurations(Set<StackLevelConfigurationRequest> requests)
Get configurations which are specific for a cluster (!not a service).
|
Set<StackResponse> |
getStacks(Set<StackRequest> requests)
Get supported stacks.
|
Set<StackServiceResponse> |
getStackServices(Set<StackServiceRequest> requests)
Get repositories by stack name, version.
|
Set<StackVersionResponse> |
getStackVersions(Set<StackVersionRequest> requests)
Get supported stacks versions.
|
TimelineMetricCacheProvider |
getTimelineMetricCacheProvider() |
void |
initializeWidgetsAndLayouts(Cluster cluster,
Service service)
Initialize cluster scoped widgets and widgetLayouts for different stack
components.
|
boolean |
isLdapSyncInProgress()
Checks if LDAP sync process is running.
|
MpackResponse |
registerMpack(MpackRequest request)
Register the mpack defined by the attributes in the given request object.
|
void |
registerRackChange(String clusterName)
Register a change in rack information for the hosts of the given cluster.
|
void |
removeMpack(MpackEntity mpackEntity,
StackEntity stackEntity)
Remove Mpack from the mpackMap and stackMap which is used to power the Mpack and Stack APIs.
|
void |
saveConfigGroupUpdate(ConfigGroupRequest configGroupRequest,
ConfigGroupResponse configGroupResponse) |
List<String> |
selectHealthyHosts(Set<String> hostList)
Filters hosts to only select healthy ones that are heartbeating.
|
LdapBatchDto |
synchronizeLdapUsersAndGroups(LdapSyncRequest userRequest,
LdapSyncRequest groupRequest)
Synchronizes local users and groups with given data.
|
RequestStatusResponse |
updateClusters(Set<ClusterRequest> requests,
Map<String,String> requestProperties)
Update the cluster identified by the given request object with the
values carried by the given request object.
|
RequestStatusResponse |
updateClusters(Set<ClusterRequest> requests,
Map<String,String> requestProperties,
boolean fireAgentUpdates)
Update the cluster identified by the given request object with the
values carried by the given request object.
|
void |
updateExtensionLink(ExtensionLinkEntity oldLinkEntity,
ExtensionLinkRequest newLinkRequest)
Update a link - switch the link's extension version while keeping the same stack version and extension name
|
void |
updateExtensionLink(ExtensionLinkRequest request)
Update a link - switch the link's extension version while keeping the same stack version and extension name
|
void |
updateGroups(Set<GroupRequest> requests)
Updates the groups specified.
|
void |
updateMembers(Set<MemberRequest> requests)
Updates the members of the group specified.
|
RequestStatusResponse |
updateStacks()
Update stacks from the files at stackRoot.
|
void |
verifyRepositories(Set<RepositoryRequest> requests)
Verifies repositories' base urls.
|
String getAmbariServerURI(String path)
path
- the path (e.g. /api/v1/users)void createCluster(ClusterRequest request) throws org.apache.ambari.server.AmbariException, AuthorizationException
request
- the request object which defines the cluster to be createdorg.apache.ambari.server.AmbariException
- thrown if the cluster cannot be createdAuthorizationException
- thrown if the authenticated user is not authorized to perform this operationvoid createHostComponents(Set<ServiceComponentHostRequest> requests) throws org.apache.ambari.server.AmbariException, AuthorizationException
requests
- the request object which defines the host component to be createdorg.apache.ambari.server.AmbariException
- thrown if the host component cannot be createdAuthorizationException
void createHostComponents(Set<ServiceComponentHostRequest> requests, boolean isBlueprintProvisioned) throws org.apache.ambari.server.AmbariException, AuthorizationException
requests
- the request object which defines the host component to be createdisBlueprintProvisioned
- means host components will be created during blueprint deployorg.apache.ambari.server.AmbariException
- thrown if the host component cannot be createdAuthorizationException
ConfigurationResponse createConfiguration(ConfigurationRequest request) throws org.apache.ambari.server.AmbariException, AuthorizationException
request
- the request object which defines the configuration.org.apache.ambari.server.AmbariException
- when the configuration cannot be created.AuthorizationException
Config createConfig(Cluster cluster, StackId stackId, String type, Map<String,String> properties, String versionTag, Map<String,Map<String,String>> propertiesAttributes)
void createGroups(Set<GroupRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the request objects which define the groups.org.apache.ambari.server.AmbariException
- when the groups cannot be created.void createMembers(Set<MemberRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the request objects which define the members.org.apache.ambari.server.AmbariException
- when the members cannot be created.MpackResponse registerMpack(MpackRequest request) throws IOException, AuthorizationException, ResourceAlreadyExistsException
request
- the request object which defines the mpack to be createdorg.apache.ambari.server.AmbariException
- thrown if the mpack cannot be createdAuthorizationException
- thrown if the authenticated user is not authorized to perform this operationIOException
ResourceAlreadyExistsException
Set<ClusterResponse> getClusters(Set<ClusterRequest> requests) throws org.apache.ambari.server.AmbariException, AuthorizationException
requests
- the request objects which identify the clusters to be returnedorg.apache.ambari.server.AmbariException
- thrown if the resource cannot be readAuthorizationException
- thrown if the authenticated user is not authorized to perform this operationSet<ServiceComponentHostResponse> getHostComponents(Set<ServiceComponentHostRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the request objects which identify the host components
to be returnedorg.apache.ambari.server.AmbariException
- thrown if the resource cannot be readSet<ServiceComponentHostResponse> getHostComponents(Set<ServiceComponentHostRequest> requests, boolean statusOnly) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
Set<ConfigurationResponse> getConfigurations(Set<ConfigurationRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the request objectsorg.apache.ambari.server.AmbariException
- if the configurations could not be readSet<ServiceConfigVersionResponse> getServiceConfigVersions(Set<ServiceConfigVersionRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- service config version requestsorg.apache.ambari.server.AmbariException
Set<GroupResponse> getGroups(Set<GroupRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the request objectsorg.apache.ambari.server.AmbariException
- if the groups could not be readSet<MemberResponse> getMembers(Set<MemberRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the request objectsorg.apache.ambari.server.AmbariException
- if the members could not be readRequestStatusResponse updateClusters(Set<ClusterRequest> requests, Map<String,String> requestProperties) throws org.apache.ambari.server.AmbariException, AuthorizationException
requests
- request objects which define which cluster to
update and the values to setrequestProperties
- request specific properties independent of resourceorg.apache.ambari.server.AmbariException
- thrown if the resource cannot be updatedAuthorizationException
- thrown if the authenticated user is not authorized to perform this operationRequestStatusResponse updateClusters(Set<ClusterRequest> requests, Map<String,String> requestProperties, boolean fireAgentUpdates) throws org.apache.ambari.server.AmbariException, AuthorizationException
requests
- request objects which define which cluster to
update and the values to setrequestProperties
- request specific properties independent of resourcefireAgentUpdates
- should agent updates (configurations, metadata etc.) be fired insideorg.apache.ambari.server.AmbariException
- thrown if the resource cannot be updatedAuthorizationException
- thrown if the authenticated user is not authorized to perform this operationvoid updateGroups(Set<GroupRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the groups to modifyorg.apache.ambari.server.AmbariException
- if the resources cannot be updatedvoid updateMembers(Set<MemberRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the members to be set for this grouporg.apache.ambari.server.AmbariException
- if the resources cannot be updatedvoid deleteCluster(ClusterRequest request) throws org.apache.ambari.server.AmbariException
request
- the request object which identifies which cluster to deleteorg.apache.ambari.server.AmbariException
- thrown if the resource cannot be deletedDeleteStatusMetaData deleteHostComponents(Set<ServiceComponentHostRequest> requests) throws org.apache.ambari.server.AmbariException, AuthorizationException
requests
- the request object which identifies which host component to deleteorg.apache.ambari.server.AmbariException
- thrown if the resource cannot be deletedAuthorizationException
void deleteGroups(Set<GroupRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the groups to deleteorg.apache.ambari.server.AmbariException
- if the resources cannot be deletedvoid deleteMembers(Set<MemberRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the members to deleteorg.apache.ambari.server.AmbariException
- if the resources cannot be deletedRequestStatusResponse createAction(ExecuteActionRequest actionRequest, Map<String,String> requestProperties) throws org.apache.ambari.server.AmbariException
actionRequest
- the request object which defines the action to be createdrequestProperties
- the request propertiesorg.apache.ambari.server.AmbariException
- thrown if the action cannot be createdSet<StackResponse> getStacks(Set<StackRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the stacksorg.apache.ambari.server.AmbariException
- if the resources cannot be readRequestStatusResponse updateStacks() throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
- ifvoid createExtensionLink(ExtensionLinkRequest request) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
- if we fail to link the extension to the stackvoid updateExtensionLink(ExtensionLinkRequest request) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
- if we fail to link the extension to the stackvoid updateExtensionLink(ExtensionLinkEntity oldLinkEntity, ExtensionLinkRequest newLinkRequest) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
- if we fail to link the extension to the stackvoid deleteExtensionLink(ExtensionLinkRequest request) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
- if we fail to unlink the extension from the stackSet<ExtensionResponse> getExtensions(Set<ExtensionRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the extensionsorg.apache.ambari.server.AmbariException
- if the resources cannot be readSet<ExtensionVersionResponse> getExtensionVersions(Set<ExtensionVersionRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the extension versionsorg.apache.ambari.server.AmbariException
- if the resources cannot be readSet<StackVersionResponse> getStackVersions(Set<StackVersionRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the stacks versionsorg.apache.ambari.server.AmbariException
- if the resources cannot be readSet<RepositoryResponse> getRepositories(Set<RepositoryRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the repositoriesorg.apache.ambari.server.AmbariException
- if the resources cannot be readvoid verifyRepositories(Set<RepositoryRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the repositoriesorg.apache.ambari.server.AmbariException
- if verification of any of urls failsSet<StackServiceResponse> getStackServices(Set<StackServiceRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the servicesorg.apache.ambari.server.AmbariException
- if the resources cannot be readSet<StackConfigurationResponse> getStackConfigurations(Set<StackConfigurationRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the configurationsorg.apache.ambari.server.AmbariException
- if the resources cannot be readSet<StackServiceComponentResponse> getStackComponents(Set<StackServiceComponentRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the componentsorg.apache.ambari.server.AmbariException
- if the resources cannot be readSet<OperatingSystemResponse> getOperatingSystems(Set<OperatingSystemRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the operating systemsorg.apache.ambari.server.AmbariException
- if the resources cannot be readSet<RootServiceResponse> getRootServices(Set<RootServiceRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the top-level servicesorg.apache.ambari.server.AmbariException
- if the resources cannot be readSet<RootServiceComponentResponse> getRootServiceComponents(Set<RootServiceComponentRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- the components of top-level servicesorg.apache.ambari.server.AmbariException
- if the resources cannot be readString findServiceName(Cluster cluster, String componentName) throws org.apache.ambari.server.AmbariException
cluster
- the cluster instancecomponentName
- the component name in String typeorg.apache.ambari.server.AmbariException
- if service name is null or emptyClusters getClusters()
ConfigHelper getConfigHelper()
AmbariMetaInfo getAmbariMetaInfo()
ServiceComponentFactory getServiceComponentFactory()
AbstractRootServiceResponseFactory getRootServiceResponseFactory()
ConfigGroupFactory getConfigGroupFactory()
RoleGraphFactory getRoleGraphFactory()
ActionManager getActionManager()
String getAuthName()
int getAuthId()
RequestStatusResponse createAndPersistStages(Cluster cluster, Map<String,String> requestProperties, Map<String,String> requestParameters, Map<State,List<Service>> changedServices, Map<State,List<ServiceComponent>> changedComponents, Map<String,Map<State,List<ServiceComponentHost>>> changedHosts, Collection<ServiceComponentHost> ignoredHosts, boolean runSmokeTest, boolean reconfigureClients) throws org.apache.ambari.server.AmbariException
cluster
- the clusterrequestProperties
- the request propertiesrequestParameters
- the request parameters; may be nullchangedServices
- the services being changed; may be nullchangedComponents
- the components being changedchangedHosts
- the hosts being changedignoredHosts
- the hosts to be ignoredrunSmokeTest
- indicates whether or not the smoke tests should be runreconfigureClients
- indicates whether or not the clients should be reconfiguredorg.apache.ambari.server.AmbariException
- is thrown if the stages can not be createdRequestStageContainer addStages(RequestStageContainer requestStages, Cluster cluster, Map<String,String> requestProperties, Map<String,String> requestParameters, Map<State,List<Service>> changedServices, Map<State,List<ServiceComponent>> changedComponents, Map<String,Map<State,List<ServiceComponentHost>>> changedHosts, Collection<ServiceComponentHost> ignoredHosts, boolean runSmokeTest, boolean reconfigureClients, boolean useGeneratedConfigs) throws org.apache.ambari.server.AmbariException
requestStages
- Stages currently associated with requestcluster
- cluster being acted onrequestProperties
- the request propertiesrequestParameters
- the request parameters; may be nullchangedServices
- the services being changed; may be nullchangedComponents
- the components being changedchangedHosts
- the hosts being changedignoredHosts
- the hosts to be ignoredrunSmokeTest
- indicates whether or not the smoke tests should be runreconfigureClients
- indicates whether or not the clients should be reconfiguredorg.apache.ambari.server.AmbariException
- if stages can't be createdRequestStageContainer addStages(RequestStageContainer requestStages, Cluster cluster, Map<String,String> requestProperties, Map<String,String> requestParameters, Map<State,List<Service>> changedServices, Map<State,List<ServiceComponent>> changedComponents, Map<String,Map<State,List<ServiceComponentHost>>> changedHosts, Collection<ServiceComponentHost> ignoredHosts, boolean runSmokeTest, boolean reconfigureClients, boolean useGeneratedConfigs, boolean useClusterHostInfo) throws org.apache.ambari.server.AmbariException
requestStages
- Stages currently associated with requestcluster
- cluster being acted onrequestProperties
- the request propertiesrequestParameters
- the request parameters; may be nullchangedServices
- the services being changed; may be nullchangedComponents
- the components being changedchangedHosts
- the hosts being changedignoredHosts
- the hosts to be ignoredrunSmokeTest
- indicates whether or not the smoke tests should be runreconfigureClients
- indicates whether or not the clients should be reconfigureduseGeneratedConfigs
- indicates whether or not the actual configs should be a part of the stageuseClusterHostInfo
- indicates whether or not the cluster topology info should be a part of the stageorg.apache.ambari.server.AmbariException
- if stages can't be createdString getJdkResourceUrl()
String getJavaHome()
String getJDKName()
String getJCEName()
String getServerDB()
String getOjdbcUrl()
String getMysqljdbcUrl()
List<String> selectHealthyHosts(Set<String> hostList) throws org.apache.ambari.server.AmbariException
HostState
is used to determine if a host is healthy.org.apache.ambari.server.AmbariException
HostState#HEALTHY}
String getHealthyHost(Set<String> hostList) throws org.apache.ambari.server.AmbariException
null
.
The host's HostState
is used to determine if a host is healthy.null
.org.apache.ambari.server.AmbariException
HostState#HEALTHY}
Map<String,Map<String,String>> findConfigurationTagsWithOverrides(Cluster cluster, String hostName) throws org.apache.ambari.server.AmbariException
cluster
- the clusterhostName
- the host nameorg.apache.ambari.server.AmbariException
- if configuration tags can not be obtainedMap<String,String> getRcaParameters()
RequestExecutionFactory getRequestExecutionFactory()
ExecutionScheduleManager getExecutionScheduleManager()
ClusterResponse getClusterUpdateResults(ClusterRequest clusterRequest)
clusterRequest
- @Deprecated String getJobTrackerHost(Cluster cluster)
MaintenanceState getEffectiveMaintenanceState(ServiceComponentHost sch) throws org.apache.ambari.server.AmbariException
sch
- the service component hostorg.apache.ambari.server.AmbariException
RoleCommandOrder getRoleCommandOrder(Cluster cluster)
boolean checkLdapConfigured()
LdapSyncDto getLdapSyncInfo() throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
- if LDAP is configured incorrectlyLdapBatchDto synchronizeLdapUsersAndGroups(LdapSyncRequest userRequest, LdapSyncRequest groupRequest) throws org.apache.ambari.server.AmbariException
userRequest
- users to be synchronizedgroupRequest
- groups to be synchronizedorg.apache.ambari.server.AmbariException
- if synchronization data was invalidboolean isLdapSyncInProgress()
Set<StackConfigurationResponse> getStackLevelConfigurations(Set<StackLevelConfigurationRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- org.apache.ambari.server.AmbariException
List<ServiceOsSpecific.Package> getPackagesForServiceHost(ServiceInfo serviceInfo, Map<String,String> hostParams, String osFamily)
serviceInfo
- service info for a given servicehostParams
- parameter map. May be changed during method executionosFamily
- os family for hostvoid registerRackChange(String clusterName) throws org.apache.ambari.server.AmbariException
clusterName
- the name of the clusterorg.apache.ambari.server.AmbariException
- if an error occurs during the rack change registrationvoid initializeWidgetsAndLayouts(Cluster cluster, Service service) throws org.apache.ambari.server.AmbariException
cluster
- @Cluster objectservice
- @Service objectorg.apache.ambari.server.AmbariException
ExecutionCommand getExecutionCommand(Cluster cluster, ServiceComponentHost scHost, RoleCommand roleCommand) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
Set<StackConfigurationDependencyResponse> getStackConfigurationDependencies(Set<StackConfigurationDependencyRequest> requests) throws org.apache.ambari.server.AmbariException
requests
- org.apache.ambari.server.AmbariException
TimelineMetricCacheProvider getTimelineMetricCacheProvider()
MetricPropertyProviderFactory getMetricPropertyProviderFactory()
MetricPropertyProviderFactory
that was injected into this
class. This is a terrible pattern.MetricPropertyProviderFactory
LoggingSearchPropertyProvider getLoggingSearchPropertyProvider()
LoggingSearchPropertyProvider
LoggingService getLoggingService(String clusterName)
clusterName
- the cluster name associated with this LoggingService instanceKerberosHelper getKerberosHelper()
CredentialStoreService getCredentialStoreService()
AmbariEventPublisher getAmbariEventPublisher()
AmbariEventPublisher
which can be used to send and receive
AmbariEvent
s.MetricsCollectorHAManager getMetricsCollectorHAManager()
MetricsCollectorHAManager
which can be used to get/add collector host for a clusterMetricsCollectorHAManager
QuickLinkVisibilityController getQuicklinkVisibilityController()
ConfigGroupResponse getConfigGroupUpdateResults(ConfigGroupRequest configGroupRequest)
void saveConfigGroupUpdate(ConfigGroupRequest configGroupRequest, ConfigGroupResponse configGroupResponse)
MetadataUpdateEvent getClusterMetadataOnConfigsUpdate(Cluster cluster) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
TopologyUpdateEvent getAddedComponentsTopologyEvent(Set<ServiceComponentHostRequest> requests) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
Map<String,BlueprintProvisioningState> getBlueprintProvisioningStates(Long clusterId, Long hostId) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
List<Module> getModules(Long mpackId)
mpackId
- void removeMpack(MpackEntity mpackEntity, StackEntity stackEntity) throws IOException
mpackEntity
- stackEntity
- IOException
Set<ServiceConfigVersionResponse> createServiceConfigVersion(Set<ServiceConfigVersionRequest> requests) throws org.apache.ambari.server.AmbariException, AuthorizationException
requests
- org.apache.ambari.server.AmbariException
AuthorizationException
Set<MpackResponse> getMpacks()
MpackResponse getMpack(Long mpackId)
mpackId
- Copyright © 2022 Apache Software Foundation. All rights reserved.