org.apache.hadoop.yarn.client.cli
Class YarnCLI

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.hadoop.yarn.client.cli.YarnCLI
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
Direct Known Subclasses:
ApplicationCLI, NodeCLI

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract class YarnCLI
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool


Field Summary
protected  YarnClient client
           
static String HELP_CMD
           
static String KILL_CMD
           
static String LIST_CMD
           
static String STATUS_CMD
           
protected  PrintStream syserr
           
protected  PrintStream sysout
           
 
Constructor Summary
YarnCLI()
           
 
Method Summary
 YarnClient getClient()
           
 void setClient(YarnClient client)
           
 void setSysErrPrintStream(PrintStream syserr)
           
 void setSysOutPrintStream(PrintStream sysout)
           
 void stop()
           
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.util.Tool
run
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Field Detail

STATUS_CMD

public static final String STATUS_CMD
See Also:
Constant Field Values

LIST_CMD

public static final String LIST_CMD
See Also:
Constant Field Values

KILL_CMD

public static final String KILL_CMD
See Also:
Constant Field Values

HELP_CMD

public static final String HELP_CMD
See Also:
Constant Field Values

sysout

protected PrintStream sysout

syserr

protected PrintStream syserr

client

protected YarnClient client
Constructor Detail

YarnCLI

public YarnCLI()
Method Detail

setSysOutPrintStream

public void setSysOutPrintStream(PrintStream sysout)

setSysErrPrintStream

public void setSysErrPrintStream(PrintStream syserr)

getClient

public YarnClient getClient()

setClient

public void setClient(YarnClient client)

stop

public void stop()


Copyright © 2014 Apache Software Foundation. All Rights Reserved.