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