public DssServerSocketCreator(String arguments) throws Throwable { Args args = new Args(arguments); Class<? extends DssContextFactory> factory = Class.forName(args.argv(0)).asSubclass(DssContextFactory.class); args.shift(); Constructor<? extends DssContextFactory> cc = factory.getConstructor(String.class); try { this.factory = cc.newInstance(args.toString()); } catch (InvocationTargetException e) { throw e.getCause(); } }
public String ac_exec_env_$_1_99(Args args) throws CommandException { try { URI uri = new URI("env", args.argv(0), null); args.shift(); return run_reader(uri, args); } catch (URISyntaxException e) { throw new CommandException(43, e.getMessage()); } }
public String ac_exec_context_$_1_99(Args args) throws CommandException { try { URI uri = new URI("context", args.argv(0), null); args.shift(); return run_reader(uri, args); } catch (URISyntaxException e) { throw new CommandException(43 , e.getMessage()); } }
public String ac_exec_$_1_99(Args args) throws CommandException { try { URI uri = new URI(args.argv(0)); args.shift(); return run_reader(uri, args); } catch (URISyntaxException e) { throw new CommandException(43 , e.getMessage()); } }
args.shift(); _factoryArgs = args.toString();
break; default: args.shift(2); socketFactory = new CanlSslSocketCreator(args);
args.shift(i);
public CellAdapter(String cellName, String cellType, Args args, Executor executor) { _args = args; _autoSetup = cellName + "Setup"; if ((_args.argc() > 0) && ((_definedSetup = _args.argv(0)).length() > 1) && (_definedSetup.startsWith("!"))) { _definedSetup = _definedSetup.substring(1); _args.shift(); } else { _definedSetup = null; } if (!_args.getBooleanOption("replyObject", true)) { setCommandExceptionEnabled(false); } _nucleus = new CellNucleus(this, cellName, cellType, executor); if (!Strings.isNullOrEmpty(_args.getOption(MAX_MESSAGE_THREADS))) { _nucleus.setMaximumPoolSize(_args.getIntOption(MAX_MESSAGE_THREADS)); } if (!Strings.isNullOrEmpty(_args.getOption(MAX_MESSAGES_QUEUED))) { _nucleus.setMaximumPoolSize(_args.getIntOption(MAX_MESSAGES_QUEUED)); } addCommandListener(new FilterShell(_nucleus.getLoggingThresholds())); addCommandListener(_commandInterpreter.new HelpCommands()); addCellEventListener(this); }
if (isAnsiSupported && args.argc() > 0) { if (args.argv(0).equals("help")) { args.shift(); args = new Args("help -format=" + HelpFormat.ANSI + " " + args.toString());