@Override protected void process(CommandLine cli) { super.process(cli); builder.withDiscoveryPort(Integer.parseInt(cli.getOptionValue("r", "" + DEFAULT_DISCOVERY_PORT))); } }
public C process() { additionalOptions(options); try { CommandLine cli = new PosixParser().parse(options, args); process(cli); return builder.build(); } catch (ParseException e) { throw new IllegalArgumentException("invalid command line parameters; " + e); } } }
@Override protected void process(CommandLine cli) { super.process(cli); builder.withDashboardPort(Integer.parseInt(cli.getOptionValue("b", "" + DEFAULT_DASHBOARD_PORT))); } }
public C process() { additionalOptions(options); try { CommandLine cli = new PosixParser().parse(options, args); process(cli); return builder.build(); } catch (ParseException e) { throw new IllegalArgumentException("invalid command line parameters; " + e); } } }
@Override protected void process(CommandLine cli) { super.process(cli); builder.withDashboardPort(Integer.parseInt(cli.getOptionValue("b", "" + DEFAULT_DASHBOARD_PORT))); } }
@Override protected void process(CommandLine cli) { super.process(cli); builder.withDiscoveryPort(Integer.parseInt(cli.getOptionValue("r", "" + DEFAULT_DISCOVERY_PORT))); builder.withRegistrationPort(Integer.parseInt(cli.getOptionValue("w", "" + DEFAULT_REGISTRATION_PORT))); builder.withReplicationPort(Integer.parseInt(cli.getOptionValue("p", "" + DEFAULT_REPLICATION_PORT))); builder.withEvictionTimeout(Integer.parseInt(cli.getOptionValue("et", "" + WriteServerConfig.DEFAULT_EVICTION_TIMEOUT))); builder.withEvictionStrategyType(StrategyType.valueOf(cli.getOptionValue("es", StrategyType.PercentageDrop.name()))); builder.withEvictionStrategyValue(cli.getOptionValue("ev", "20")); } }
@Override protected void process(CommandLine cli) { super.process(cli); builder.withDiscoveryPort(Integer.parseInt(cli.getOptionValue("r", "" + DEFAULT_DISCOVERY_PORT))); builder.withRegistrationPort(Integer.parseInt(cli.getOptionValue("w", "" + DEFAULT_REGISTRATION_PORT))); builder.withReplicationPort(Integer.parseInt(cli.getOptionValue("p", "" + DEFAULT_REPLICATION_PORT))); builder.withEvictionTimeout(Integer.parseInt(cli.getOptionValue("et", "" + WriteServerConfig.DEFAULT_EVICTION_TIMEOUT))); builder.withEvictionStrategyType(StrategyType.valueOf(cli.getOptionValue("es", StrategyType.PercentageDrop.name()))); builder.withEvictionStrategyValue(cli.getOptionValue("ev", "20")); } }