Class NodeAttributesCLI.ClientCommandHandler
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.yarn.client.cli.NodeAttributesCLI.CommandHandler
org.apache.hadoop.yarn.client.cli.NodeAttributesCLI.ClientCommandHandler
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
- Enclosing class:
- NodeAttributesCLI
Client commands handler.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.cli.Optionsprotected org.apache.hadoop.yarn.api.ApplicationClientProtocolinthandleCommand(org.apache.commons.cli.CommandLine parse) intprintNodesByAttributes(String[] attrs) voidsetSysOut(PrintStream out) Methods inherited from class org.apache.hadoop.yarn.client.cli.NodeAttributesCLI.CommandHandler
addOrder, canHandleCommand, getHelp, getHelp, getOptionsMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
SPLITPATTERN
- See Also:
-
-
Constructor Details
-
ClientCommandHandler
public ClientCommandHandler()
-
-
Method Details
-
setSysOut
-
handleCommand
public int handleCommand(org.apache.commons.cli.CommandLine parse) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException - Specified by:
handleCommandin classNodeAttributesCLI.CommandHandler- Throws:
IOExceptionorg.apache.hadoop.yarn.exceptions.YarnException
-
createApplicationProtocol
protected org.apache.hadoop.yarn.api.ApplicationClientProtocol createApplicationProtocol() throws IOException- Throws:
IOException
-
printNodesByAttributes
public int printNodesByAttributes(String[] attrs) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
buildOptions
public org.apache.commons.cli.Options buildOptions()- Specified by:
buildOptionsin classNodeAttributesCLI.CommandHandler
-