@Public
@Stable
public abstract class RegisterApplicationMasterRequest
extends java.lang.Object
ApplicationMaster to ResourceManager
on registration.
The registration includes details such as:
| Constructor | Description |
|---|---|
RegisterApplicationMasterRequest() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract java.lang.String |
getHost() |
Get the host on which the
ApplicationMaster is
running. |
java.util.Map<java.util.Set<java.lang.String>,PlacementConstraint> |
getPlacementConstraints() |
Return all Placement Constraints specified at the Application level.
|
abstract int |
getRpcPort() |
Get the RPC port on which the
ApplicationMaster is
responding. |
abstract java.lang.String |
getTrackingUrl() |
Get the tracking URL for the
ApplicationMaster. |
static RegisterApplicationMasterRequest |
newInstance(java.lang.String host,
int port,
java.lang.String trackingUrl) |
Create a new instance of
RegisterApplicationMasterRequest. |
abstract void |
setHost(java.lang.String host) |
Set the host on which the
ApplicationMaster is
running. |
void |
setPlacementConstraints(java.util.Map<java.util.Set<java.lang.String>,PlacementConstraint> placementConstraints) |
Set Placement Constraints applicable to the
SchedulingRequests
of this application. |
abstract void |
setRpcPort(int port) |
Set the RPC port on which the
ApplicationMaster is
responding. |
abstract void |
setTrackingUrl(java.lang.String trackingUrl) |
Set the tracking URLfor the
ApplicationMaster while
it is running. |
@Public @Stable public static RegisterApplicationMasterRequest newInstance(java.lang.String host, int port, java.lang.String trackingUrl)
RegisterApplicationMasterRequest.
If port, trackingUrl is not used, use the following default value:
host - host on which the ApplicationMaster is running.port - the RPC port on which the ApplicationMaster is responding.trackingUrl - tracking URL for the ApplicationMaster.RegisterApplicationMasterRequest@Public @Stable public abstract java.lang.String getHost()
ApplicationMaster is
running.ApplicationMaster is running@Public @Stable public abstract void setHost(java.lang.String host)
ApplicationMaster is
running.host - host on which the ApplicationMaster
is running@Public @Stable public abstract int getRpcPort()
ApplicationMaster is
responding.ApplicationMaster
is responding@Public @Stable public abstract void setRpcPort(int port)
ApplicationMaster is
responding.port - RPC port on which the ApplicationMaster
is responding@Public @Stable public abstract java.lang.String getTrackingUrl()
ApplicationMaster.
This url if contains scheme then that will be used by resource manager
web application proxy otherwise it will default to http.ApplicationMaster@Public @Stable public abstract void setTrackingUrl(java.lang.String trackingUrl)
ApplicationMaster while
it is running. This is the web-URL to which ResourceManager or
web-application proxy will redirect client/users while the application and
the ApplicationMaster are still running.
If the passed url has a scheme then that will be used by the ResourceManager and web-application proxy, otherwise the scheme will default to http.
Empty, null, "N/A" strings are all valid besides a real URL. In case an url isn't explicitly passed, it defaults to "N/A" on the ResourceManager.
trackingUrl - tracking URLfor the ApplicationMaster@Public @Unstable public java.util.Map<java.util.Set<java.lang.String>,PlacementConstraint> getPlacementConstraints()
PlacementConstraint associated with the tags, i.e., each
SchedulingRequest that has those
tags will be placed taking into account the corresponding constraint.@Public @Unstable public void setPlacementConstraints(java.util.Map<java.util.Set<java.lang.String>,PlacementConstraint> placementConstraints)
SchedulingRequests
of this application.
The mapping is from a set of allocation tags to a
PlacementConstraint associated with the tags.
For example:
Map <
<hb_regionserver> -> node_anti_affinity,
<hb_regionserver, hb_master> -> rack_affinity,
...
>placementConstraints - Placement Constraint Mapping.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.