Package org.apache.hadoop.registry.cli
Class RegistryCli
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.registry.cli.RegistryCli
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
public class RegistryCli
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool, Closeable
Command line for registry operations.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRegistryCli(PrintStream sysout, PrintStream syserr) RegistryCli(RegistryOperations reg, org.apache.hadoop.conf.Configuration conf, PrintStream sysout, PrintStream syserr) -
Method Summary
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
sysout
-
syserr
-
-
Constructor Details
-
RegistryCli
-
RegistryCli
public RegistryCli(RegistryOperations reg, org.apache.hadoop.conf.Configuration conf, PrintStream sysout, PrintStream syserr)
-
-
Method Details
-
main
- Throws:
Exception
-
close
Close the object by stopping the registry.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.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
run
- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-
ls
-
resolve
-
bind
-
mknode
-
rm
-