Example usage for org.apache.hadoop.fs.shell CommandFactory addClass

List of usage examples for org.apache.hadoop.fs.shell CommandFactory addClass

Introduction

In this page you can find the example usage for org.apache.hadoop.fs.shell CommandFactory addClass.

Prototype

public void addClass(Class<? extends Command> cmdClass, String... names) 

Source Link

Document

Register the given class as handling the given list of command names.

Usage

From source file:cn.ict.magicube.fs.shell.FixedLs.java

License:Apache License

public static void registerCommands(CommandFactory factory) {
    factory.addClass(FixedLs.class, "-ls");
    factory.addClass(FixedLsr.class, "-lsr");
}

From source file:com.ruizhan.hadoop.hdfs.Ls.java

License:Apache License

public static void registerCommands(CommandFactory factory) {
    factory.addClass(Ls.class, "-ls");
    factory.addClass(Lsr.class, "-lsr");
}