@Override public CommandExecutor getExecutor(String tag) throws IllegalArgumentException { if (getType() instanceof CLICommandCacheAdmin) { return new CacheAdminCmdExecutor(tag, new CacheAdmin(conf)); } return super.getExecutor(tag); }
@Override public CommandExecutor getExecutor(String tag, Configuration conf) throws IllegalArgumentException { if (getType() instanceof CLICommandCacheAdmin) { return new CacheAdminCmdExecutor(tag, new CacheAdmin(conf)); } return super.getExecutor(tag, conf); }
public CacheAdminCmdExecutor(String namenode, CacheAdmin admin) { this.namenode = namenode; this.admin = admin; }