public abstract class ClientCommand extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CommandLineOptions |
opts |
| Constructor and Description |
|---|
ClientCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.yarn.api.records.ApplicationId |
checkAppId() |
protected static File |
getAppIdFile()
Return the path to the app id file.
|
protected YarnRMClient |
getClient() |
protected String |
loadAppId(File appIdFile) |
protected void |
removeAppIdFile() |
abstract void |
run() |
void |
setOpts(CommandLineOptions opts) |
protected CommandLineOptions opts
public void setOpts(CommandLineOptions opts)
public abstract void run()
throws ClientException
ClientExceptionprotected static File getAppIdFile()
protected org.apache.hadoop.yarn.api.records.ApplicationId checkAppId()
throws ClientException
ClientExceptionprotected YarnRMClient getClient() throws ClientException
ClientExceptionprotected void removeAppIdFile()
Copyright © 2021 The Apache Software Foundation. All rights reserved.