org.apache.hadoop.yarn.server.nodemanager.containermanager.application
Class ApplicationImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.server.nodemanager.containermanager.application.ApplicationImpl
All Implemented Interfaces:
org.apache.hadoop.yarn.event.EventHandler<ApplicationEvent>, Application

public class ApplicationImpl
extends Object
implements Application

The state machine for the representation of an Application within the NodeManager.


Constructor Summary
ApplicationImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager, String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.Credentials credentials, Context context)
           
 
Method Summary
 org.apache.hadoop.yarn.api.records.ApplicationId getAppId()
           
 ApplicationState getApplicationState()
           
 Map<org.apache.hadoop.yarn.api.records.ContainerId,Container> getContainers()
           
 String getUser()
           
 void handle(ApplicationEvent event)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationImpl

public ApplicationImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher,
                       org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager,
                       String user,
                       org.apache.hadoop.yarn.api.records.ApplicationId appId,
                       org.apache.hadoop.security.Credentials credentials,
                       Context context)
Method Detail

getUser

public String getUser()
Specified by:
getUser in interface Application

getAppId

public org.apache.hadoop.yarn.api.records.ApplicationId getAppId()
Specified by:
getAppId in interface Application

getApplicationState

public ApplicationState getApplicationState()
Specified by:
getApplicationState in interface Application

getContainers

public Map<org.apache.hadoop.yarn.api.records.ContainerId,Container> getContainers()
Specified by:
getContainers in interface Application

handle

public void handle(ApplicationEvent event)
Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<ApplicationEvent>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.