Constructor and Description |
---|
RecoveryConfigComponent(ServiceComponentHost sch)
Creates
RecoveryConfigComponent instance from initialized ServiceComponentHost |
Modifier and Type | Method and Description |
---|---|
List<ServiceComponentHost> |
KerberosHelperImpl.getServiceComponentHostsToProcess(Cluster cluster,
KerberosDescriptor kerberosDescriptor,
Map<String,? extends Collection<String>> serviceComponentFilter,
Collection<String> hostFilter) |
List<ServiceComponentHost> |
KerberosHelper.getServiceComponentHostsToProcess(Cluster cluster,
KerberosDescriptor kerberosDescriptor,
Map<String,? extends Collection<String>> serviceComponentFilter,
Collection<String> hostFilter) |
Modifier and Type | Method and Description |
---|---|
MaintenanceState |
AmbariManagementController.getEffectiveMaintenanceState(ServiceComponentHost sch)
Gets the effective maintenance state for a host component
|
MaintenanceState |
AmbariManagementControllerImpl.getEffectiveMaintenanceState(ServiceComponentHost sch) |
MaintenanceState |
MaintenanceStateHelper.getEffectiveState(ServiceComponentHost sch)
Gets the effective state for a HostComponent
|
MaintenanceState |
MaintenanceStateHelper.getEffectiveState(ServiceComponentHost sch,
Host host)
Get effective state of HostComponent
|
ExecutionCommand |
AmbariManagementController.getExecutionCommand(Cluster cluster,
ServiceComponentHost scHost,
RoleCommand roleCommand)
Gets an execution command for host component life cycle command
|
ExecutionCommand |
AmbariManagementControllerImpl.getExecutionCommand(Cluster cluster,
ServiceComponentHost scHost,
RoleCommand roleCommand) |
TreeMap<String,String> |
AmbariManagementControllerImpl.getTopologyCommandParams(Long clusterId,
String serviceName,
String componentName,
ServiceComponentHost sch) |
boolean |
MaintenanceStateHelper.isOperationAllowed(Resource.Type operationLevel,
ServiceComponentHost sch)
Determine based on the requesting Resource level and the state of the
operand whether to allow operations on it.
|
Modifier and Type | Method and Description |
---|---|
RequestStageContainer |
AmbariManagementController.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 |
AmbariManagementController.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 |
AmbariManagementControllerImpl.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) |
RequestStageContainer |
AmbariManagementControllerImpl.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) |
RequestStageContainer |
AmbariManagementController.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.
|
RequestStageContainer |
AmbariManagementController.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.
|
RequestStageContainer |
AmbariManagementControllerImpl.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) |
RequestStageContainer |
AmbariManagementControllerImpl.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) |
RequestStatusResponse |
AmbariManagementController.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.
|
RequestStatusResponse |
AmbariManagementController.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.
|
RequestStatusResponse |
AmbariManagementControllerImpl.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) |
RequestStatusResponse |
AmbariManagementControllerImpl.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) |
protected RequestStageContainer |
AmbariManagementControllerImpl.doStageCreation(RequestStageContainer requestStages,
Cluster cluster,
Map<State,List<Service>> changedServices,
Map<State,List<ServiceComponent>> changedComps,
Map<String,Map<State,List<ServiceComponentHost>>> changedScHosts,
Map<String,String> requestParameters,
Map<String,String> requestProperties,
boolean runSmokeTest,
boolean reconfigureClients,
boolean useLatestConfigs,
boolean useClusterHostInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
UsedIdentities.ComponentExclude.shouldExclude(String serviceName,
String componentName,
Collection<ServiceComponentHost> hosts) |
Modifier and Type | Field and Description |
---|---|
protected ServiceComponentHost |
HostComponentVersionAdvertisedEvent.sch |
Modifier and Type | Method and Description |
---|---|
ServiceComponentHost |
MaintenanceModeEvent.getServiceComponentHost()
Gets the component that had the direct maintenance mode event, or
null if the event was not directly on a component. |
ServiceComponentHost |
HostComponentVersionAdvertisedEvent.getServiceComponentHost() |
Constructor and Description |
---|
HostComponentVersionAdvertisedEvent(Cluster cluster,
ServiceComponentHost sch,
String version)
Constructor.
|
HostComponentVersionAdvertisedEvent(Cluster cluster,
ServiceComponentHost sch,
String version,
Long repoVersionId)
Constructor.
|
MaintenanceModeEvent(MaintenanceState state,
ServiceComponentHost serviceComponentHost)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Component |
Component.fromServiceComponentHost(ServiceComponentHost serviceComponentHost) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractPrepareKerberosServerAction.processServiceComponentHosts(Cluster cluster,
KerberosDescriptor kerberosDescriptor,
List<ServiceComponentHost> schToProcess,
Collection<String> identityFilter,
String dataDirectory,
Map<String,Map<String,String>> currentConfigurations,
Map<String,Map<String,String>> kerberosConfigurations,
boolean includeAmbariIdentity,
Map<String,Set<String>> propertiesToBeIgnored) |
Modifier and Type | Field and Description |
---|---|
List<ServiceComponentHost> |
HostsType.unhealthy
Unhealthy hosts are those which are explicitly put into maintenance mode.
|
Modifier and Type | Method and Description |
---|---|
void |
UpgradeContext.addUnhealthy(List<ServiceComponentHost> unhealthy) |
Modifier and Type | Method and Description |
---|---|
ServiceComponentHost |
ServiceComponentImpl.addServiceComponentHost(String hostName) |
ServiceComponentHost |
ServiceComponent.addServiceComponentHost(String hostName) |
ServiceComponentHost |
ServiceComponentHostFactory.createExisting(ServiceComponent serviceComponent,
HostComponentStateEntity stateEntity,
HostComponentDesiredStateEntity desiredStateEntity) |
ServiceComponentHost |
ServiceComponentHostFactory.createNew(ServiceComponent serviceComponent,
String hostName) |
ServiceComponentHost |
ServiceComponentHostFactory.createNew(ServiceComponent serviceComponent,
String hostName,
ServiceComponentDesiredStateEntity serviceComponentDesiredStateEntity) |
ServiceComponentHost |
ServiceComponentImpl.getServiceComponentHost(String hostname) |
ServiceComponentHost |
ServiceComponent.getServiceComponentHost(String hostname) |
Modifier and Type | Method and Description |
---|---|
Map<String,ServiceComponentHost> |
ServiceComponentImpl.getServiceComponentHosts() |
List<ServiceComponentHost> |
Cluster.getServiceComponentHosts()
Get all ServiceComponentHosts for this cluster.
|
Map<String,ServiceComponentHost> |
ServiceComponent.getServiceComponentHosts() |
List<ServiceComponentHost> |
Cluster.getServiceComponentHosts(String hostname)
Get all ServiceComponentHosts on a given host
|
List<ServiceComponentHost> |
Cluster.getServiceComponentHosts(String serviceName,
String componentName)
Get all ServiceComponentHosts for a given service and optional component
If the component name is
null , all components for the requested service will be returned. |
Modifier and Type | Method and Description |
---|---|
void |
ServiceComponentImpl.addServiceComponentHost(ServiceComponentHost hostComponent) |
void |
ServiceComponent.addServiceComponentHost(ServiceComponentHost hostComponent) |
boolean |
ConfigHelper.checkStaleConfigsStatusForHostComponent(ServiceComponentHost sch,
Map<String,Collection<String>> changedConfigs)
Checks configs are stale for specified host component.
|
static void |
State.checkUpdateConfiguration(ServiceComponentHost serviceComponentHost,
State currentState,
State desiredState)
Determine whether or not it is safe to update the configuration of the given service
component host for the given states.
|
String |
RefreshCommandConfiguration.getRefreshCommandForComponent(ServiceComponentHost sch,
String propertyName)
If no command is defined for a component then the default command will be REFRESH_CONFIGS in case of a client component or
if there's only one command defined for an another component.
|
String |
ConfigHelper.getRefreshConfigsCommand(Cluster cluster,
ServiceComponentHost sch) |
boolean |
ConfigHelper.isStaleConfigs(ServiceComponentHost sch,
Map<String,DesiredConfig> requestDesiredConfigs)
The purpose of this method is to determine if a
ServiceComponentHost 's known actual configs are different than what
is set on the cluster (the desired). |
boolean |
ConfigHelper.isStaleConfigs(ServiceComponentHost sch,
Map<String,DesiredConfig> requestDesiredConfigs,
HostComponentDesiredStateEntity hostComponentDesiredStateEntity) |
void |
Cluster.removeServiceComponentHost(ServiceComponentHost svcCompHost)
Remove ServiceComponentHost from cluster
|
Modifier and Type | Method and Description |
---|---|
void |
Cluster.addServiceComponentHosts(Collection<ServiceComponentHost> serviceComponentHosts)
Adds schs to cluster AND persists them
TODO consider making persisting optional
|
void |
ServiceComponentImpl.addServiceComponentHosts(Map<String,ServiceComponentHost> hostComponents) |
void |
ServiceComponent.addServiceComponentHosts(Map<String,ServiceComponentHost> hostComponents) |
Modifier and Type | Method and Description |
---|---|
ServiceComponentHost |
ClusterImpl.getServiceComponentHost(String serviceName,
String serviceComponentName,
String hostname) |
Modifier and Type | Method and Description |
---|---|
List<ServiceComponentHost> |
ClusterImpl.getServiceComponentHosts() |
List<ServiceComponentHost> |
ClusterImpl.getServiceComponentHosts(String hostname) |
List<ServiceComponentHost> |
ClusterImpl.getServiceComponentHosts(String serviceName,
String componentName) |
Modifier and Type | Method and Description |
---|---|
void |
ClusterImpl.addServiceComponentHost(ServiceComponentHost svcCompHost) |
void |
ClusterImpl.removeServiceComponentHost(ServiceComponentHost svcCompHost) |
Modifier and Type | Method and Description |
---|---|
void |
ClusterImpl.addServiceComponentHosts(Collection<ServiceComponentHost> serviceComponentHosts) |
Modifier and Type | Class and Description |
---|---|
class |
ServiceComponentHostImpl |
Copyright © 2022 Apache Software Foundation. All rights reserved.