} else if (qName.equals("command")) { if (testCommands != null) { testCommands.add(new CLITestCmd(charString, new CLICommandFS())); } else if (cleanupCommands != null) { cleanupCommands.add(new CLITestCmd(charString, new CLICommandFS()));
@Override public CommandExecutor getExecutor(String tag) throws IllegalArgumentException { if (getType() instanceof CLICommandDFSAdmin) return new FSCmdExecutor(tag, new DFSAdmin()); return super.getExecutor(tag); } }
} else if (qName.equals("command")) { if (testCommands != null) { testCommands.add(new CLITestCmd(charString, new CLICommandFS())); } else if (cleanupCommands != null) { cleanupCommands.add(new CLITestCmd(charString, new CLICommandFS()));
@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) throws IllegalArgumentException { if (getType() instanceof CLICommandCryptoAdmin) { return new CryptoAdminCmdExecutor(tag, new CryptoAdmin(conf)); } return super.getExecutor(tag); } }