public String getSentryDsn() { return options.getString(sentryDsnArg.getDest()); }
public String getStatsdHostPort() { return options.getString(statsdHostPortArg.getDest()); }
public int getZooKeeperConnectionTimeoutMillis() { return options.getInt(zooKeeperConnectiontimeoutArg.getDest()); }
public List<String> getPubsubPrefixes() { return options.getList(pubsubTopicPrefixArg.getDest()); }
public Path getServiceRegistrarPlugin() { final File plugin = options.get(serviceRegistrarPluginArg.getDest()); return plugin != null ? plugin.toPath() : null; }
public List<String> getKafkaBrokers() { final List<String> kafkaBrokers = options.getList(kafkaArg.getDest()); return kafkaBrokers.isEmpty() ? null : kafkaBrokers; }
public String getZooKeeperConnectString() { return options.getString(zooKeeperConnectStringArg.getDest()); }
public int getZooKeeperSessionTimeoutMillis() { return options.getInt(zooKeeperSessiontimeoutArg.getDest()); }
public String getZooKeeperClusterId() { return options.getString(zooKeeperClusterId.getDest()); }
public String getZooKeeperAclAgentUser() { return options.getString(zooKeeperAclAgentUser.getDest()); }
public String getDomain() { return options.getString(domainArg.getDest()); }
public String getServiceRegistryAddress() { return options.getString(serviceRegistryArg.getDest()); }
public Boolean getInhibitMetrics() { return fromNullable(options.getBoolean(noMetricsArg.getDest())).or(false); }
public String getName() { return options.getString(nameArg.getDest()); }
public Boolean getNoZooKeeperRegistration() { return fromNullable(options.getBoolean(noZooKeeperRegistrationArg.getDest())).or(false); }
public String getZooKeeperAclMasterUser() { return options.getString(zooKeeperAclMasterUser.getDest()); }
public Path getStateDirectory() { return Paths.get(options.getString(stateDirArg.getDest())); }
protected FastForwardConfig ffwdConfig(final Namespace options) { if (!options.getBoolean(ffwdEnabled.getDest())) { return null; } return new FastForwardConfig( Optional.ofNullable(options.getString(ffwdAddress.getDest())), options.getInt(ffwdInterval.getDest()), options.getString(ffwdMetricKey.getDest())); } }
@Override int run(final Namespace options, final HeliosClient client, final PrintStream out, final boolean json, final BufferedReader stdin) throws ExecutionException, InterruptedException { final String name = options.getString(nameArg.getDest()); final boolean full = options.getBoolean(fullArg.getDest()); return run0(client, out, json, name, full); }