public static class NodeAttributesCLI.ClientCommandHandler extends NodeAttributesCLI.CommandHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
SPLITPATTERN |
| Constructor and Description |
|---|
ClientCommandHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.cli.Options |
buildOptions() |
protected org.apache.hadoop.yarn.api.ApplicationClientProtocol |
createApplicationProtocol() |
int |
handleCommand(org.apache.commons.cli.CommandLine parse) |
int |
printNodesByAttributes(String[] attrs) |
void |
setSysOut(PrintStream out) |
addOrder, canHandleCommand, getHelp, getHelp, getOptionspublic static final String SPLITPATTERN
public void setSysOut(PrintStream out)
public int handleCommand(org.apache.commons.cli.CommandLine parse)
throws IOException,
org.apache.hadoop.yarn.exceptions.YarnException
handleCommand in class NodeAttributesCLI.CommandHandlerIOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionprotected org.apache.hadoop.yarn.api.ApplicationClientProtocol createApplicationProtocol()
throws IOException
IOExceptionpublic int printNodesByAttributes(String[] attrs) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic org.apache.commons.cli.Options buildOptions()
buildOptions in class NodeAttributesCLI.CommandHandlerCopyright © 2008–2024 Apache Software Foundation. All rights reserved.