Class ApplicationImpl
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.containermanager.application.ApplicationImpl
- All Implemented Interfaces:
org.apache.hadoop.yarn.event.EventHandler<ApplicationEvent>,Application
The state machine for the representation of an Application
within the NodeManager.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classData object that encapsulates the flow context for the application purpose. -
Constructor Summary
ConstructorsConstructorDescriptionApplicationImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.Credentials credentials, Context context) ApplicationImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, String user, ApplicationImpl.FlowContext flowContext, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.Credentials credentials, Context context) ApplicationImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, String user, ApplicationImpl.FlowContext flowContext, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.Credentials credentials, Context context, long recoveredLogInitedTime) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.records.ApplicationIdgetAppId()longorg.apache.hadoop.yarn.api.records.LogAggregationContextgetUser()voidhandle(ApplicationEvent event) voidtoString()
-
Constructor Details
-
ApplicationImpl
-
ApplicationImpl
public ApplicationImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, String user, ApplicationImpl.FlowContext flowContext, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.Credentials credentials, Context context, long recoveredLogInitedTime) -
ApplicationImpl
public ApplicationImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, String user, ApplicationImpl.FlowContext flowContext, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.Credentials credentials, Context context)
-
-
Method Details
-
getUser
- Specified by:
getUserin interfaceApplication
-
getAppId
public org.apache.hadoop.yarn.api.records.ApplicationId getAppId()- Specified by:
getAppIdin interfaceApplication
-
getApplicationState
- Specified by:
getApplicationStatein interfaceApplication
-
getContainers
- Specified by:
getContainersin interfaceApplication
-
handle
- Specified by:
handlein interfaceorg.apache.hadoop.yarn.event.EventHandler<ApplicationEvent>
-
toString
-
getLogAggregationContext
@VisibleForTesting public org.apache.hadoop.yarn.api.records.LogAggregationContext getLogAggregationContext() -
getFlowName
- Specified by:
getFlowNamein interfaceApplication
-
getFlowVersion
- Specified by:
getFlowVersionin interfaceApplication
-
getFlowRunId
public long getFlowRunId()- Specified by:
getFlowRunIdin interfaceApplication
-
setFlowContext
-