public MasterMain(final CuratorClientFactory curatorClientFactory, final String[] args) throws ArgumentParserException { this(curatorClientFactory, new MasterParser(args)); }
public MasterMain(final CuratorClientFactory curatorClientFactory, final MasterParser parser) { this(curatorClientFactory, parser.getMasterConfig(), parser.getLoggingConfig() ); }
final Namespace options = getNamespace(); final InetSocketAddress httpAddress = parseSocketAddress(options.getString(httpArg.getDest())); final InetSocketAddress adminAddress = parseSocketAddress( options.getString(adminArg.getDest())); .setZooKeeperConnectString(getZooKeeperConnectString()) .setZooKeeperSessionTimeoutMillis(getZooKeeperSessionTimeoutMillis()) .setZooKeeperConnectionTimeoutMillis(getZooKeeperConnectionTimeoutMillis()) .setZooKeeperClusterId(getZooKeeperClusterId()) .setNoZooKeeperMasterRegistration(getNoZooKeeperRegistration()) .setZooKeeperEnableAcls(getZooKeeperEnableAcls()) .setZookeeperAclAgentUser(getZooKeeperAclAgentUser()) .setZooKeeperAclAgentDigest(options.getString(zkAclAgentDigest.getDest())) .setZookeeperAclMasterUser(getZooKeeperAclMasterUser()) .setZooKeeperAclMasterPassword(masterPassword) .setDomain(getDomain()) .setName(getName()) .setStatsdHostPort(getStatsdHostPort()) .setInhibitMetrics(getInhibitMetrics()) .setSentryDsn(getSentryDsn()) .setServiceRegistryAddress(getServiceRegistryAddress()) .setServiceRegistrarPlugin(getServiceRegistrarPlugin()) .setAdminEndpoint(adminAddress) .setHttpEndpoint(httpAddress) .setKafkaBrokers(getKafkaBrokers()) .setPubsubPrefixes(getPubsubPrefixes()) .setStateDirectory(getStateDirectory()) .setAgentReapingTimeout(options.getLong(agentReapingTimeout.getDest())) .setJobRetention(options.getLong(jobRetention.getDest()))
public MasterParser(final String... args) throws ArgumentParserException { super("helios-master", "Spotify Helios Master", args); final Namespace options = getNamespace(); final InetSocketAddress httpAddress = parseSocketAddress(options.getString(httpArg.getDest())); final MasterConfig config = new MasterConfig() .setZooKeeperConnectString(getZooKeeperConnectString()) .setZooKeeperSessionTimeoutMillis(getZooKeeperSessionTimeoutMillis()) .setZooKeeperConnectionTimeoutMillis(getZooKeeperConnectionTimeoutMillis()) .setZooKeeperNamespace(getZooKeeperNamespace()) .setZooKeeperClusterId(getZooKeeperClusterId()) .setNoZooKeeperMasterRegistration(getNoZooKeeperRegistration()) .setDomain(getDomain()) .setName(getName()) .setStatsdHostPort(getStatsdHostPort()) .setRiemannHostPort(getRiemannHostPort()) .setInhibitMetrics(getInhibitMetrics()) .setSentryDsn(getSentryDsn()) .setServiceRegistryAddress(getServiceRegistryAddress()) .setServiceRegistrarPlugin(getServiceRegistrarPlugin()) .setAdminPort(options.getInt(adminArg.getDest())) .setHttpEndpoint(httpAddress) .setKafkaBrokers(getKafkaBrokers()) .setStateDirectory(getStateDirectory()); this.masterConfig = config; }
public MasterMain(final CuratorClientFactory curatorClientFactory, final MasterParser parser) { this(curatorClientFactory, parser.getMasterConfig(), parser.getLoggingConfig()); }
public MasterMain(final String[] args) throws ArgumentParserException { this(new CuratorClientFactoryImpl(), new MasterParser(args)); }
public MasterMain(final CuratorClientFactory curatorClientFactory, final String[] args) throws ArgumentParserException { this(curatorClientFactory, new MasterParser(args)); }
public MasterMain(final String[] args) throws ArgumentParserException { this(new CuratorClientFactoryImpl(), new MasterParser(args)); }