org.apache.hadoop.yarn.api.records.impl.pb
Class ApplicationReportPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.ApplicationReportProto>
      extended by org.apache.hadoop.yarn.api.records.impl.pb.ApplicationReportPBImpl
All Implemented Interfaces:
ApplicationReport

public class ApplicationReportPBImpl
extends ProtoBase<YarnProtos.ApplicationReportProto>
implements ApplicationReport


Constructor Summary
ApplicationReportPBImpl()
           
ApplicationReportPBImpl(YarnProtos.ApplicationReportProto proto)
           
 
Method Summary
 ApplicationId getApplicationId()
          Get the ApplicationId of the application.
 ApplicationResourceUsageReport getApplicationResourceUsageReport()
          Retrieve the structure containing the job resources for this application
 String getClientToken()
          Get the client token for communicating with the ApplicationMaster.
 String getDiagnostics()
          Get the diagnositic information of the application in case of errors.
 FinalApplicationStatus getFinalApplicationStatus()
          Get the final finish status of the application.
 long getFinishTime()
          Get the finish time of the application.
 String getHost()
          Get the host on which the ApplicationMaster is running.
 String getName()
          Get the user-defined name of the application.
 String getOriginalTrackingUrl()
          Get the original not-proxied tracking url for the application.
 YarnProtos.ApplicationReportProto getProto()
           
 String getQueue()
          Get the queue to which the application was submitted.
 int getRpcPort()
          Get the RPC port of the ApplicationMaster.
 long getStartTime()
          Get the start time of the application.
 String getTrackingUrl()
          Get the tracking url for the application.
 String getUser()
          Get the user who submitted the application.
 YarnApplicationState getYarnApplicationState()
          Get the YarnApplicationState of the application.
 void setApplicationId(ApplicationId applicationId)
           
 void setApplicationResourceUsageReport(ApplicationResourceUsageReport appInfo)
          Store the structure containing the job resources for this application
 void setClientToken(String clientToken)
           
 void setDiagnostics(String diagnostics)
           
 void setFinalApplicationStatus(FinalApplicationStatus finishState)
           
 void setFinishTime(long finishTime)
           
 void setHost(String host)
           
 void setName(String name)
           
 void setOriginalTrackingUrl(String url)
           
 void setQueue(String queue)
           
 void setRpcPort(int rpcPort)
           
 void setStartTime(long startTime)
           
 void setTrackingUrl(String url)
           
 void setUser(String user)
           
 void setYarnApplicationState(YarnApplicationState state)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationReportPBImpl

public ApplicationReportPBImpl()

ApplicationReportPBImpl

public ApplicationReportPBImpl(YarnProtos.ApplicationReportProto proto)
Method Detail

getApplicationId

public ApplicationId getApplicationId()
Description copied from interface: ApplicationReport
Get the ApplicationId of the application.

Specified by:
getApplicationId in interface ApplicationReport
Returns:
ApplicationId of the application

setApplicationResourceUsageReport

public void setApplicationResourceUsageReport(ApplicationResourceUsageReport appInfo)
Description copied from interface: ApplicationReport
Store the structure containing the job resources for this application

Specified by:
setApplicationResourceUsageReport in interface ApplicationReport
Parameters:
appInfo - structure for this application

getApplicationResourceUsageReport

public ApplicationResourceUsageReport getApplicationResourceUsageReport()
Description copied from interface: ApplicationReport
Retrieve the structure containing the job resources for this application

Specified by:
getApplicationResourceUsageReport in interface ApplicationReport
Returns:
the job resources structure for this application

getTrackingUrl

public String getTrackingUrl()
Description copied from interface: ApplicationReport
Get the tracking url for the application.

Specified by:
getTrackingUrl in interface ApplicationReport
Returns:
tracking url for the application

getOriginalTrackingUrl

public String getOriginalTrackingUrl()
Description copied from interface: ApplicationReport
Get the original not-proxied tracking url for the application. This is intended to only be used by the proxy itself.

Specified by:
getOriginalTrackingUrl in interface ApplicationReport
Returns:
the original not-proxied tracking url for the application

getName

public String getName()
Description copied from interface: ApplicationReport
Get the user-defined name of the application.

