public interface RMAppAttempt extends EventHandler<RMAppAttemptEvent>
RMApp
can have multiple app attempts based on
YarnConfiguration.RM_AM_MAX_ATTEMPTS
. For specific
implementation take a look at RMAppAttemptImpl
.Modifier and Type | Method and Description |
---|---|
Token<ClientToAMTokenIdentifier> |
createClientToken(String clientName)
Create a token for authenticating a client connection to the app attempt
|
Token<AMRMTokenIdentifier> |
getAMRMToken()
The AMRMToken belonging to this app attempt
|
ApplicationAttemptId |
getAppAttemptId()
Get the application attempt id for this
RMAppAttempt . |
RMAppAttemptState |
getAppAttemptState()
The state of the
RMAppAttempt . |
ApplicationResourceUsageReport |
getApplicationResourceUsageReport()
Get application container and resource usage information.
|
SecretKey |
getClientTokenMasterKey()
The master key for client-to-AM tokens for this app attempt.
|
String |
getDiagnostics()
Diagnostics information for the application attempt.
|
FinalApplicationStatus |
getFinalApplicationStatus()
The final status set by the AM.
|
String |
getHost()
The host on which the
RMAppAttempt is running/ran on. |
List<ContainerStatus> |
getJustFinishedContainers()
Return the list of last set of finished containers.
|
Container |
getMasterContainer()
The container on which the Application Master is running.
|
String |
getOriginalTrackingUrl()
The original url at which the status of the application attempt can be
accessed.
|
float |
getProgress()
Progress for the application attempt.
|
Set<NodeId> |
getRanNodes()
Nodes on which the containers for this
RMAppAttempt ran. |
int |
getRpcPort()
The rpc port of the
RMAppAttempt . |
long |
getStartTime()
the start time of the application.
|
ApplicationSubmissionContext |
getSubmissionContext()
The application submission context for this
RMAppAttempt . |
String |
getTrackingUrl()
The url at which the status of the application attempt can be accessed.
|
String |
getWebProxyBase()
The base to be prepended to web URLs that are not relative, and the user
has been checked.
|
List<ContainerStatus> |
pullJustFinishedContainers()
Return a list of the last set of finished containers, resetting the
finished containers to empty.
|
handle
ApplicationAttemptId getAppAttemptId()
RMAppAttempt
.ApplicationAttemptId
for this RM attempt.RMAppAttemptState getAppAttemptState()
RMAppAttempt
.RMAppAttemptState
of this RMAppAttempt
String getHost()
RMAppAttempt
is running/ran on.RMAppAttempt
ran/is running on.int getRpcPort()
RMAppAttempt
.RMAppAttempt
to which the clients can connect
to.String getTrackingUrl()
String getOriginalTrackingUrl()
String getWebProxyBase()
String getDiagnostics()
float getProgress()
RMAppAttempt
FinalApplicationStatus getFinalApplicationStatus()
Set<NodeId> getRanNodes()
RMAppAttempt
ran.RMAppAttempt
List<ContainerStatus> pullJustFinishedContainers()
List<ContainerStatus> getJustFinishedContainers()
Container getMasterContainer()
Container
on which the application master is running.ApplicationSubmissionContext getSubmissionContext()
RMAppAttempt
.Token<AMRMTokenIdentifier> getAMRMToken()
@InterfaceAudience.LimitedPrivate(value="RMStateStore") SecretKey getClientTokenMasterKey()
Token<ClientToAMTokenIdentifier> createClientToken(String clientName)
clientName
- the name of the client requesting the tokenApplicationResourceUsageReport getApplicationResourceUsageReport()
long getStartTime()
Copyright © 2013 Apache Software Foundation. All rights reserved.