public DefaultChooserConfig(Config config) { super(config); taskConfigJava = new TaskConfigJava(config); streamConfig = new StreamConfig(config); }
public String getAzureConnectionString() { if (!containsKey(AZURE_STORAGE_CONNECT)) { throw new ConfigException("Missing " + AZURE_STORAGE_CONNECT + " config!"); } return get(AZURE_STORAGE_CONNECT); }
public String getZkConnect() { if (!containsKey(ZK_CONNECT)) { throw new ConfigException("Missing " + ZK_CONNECT + " config!"); } return get(ZK_CONNECT); }
/** * A constructor that accepts job config as the parameter * * @param config job config */ public GroupBySystemStreamPartition(Config config) { if (config.containsKey(TaskConfigJava.BROADCAST_INPUT_STREAMS)) { taskConfig = new TaskConfigJava(config); broadcastStreams = taskConfig.getBroadcastSystemStreamPartitions(); } }
public List<String> getList(String k) { if (!containsKey(k)) throw new ConfigException("Missing key " + k + "."); return getList(k, null); }
public ElasticsearchConfig(String name, Config config) { super(config.subset("systems." + name + ".")); logAllSettings(this); }
/** * Get the log4j system name from the config. * If it's not defined, throw a ConfigException * * @return log4j system name */ public String getSystemName() { String log4jSystem = get(TASK_LOG4J_SYSTEM, null); if (log4jSystem == null) { throw new ConfigException("Missing " + TASK_LOG4J_SYSTEM + " configuration. Can't figure out the system name to use."); } return log4jSystem; }
public String getZkConnect() { if (!containsKey(ZK_CONNECT)) { throw new ConfigException("Missing " + ZK_CONNECT + " config!"); } return get(ZK_CONNECT); }
/** * Accepts the config in the constructor * * @param config job's config */ public GroupByPartition(Config config) { if (config.containsKey(TaskConfigJava.BROADCAST_INPUT_STREAMS)) { taskConfig = new TaskConfigJava(config); this.broadcastStreams = taskConfig.getBroadcastSystemStreamPartitions(); } }
public List<String> getList(String k) { if (!containsKey(k)) throw new ConfigException("Missing key " + k + "."); return getList(k, null); }
public DefaultChooserConfig(Config config) { super(config); taskConfigJava = new TaskConfigJava(config); streamConfig = new StreamConfig(config); }
public String getZkConnect() { if (!containsKey(ZK_CONNECT)) { throw new ConfigException("Missing " + ZK_CONNECT + " config!"); } return get(ZK_CONNECT); }
/** * A constructor that accepts job config as the parameter * * @param config job config */ public GroupBySystemStreamPartition(Config config) { if (config.containsKey(TaskConfigJava.BROADCAST_INPUT_STREAMS)) { taskConfig = new TaskConfigJava(config); broadcastStreams = taskConfig.getBroadcastSystemStreamPartitions(); } }
public DefaultChooserConfig(Config config) { super(config); taskConfigJava = new TaskConfigJava(config); streamConfig = new StreamConfig(config); }
public String getZkConnect() { if (!containsKey(ZK_CONNECT)) { throw new ConfigException("Missing " + ZK_CONNECT + " config!"); } return get(ZK_CONNECT); }
/** * Accepts the config in the constructor * * @param config job's config */ public GroupByPartition(Config config) { if (config.containsKey(TaskConfigJava.BROADCAST_INPUT_STREAMS)) { taskConfig = new TaskConfigJava(config); this.broadcastStreams = taskConfig.getBroadcastSystemStreamPartitions(); } }
public DefaultChooserConfig(Config config) { super(config); taskConfigJava = new TaskConfigJava(config); streamConfig = new StreamConfig(config); }
public String getZkConnect() { if (!containsKey(ZK_CONNECT)) { throw new ConfigException("Missing " + ZK_CONNECT + " config!"); } return get(ZK_CONNECT); }
public DefaultChooserConfig(Config config) { super(config); taskConfigJava = new TaskConfigJava(config); streamConfig = new StreamConfig(config); }