org.apache.hadoop.yarn.api.records
Class ApplicationAttemptReport

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ApplicationAttemptReport

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract class ApplicationAttemptReport
extends Object

ApplicationAttemptReport is a report of an application attempt.

It includes details such as:


Constructor Summary
ApplicationAttemptReport()
           
 
Method Summary
abstract  ContainerId getAMContainerId()
          Get the ContainerId of AMContainer for this attempt
abstract  ApplicationAttemptId getApplicationAttemptId()
          Get the ApplicationAttemptId of this attempt of the application
abstract  String getDiagnostics()
          Get the diagnositic information of the application attempt in case of errors.
abstract  String getHost()
          Get the host on which this attempt of ApplicationMaster is running.
abstract  int getRpcPort()
          Get the RPC port of this attempt ApplicationMaster.
abstract  String getTrackingUrl()
          Get the tracking url for the application attempt.
abstract  YarnApplicationAttemptState getYarnApplicationAttemptState()
          Get the YarnApplicationAttemptState of the application attempt.
static ApplicationAttemptReport newInstance(ApplicationAttemptId applicationAttemptId, String host, int rpcPort, String url, String diagnostics, YarnApplicationAttemptState state, ContainerId amContainerId)
           
abstract  void setAMContainerId(ContainerId amContainerId)
           
abstract  void setApplicationAttemptId(ApplicationAttemptId applicationAttemptId)
           
abstract  void setDiagnostics(String diagnostics)
           
abstract  void setHost(String host)
           
abstract  void setRpcPort(int rpcPort)
           
abstract  void setTrackingUrl(String url)
           
abstract  void setYarnApplicationAttemptState(YarnApplicationAttemptState yarnApplicationAttemptState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationAttemptReport

public ApplicationAttemptReport()
Method Detail

newInstance

@InterfaceAudience.Private
@InterfaceStability.Unstable
public static ApplicationAttemptReport newInstance(ApplicationAttemptId applicationAttemptId,
                                                                                                         String host,
                                                                                                         int rpcPort,
                                                                                                         String url,
                                                                                                         String diagnostics,
                                                                                                         YarnApplicationAttemptState state,
                                                                                                         ContainerId amContainerId)

getYarnApplicationAttemptState

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract YarnApplicationAttemptState getYarnApplicationAttemptState()
Get the YarnApplicationAttemptState of the application attempt.

Returns:
YarnApplicationAttemptState of the application attempt

setYarnApplicationAttemptState

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setYarnApplicationAttemptState(YarnApplicationAttemptState yarnApplicationAttemptState)

getRpcPort

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract int getRpcPort()
Get the RPC port of this attempt ApplicationMaster.

Returns:
RPC port of this attempt ApplicationMaster

setRpcPort

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setRpcPort(int rpcPort)

getHost

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract String getHost()
Get the host on which this attempt of ApplicationMaster is running.

Returns:
host on which this attempt of ApplicationMaster is running

setHost

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setHost(String host)

getDiagnostics

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract String getDiagnostics()
Get the diagnositic information of the application attempt in case of errors.

Returns:
diagnositic information of the application attempt in case of errors

setDiagnostics

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setDiagnostics(String diagnostics)

getTrackingUrl

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract String getTrackingUrl()
Get the tracking url for the application attempt.

Returns:
tracking url for the application attempt

setTrackingUrl

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setTrackingUrl(String url)

getApplicationAttemptId

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract ApplicationAttemptId getApplicationAttemptId()
Get the ApplicationAttemptId of this attempt of the application

Returns:
ApplicationAttemptId of the attempt

setApplicationAttemptId

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setApplicationAttemptId(ApplicationAttemptId applicationAttemptId)

getAMContainerId

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract ContainerId getAMContainerId()
Get the ContainerId of AMContainer for this attempt

Returns:
ContainerId of the attempt

setAMContainerId

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setAMContainerId(ContainerId amContainerId)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.