@InterfaceAudience.Private @InterfaceStability.Unstable public class RegisterApplicationMasterRequestPBImpl extends RegisterApplicationMasterRequest
Constructor and Description |
---|
RegisterApplicationMasterRequestPBImpl() |
RegisterApplicationMasterRequestPBImpl(YarnServiceProtos.RegisterApplicationMasterRequestProto proto) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getHost()
Get the host on which the
ApplicationMaster is
running. |
YarnServiceProtos.RegisterApplicationMasterRequestProto |
getProto() |
int |
getRpcPort()
Get the RPC port on which the
ApplicationMaster
is responding. |
String |
getTrackingUrl()
Get the tracking URL for the
ApplicationMaster . |
int |
hashCode() |
void |
setHost(String host)
Set the host on which the
ApplicationMaster is
running. |
void |
setRpcPort(int port)
Set the RPC port on which the
ApplicationMaster is
responding. |
void |
setTrackingUrl(String url)
Set the tracking URLfor the
ApplicationMaster while
it is running. |
String |
toString() |
newInstance
public RegisterApplicationMasterRequestPBImpl()
public RegisterApplicationMasterRequestPBImpl(YarnServiceProtos.RegisterApplicationMasterRequestProto proto)
public YarnServiceProtos.RegisterApplicationMasterRequestProto getProto()
public String getHost()
RegisterApplicationMasterRequest
ApplicationMaster
is
running.getHost
in class RegisterApplicationMasterRequest
ApplicationMaster
is runningpublic void setHost(String host)
RegisterApplicationMasterRequest
ApplicationMaster
is
running.setHost
in class RegisterApplicationMasterRequest
host
- host on which the ApplicationMaster
is runningpublic int getRpcPort()
RegisterApplicationMasterRequest
ApplicationMaster
is responding.getRpcPort
in class RegisterApplicationMasterRequest
ApplicationMaster
is
respondingpublic void setRpcPort(int port)
RegisterApplicationMasterRequest
ApplicationMaster
is
responding.setRpcPort
in class RegisterApplicationMasterRequest
port
- RPC port on which the ApplicationMaster
is
respondingpublic String getTrackingUrl()
RegisterApplicationMasterRequest
ApplicationMaster
.
This url if contains scheme then that will be used by resource manager
web application proxy otherwise it will default to http.getTrackingUrl
in class RegisterApplicationMasterRequest
ApplicationMaster
public void setTrackingUrl(String url)
RegisterApplicationMasterRequest
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.
setTrackingUrl
in class RegisterApplicationMasterRequest
url
- tracking URLfor the ApplicationMaster
Copyright © 2013 Apache Software Foundation. All rights reserved.