org.apache.hadoop.yarn.api.protocolrecords
Class RegisterApplicationMasterRequest

java.lang.Object
  extended by org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterRequest

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class RegisterApplicationMasterRequest
extends Object

The request sent by the ApplicationMaster to ResourceManager on registration.

The registration includes details such as:

See Also:
ApplicationMasterProtocol.registerApplicationMaster(RegisterApplicationMasterRequest)

Constructor Summary
RegisterApplicationMasterRequest()
           
 
Method Summary
abstract  String getHost()
          Get the host on which the ApplicationMaster is running.
abstract  int getRpcPort()
          Get the RPC port on which the ApplicationMaster is responding.
abstract  String getTrackingUrl()
          Get the tracking URL for the ApplicationMaster.
static RegisterApplicationMasterRequest newInstance(String host, int port, String trackingUrl)
          Create a new instance of RegisterApplicationMasterRequest.
abstract  void setHost(String host)
          Set the host on which the ApplicationMaster is running.
abstract  void setRpcPort(int port)
          Set the RPC port on which the ApplicationMaster is responding.
abstract  void setTrackingUrl(String trackingUrl)
          Set the tracking URL for the ApplicationMaster.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterApplicationMasterRequest

public RegisterApplicationMasterRequest()
Method Detail

newInstance

@InterfaceAudience.Public
@InterfaceStability.Stable
public static RegisterApplicationMasterRequest newInstance(String host,
                                                                                                              int port,
                                                                                                              String trackingUrl)
Create a new instance of RegisterApplicationMasterRequest. If port, trackingUrl is not used, use the following default value:

Returns:
the new instance of RegisterApplicationMasterRequest

getHost

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract String getHost()
Get the host on which the ApplicationMaster is running.

Returns:
host on which the ApplicationMaster is running

setHost

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setHost(String host)
Set the host on which the ApplicationMaster is running.

Parameters:
host - host on which the ApplicationMaster is running

getRpcPort

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract int getRpcPort()
Get the RPC port on which the ApplicationMaster is responding.

Returns:
the RPC port on which the ApplicationMaster is responding

setRpcPort

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setRpcPort(int port)
Set the RPC port on which the ApplicationMaster is responding.

Parameters:
port - RPC port on which the ApplicationMaster is responding

getTrackingUrl

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract String getTrackingUrl()
Get the tracking URL for the ApplicationMaster.

Returns:
tracking URL for the ApplicationMaster

setTrackingUrl

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setTrackingUrl(String trackingUrl)
Set the tracking URL for the ApplicationMaster.

Parameters:
trackingUrl - tracking URL for the ApplicationMaster


Copyright © 2013 Apache Software Foundation. All Rights Reserved.