(ConfigFilterConfiguration) ComponentConfigurationFactory.create( configFilterName, config, ComponentType.CONFIG_FILTER); LOGGER.debug("Created configfilter {}", configFilterName);
try { conf = (SinkGroupConfiguration) ComponentConfigurationFactory.create( sinkgroupName, "sinkgroup", ComponentType.SINKGROUP);
(ChannelConfiguration) ComponentConfigurationFactory.create( channelName, config, ComponentType.CHANNEL); LOGGER.debug("Created channel {}", channelName);
(SinkConfiguration) ComponentConfigurationFactory.create( sinkName, config, ComponentType.SINK); if (sinkConf != null) {
(SourceConfiguration) ComponentConfigurationFactory.create( sourceName, config, ComponentType.SOURCE); if (srcConf != null) {
.create(ComponentType.CHANNELSELECTOR.getComponentType(), config, ComponentType.CHANNELSELECTOR); selectorConf.setChannels(channels);
@Override public void configure(Context context) throws ConfigurationException { super.configure(context); sinks = Arrays.asList(context.getString( BasicConfigurationConstants.CONFIG_SINKS).split("\\s+")); Map<String, String> params = context.getSubProperties( BasicConfigurationConstants.CONFIG_SINK_PROCESSOR_PREFIX); processorContext = new Context(); processorContext.putAll(params); SinkProcessorType spType = getKnownSinkProcessor(processorContext.getString( BasicConfigurationConstants.CONFIG_TYPE)); if (spType != null) { processorConf = (SinkProcessorConfiguration) ComponentConfigurationFactory.create( this.getComponentName() + "-processor", spType.toString(), ComponentType.SINK_PROCESSOR); if (processorConf != null) { processorConf.setSinks(new HashSet<String>(sinks)); processorConf.configure(processorContext); } } setConfigured(); }
(ConfigFilterConfiguration) ComponentConfigurationFactory.create( configFilterName, config, ComponentType.CONFIG_FILTER); LOGGER.debug("Created configfilter {}", configFilterName);
try { conf = (SinkGroupConfiguration) ComponentConfigurationFactory.create( sinkgroupName, "sinkgroup", ComponentType.SINKGROUP);
(ChannelConfiguration) ComponentConfigurationFactory.create( channelName, config, ComponentType.CHANNEL); LOGGER.debug("Created channel {}", channelName);
(SinkConfiguration) ComponentConfigurationFactory.create( sinkName, config, ComponentType.SINK); if (sinkConf != null) {
(SourceConfiguration) ComponentConfigurationFactory.create( sourceName, config, ComponentType.SOURCE); if (srcConf != null) {
.create(ComponentType.CHANNELSELECTOR.getComponentType(), config, ComponentType.CHANNELSELECTOR); selectorConf.setChannels(channels);
@Override public void configure(Context context) throws ConfigurationException { super.configure(context); sinks = Arrays.asList(context.getString( BasicConfigurationConstants.CONFIG_SINKS).split("\\s+")); Map<String, String> params = context.getSubProperties( BasicConfigurationConstants.CONFIG_SINK_PROCESSOR_PREFIX); processorContext = new Context(); processorContext.putAll(params); SinkProcessorType spType = getKnownSinkProcessor(processorContext.getString( BasicConfigurationConstants.CONFIG_TYPE)); if (spType != null) { processorConf = (SinkProcessorConfiguration) ComponentConfigurationFactory.create( this.getComponentName() + "-processor", spType.toString(), ComponentType.SINK_PROCESSOR); if (processorConf != null) { processorConf.setSinks(new HashSet<String>(sinks)); processorConf.configure(processorContext); } } setConfigured(); }