public class RegistryCli extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool, Closeable
Modifier and Type | Field and Description |
---|---|
protected PrintStream |
syserr |
protected PrintStream |
sysout |
Constructor and Description |
---|
RegistryCli(PrintStream sysout,
PrintStream syserr) |
RegistryCli(RegistryOperations reg,
org.apache.hadoop.conf.Configuration conf,
PrintStream sysout,
PrintStream syserr) |
Modifier and Type | Method and Description |
---|---|
int |
bind(String[] args) |
void |
close()
Close the object by stopping the registry.
|
int |
ls(String[] args) |
static void |
main(String[] args) |
int |
mknode(String[] args) |
int |
resolve(String[] args) |
int |
rm(String[] args) |
int |
run(String[] args) |
protected final PrintStream sysout
protected final PrintStream syserr
public RegistryCli(PrintStream sysout, PrintStream syserr)
public RegistryCli(RegistryOperations reg, org.apache.hadoop.conf.Configuration conf, PrintStream sysout, PrintStream syserr)
public void close() throws IOException
Important:
After this call is made, no operations may be made of this object, or of a YARN registry instance used when constructing this object.
close
in interface Closeable
close
in interface AutoCloseable
IOException
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
public int ls(String[] args)
public int resolve(String[] args)
public int bind(String[] args)
public int mknode(String[] args)
public int rm(String[] args)
Copyright © 2018 Apache Software Foundation. All Rights Reserved.