Specified by:
getName in interface ApplicationReport
Returns:
name of the application

getQueue

public String getQueue()
Description copied from interface: ApplicationReport
Get the queue to which the application was submitted.

Specified by:
getQueue in interface ApplicationReport
Returns:
queue to which the application was submitted

getYarnApplicationState

public YarnApplicationState getYarnApplicationState()
Description copied from interface: ApplicationReport
Get the YarnApplicationState of the application.

Specified by:
getYarnApplicationState in interface ApplicationReport
Returns:
YarnApplicationState of the application

getHost

public String getHost()
Description copied from interface: ApplicationReport
Get the host on which the ApplicationMaster is running.

Specified by:
getHost in interface ApplicationReport
Returns:
host on which the ApplicationMaster is running

getRpcPort

public int getRpcPort()
Description copied from interface: ApplicationReport
Get the RPC port of the ApplicationMaster.

Specified by:
getRpcPort in interface ApplicationReport
Returns:
RPC port of the ApplicationMaster

getClientToken

public String getClientToken()
Description copied from interface: ApplicationReport
Get the client token for communicating with the ApplicationMaster.

Specified by:
getClientToken in interface ApplicationReport
Returns:
client token for communicating with the ApplicationMaster

getUser

public String getUser()
Description copied from interface: ApplicationReport
Get the user who submitted the application.

Specified by:
getUser in interface ApplicationReport
Returns:
user who submitted the application

getDiagnostics

public String getDiagnostics()
Description copied from interface: ApplicationReport
Get the diagnositic information of the application in case of errors.

Specified by:
getDiagnostics in interface ApplicationReport
Returns:
diagnositic information of the application in case of errors

getStartTime

public long getStartTime()
Description copied from interface: ApplicationReport
Get the start time of the application.

Specified by:
getStartTime in interface ApplicationReport
Returns:
start time of the application

getFinishTime

public long getFinishTime()
Description copied from interface: ApplicationReport
Get the finish time of the application.

Specified by:
getFinishTime in interface ApplicationReport
Returns:
finish time of the application

getFinalApplicationStatus

public FinalApplicationStatus getFinalApplicationStatus()
Description copied from interface: ApplicationReport
Get the final finish status of the application.

Specified by:
getFinalApplicationStatus in interface ApplicationReport
Returns:
final finish status of the application

setApplicationId

public void setApplicationId(ApplicationId applicationId)
Specified by:
setApplicationId in interface ApplicationReport

setTrackingUrl

public void setTrackingUrl(String url)
Specified by:
setTrackingUrl in interface ApplicationReport

setOriginalTrackingUrl

public void setOriginalTrackingUrl(String url)
Specified by:
setOriginalTrackingUrl in interface ApplicationReport

setName

public void setName(String name)
Specified by:
setName in interface ApplicationReport

setQueue

public void setQueue(String queue)
Specified by:
setQueue in interface ApplicationReport

setYarnApplicationState

public void setYarnApplicationState(YarnApplicationState state)
Specified by:
setYarnApplicationState in interface ApplicationReport

setHost

public void setHost(String host)
Specified by:
setHost in interface ApplicationReport

setRpcPort

public void setRpcPort(int rpcPort)
Specified by:
setRpcPort in interface ApplicationReport

setClientToken

public void setClientToken(String clientToken)
Specified by:
setClientToken in interface ApplicationReport

setUser

public void setUser(String user)
Specified by:
setUser in interface ApplicationReport

setDiagnostics

public void setDiagnostics(String diagnostics)
Specified by:
setDiagnostics in interface ApplicationReport

setStartTime

public void setStartTime(long startTime)
Specified by:
setStartTime in interface ApplicationReport

setFinishTime

public void setFinishTime(long finishTime)
Specified by:
setFinishTime in interface ApplicationReport

setFinalApplicationStatus

public void setFinalApplicationStatus(FinalApplicationStatus finishState)
Specified by:
setFinalApplicationStatus in interface ApplicationReport

getProto

public YarnProtos.ApplicationReportProto getProto()
Specified by:
getProto in class ProtoBase<YarnProtos.ApplicationReportProto>


Copyright © 2012 Apache Software Foundation. All Rights Reserved.