Modifier and Type | Method and Description |
---|---|
void |
Stage.addHostRoleExecutionCommand(Host host,
Role role,
RoleCommand command,
ServiceComponentHostEvent event,
Cluster cluster,
String serviceName,
boolean retryAllowed,
boolean autoSkipFailure)
A new host role command is created for execution.
|
HostRoleCommand |
HostRoleCommandFactory.create(Host host,
Role role,
ServiceComponentHostEvent event,
RoleCommand command,
boolean retryAllowed,
boolean autoSkipFailure)
Constructor via factory.
|
HostRoleCommand |
HostRoleCommandFactoryImpl.create(Host host,
Role role,
ServiceComponentHostEvent event,
RoleCommand command,
boolean retryAllowed,
boolean autoSkipFailure)
Constructor via factory.
|
Constructor and Description |
---|
HostRoleCommand(Host host,
Role role,
ServiceComponentHostEvent event,
RoleCommand roleCommand,
boolean retryAllowed,
boolean autoSkipFailure,
HostDAO hostDAO,
ExecutionCommandDAO executionCommandDAO,
ExecutionCommandWrapperFactory ecwFactory) |
Modifier and Type | Method and Description |
---|---|
Host |
AgentSessionManager.getHost(String sessionId) |
Modifier and Type | Method and Description |
---|---|
void |
AgentSessionManager.register(String sessionId,
Host host) |
Modifier and Type | Method and Description |
---|---|
MaintenanceState |
MaintenanceStateHelper.getEffectiveState(ServiceComponentHost sch,
Host host)
Get effective state of HostComponent
|
boolean |
MaintenanceStateHelper.isOperationAllowed(Host host,
long clusterId,
Resource.Type level) |
Modifier and Type | Method and Description |
---|---|
Host |
MaintenanceModeEvent.getHost()
Gets the host that had the direct maintenance mode event, or
null
if the event was not directly on a host. |
Constructor and Description |
---|
MaintenanceModeEvent(MaintenanceState state,
long clusterId,
Host host)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Host |
ConfigGroupHostMappingImpl.getHost() |
Host |
ConfigGroupHostMapping.getHost() |
Modifier and Type | Method and Description |
---|---|
void |
ConfigGroupHostMappingImpl.setHost(Host host) |
void |
ConfigGroupHostMapping.setHost(Host host) |
Modifier and Type | Method and Description |
---|---|
static Collection<Host> |
MasterHostResolver.getCandidateHosts(Cluster cluster,
ExecuteHostType executeHostType,
String serviceName,
String componentName)
Gets hosts which match the supplied criteria.
|
Modifier and Type | Method and Description |
---|---|
CommandRepository |
RepositoryVersionHelper.getCommandRepository(Cluster cluster,
ServiceComponent component,
Host host)
Builds repository information for inclusion in a command.
|
CommandRepository |
RepositoryVersionHelper.getCommandRepository(Cluster cluster,
Service service,
Host host,
String componentName) |
RepoOsEntity |
RepositoryVersionHelper.getOSEntityForHost(Host host,
RepositoryVersionEntity repoVersion)
Return repositories available for target os version on host based on
repoVersion repository definition |
String |
RepositoryVersionHelper.getRepoInfo(Cluster cluster,
ServiceComponent component,
Host host)
Deprecated.
|
String |
RepositoryVersionHelper.getRepoInfoString(Cluster cluster,
ServiceComponent component,
Host host)
Get repository info given a cluster and host.
|
Modifier and Type | Method and Description |
---|---|
Host |
ServiceComponentHost.getHost()
Get the Host this object maps to
|
Host |
Cluster.getHost(Long hostId)
Get specific host info using host id.
|
Host |
Cluster.getHost(String hostName)
Get specific host info using host name.
|
Host |
Clusters.getHost(String hostname)
Get a Host object managed by this server
|
Host |
Clusters.getHostById(Long hostId)
Get a Host object managed by this server
|
Modifier and Type | Method and Description |
---|---|
Map<Long,Host> |
Clusters.getHostIdsForCluster(String clusterName)
Gets all the host Ids associated with the cluster
|
Collection<Host> |
Cluster.getHosts()
Get all hosts associated with this cluster.
|
List<Host> |
Clusters.getHosts()
Get all hosts being tracked by the Ambari server
|
Map<String,Host> |
Clusters.getHostsForCluster(String clusterName)
Gets all the hosts associated with the cluster
|
List<Host> |
Cluster.transitionHostsToInstalling(RepositoryVersionEntity repoVersionEntity,
VersionDefinitionXml versionDefinitionXml,
boolean forceInstalled)
Creates or updates host versions for all of the hosts within a cluster
based on state of cluster stack version.
|
Modifier and Type | Method and Description |
---|---|
void |
Clusters.updateHostMappings(Host host)
Updates the internal mappings of hosts using the specified host.
|
Modifier and Type | Method and Description |
---|---|
Host |
ClusterImpl.getHost(Long hostId) |
Host |
ClustersImpl.getHost(String hostname) |
Host |
ClusterImpl.getHost(String hostName) |
Host |
ClustersImpl.getHostById(Long hostId) |
Modifier and Type | Method and Description |
---|---|
Map<Long,Host> |
ClustersImpl.getHostIdsForCluster(String clusterName) |
List<Host> |
ClustersImpl.getHosts() |
Collection<Host> |
ClusterImpl.getHosts() |
Map<String,Host> |
ClustersImpl.getHostsForCluster(String clusterName) |
List<Host> |
ClusterImpl.transitionHostsToInstalling(RepositoryVersionEntity repoVersionEntity,
VersionDefinitionXml versionDefinitionXml,
boolean forceInstalled)
Creates or updates host versions for all of the hosts within a cluster
based on state of cluster stack version.
|
Modifier and Type | Method and Description |
---|---|
void |
ClustersImpl.updateHostMappings(Host host)
Updates the internal mappings of hosts using the specified host.
|
Modifier and Type | Method and Description |
---|---|
Map<Long,Host> |
ConfigGroupImpl.getHosts() |
Map<Long,Host> |
ConfigGroup.getHosts()
Gets an unmodifiable list of
Host s. |
Modifier and Type | Method and Description |
---|---|
void |
ConfigGroupImpl.addHost(Host host) |
void |
ConfigGroup.addHost(Host host)
Add host to Config group
|
Modifier and Type | Method and Description |
---|---|
ConfigGroup |
ConfigGroupFactory.createNew(Cluster cluster,
String serviceName,
String name,
String tag,
String description,
Map<String,Config> configs,
Map<Long,Host> hosts)
Creates and saves a new
ConfigGroup . |
void |
ConfigGroupImpl.setHosts(Map<Long,Host> hosts)
Helper method to recreate host mapping
|
void |
ConfigGroup.setHosts(Map<Long,Host> hosts)
Reassign the set of hosts associated with this config group
|
Constructor and Description |
---|
ConfigGroupImpl(Cluster cluster,
String serviceName,
String name,
String tag,
String description,
Map<String,Config> configurations,
Map<Long,Host> hosts,
Clusters clusters,
ConfigFactory configFactory,
ClusterDAO clusterDAO,
HostDAO hostDAO,
ConfigGroupDAO configGroupDAO,
ConfigGroupConfigMappingDAO configGroupConfigMappingDAO,
ConfigGroupHostMappingDAO configGroupHostMappingDAO,
LockFactory lockFactory) |
Modifier and Type | Class and Description |
---|---|
class |
HostImpl |
Modifier and Type | Method and Description |
---|---|
Host |
HostFactory.create(HostEntity hostEntity) |
Modifier and Type | Method and Description |
---|---|
Host |
ServiceComponentHostImpl.getHost() |
Modifier and Type | Method and Description |
---|---|
boolean |
HostRequest.matchesHost(Host host) |
org.apache.ambari.server.topology.HostOfferResponse |
HostRequest.offer(Host host) |
org.apache.ambari.server.topology.HostOfferResponse |
LogicalRequest.offer(Host host) |
void |
TopologyManager.onHostHeartBeatLost(Host host)
Through this method
TopologyManager gets notified when a connection to a host in the cluster is lost. |
void |
PersistedState.registerInTopologyHostInfo(Host host) |
void |
PersistedStateImpl.registerInTopologyHostInfo(Host host) |
Copyright © 2022 Apache Software Foundation. All rights reserved.