private static void handleCommandInvalidException( CliCommandInvalidException ccie) { LOGGER.warning(CLIConsoleBufferUtil.processMessegeForExtraCharactersFromConsoleBuffer(ccie.getCommandTarget().getGfshMethodTarget().getKey() + " is not a valid Command")); }
private static void handleCommandNotAvailableException( CliCommandNotAvailableException ccnae) { LOGGER.warning(CLIConsoleBufferUtil.processMessegeForExtraCharactersFromConsoleBuffer(ccnae.getCommandTarget().getGfshMethodTarget().getKey() + " is not available at the moment")); }
private static void handleCommandNotAvailableException( CliCommandNotAvailableException ccnae) { LOGGER.warning(CLIConsoleBufferUtil.processMessegeForExtraCharactersFromConsoleBuffer(ccnae.getCommandTarget().getGfshMethodTarget().getKey() + " is not available at the moment")); }
private static void handleCommandInvalidException( CliCommandInvalidException ccie) { LOGGER.warning(CLIConsoleBufferUtil.processMessegeForExtraCharactersFromConsoleBuffer(ccie.getCommandTarget().getGfshMethodTarget().getKey() + " is not a valid Command")); }
private static void handleOptionInvalidExcpetion( CliCommandOptionNotApplicableException cconae) { String messege = "Parameter " + cconae.getOption().getLongOption() + " is not applicable for " + cconae.getCommandTarget().getGfshMethodTarget().getKey(); LOGGER.warning(CLIConsoleBufferUtil.processMessegeForExtraCharactersFromConsoleBuffer(messege)); }
private static void handleOptionInvalidExcpetion( CliCommandOptionNotApplicableException cconae) { String messege = "Parameter " + cconae.getOption().getLongOption() + " is not applicable for " + cconae.getCommandTarget().getGfshMethodTarget().getKey(); LOGGER.warning(CLIConsoleBufferUtil.processMessegeForExtraCharactersFromConsoleBuffer(messege)); }
public List<String> getCommandNames(String string) { List<String> commandNames = new ArrayList<String>(); try { if (string == null) { string = ""; } List<CommandTarget> locateTargets = locateTargets(string); for (CommandTarget commandTarget : locateTargets) { String key = commandTarget.getGfshMethodTarget().getKey(); if(key.startsWith(string)){ commandNames.add(key); } } } catch (IllegalArgumentException e) { logWrapper.warning(CliUtil.stackTraceAsString(e)); } catch (IllegalAccessException e) { logWrapper.warning(CliUtil.stackTraceAsString(e)); } catch (InvocationTargetException e) { logWrapper.warning(CliUtil.stackTraceAsString(e)); } return commandNames; }
public List<String> getCommandNames(String string) { List<String> commandNames = new ArrayList<String>(); try { if (string == null) { string = ""; } List<CommandTarget> locateTargets = locateTargets(string); for (CommandTarget commandTarget : locateTargets) { String key = commandTarget.getGfshMethodTarget().getKey(); if(key.startsWith(string)){ commandNames.add(key); } } } catch (IllegalArgumentException e) { logWrapper.warning(CliUtil.stackTraceAsString(e)); } catch (IllegalAccessException e) { logWrapper.warning(CliUtil.stackTraceAsString(e)); } catch (InvocationTargetException e) { logWrapper.warning(CliUtil.stackTraceAsString(e)); } return commandNames; }
new MethodTarget(gfshMethodTarget.getMethod(), gfshMethodTarget .getTarget(), gfshMethodTarget.getRemainingBuffer(), gfshMethodTarget.getKey())); } else { converter.getAllPossibleValues( new MethodTarget(gfshMethodTarget.getMethod(), gfshMethodTarget .getTarget(), gfshMethodTarget.getRemainingBuffer(), gfshMethodTarget.getKey()));
new MethodTarget(gfshMethodTarget.getMethod(), gfshMethodTarget .getTarget(), gfshMethodTarget.getRemainingBuffer(), gfshMethodTarget.getKey())); } else { converter.getAllPossibleValues( new MethodTarget(gfshMethodTarget.getMethod(), gfshMethodTarget .getTarget(), gfshMethodTarget.getRemainingBuffer(), gfshMethodTarget.getKey()));