public class DefaultApplicationYarnClient extends CommandYarnClient implements ApplicationYarnClient
ApplicationYarnClient
verifying application
install and submit statuses.Constructor and Description |
---|
DefaultApplicationYarnClient(ClientRmOperations clientRmOperations)
Instantiates a new default application yarn client.
|
Modifier and Type | Method and Description |
---|---|
void |
installApplication(ApplicationDescriptor descriptor)
Install application based on
ApplicationDescriptor . |
protected void |
postInstallVerify(ApplicationDescriptor descriptor)
Post install verify.
|
protected void |
postSubmitVerify(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
ApplicationDescriptor descriptor)
Post submit verify.
|
protected void |
preInstallVerify(ApplicationDescriptor descriptor)
Pre install verify.
|
protected void |
preSubmitVerify(ApplicationDescriptor descriptor)
Pre submit verify.
|
org.apache.hadoop.yarn.api.records.ApplicationId |
submitApplication(ApplicationDescriptor descriptor)
Submit application based on
ApplicationDescriptor . |
getEnvironment
afterPropertiesSet, getApplicationReport, getClientRmOperations, getConfiguration, getMasterContainerLaunchContext, getStagingPath, getSubmissionContext, installApplication, killApplication, listApplications, listApplications, listRunningApplications, setApplicationDirName, setAppName, setAppType, setClientRmOperations, setCommands, setConfiguration, setEnvironment, setMemory, setPriority, setQueue, setResourceLocalizer, setStagingDirPath, setVirtualcores, submitApplication, submitApplication
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApplicationReport, installApplication, killApplication, listApplications, listApplications, listRunningApplications, submitApplication, submitApplication
public DefaultApplicationYarnClient(ClientRmOperations clientRmOperations)
clientRmOperations
- the client rm operationspublic void installApplication(ApplicationDescriptor descriptor)
ApplicationYarnClient
ApplicationDescriptor
.installApplication
in interface ApplicationYarnClient
descriptor
- the application descriptorpublic org.apache.hadoop.yarn.api.records.ApplicationId submitApplication(ApplicationDescriptor descriptor)
ApplicationYarnClient
ApplicationDescriptor
.submitApplication
in interface ApplicationYarnClient
descriptor
- the application descriptorprotected void preInstallVerify(ApplicationDescriptor descriptor)
descriptor
- the application descriptorprotected void postInstallVerify(ApplicationDescriptor descriptor)
descriptor
- the application descriptorprotected void preSubmitVerify(ApplicationDescriptor descriptor)
descriptor
- the application descriptorprotected void postSubmitVerify(org.apache.hadoop.yarn.api.records.ApplicationId applicationId, ApplicationDescriptor descriptor)
applicationId
- the application iddescriptor
- the application descriptor