"Agent configuration for '{}' sinkgroup '{}' sink '{}' in use by another group: " + "'{}', sink not added", new Object[]{agentName, groupConf.getComponentName(), curSink, usedSinks.get(curSink)} ); addError(groupConf.getComponentName(), PROPERTY_PART_OF_ANOTHER_GROUP, ERROR); sinkIt.remove(); continue; LOGGER.warn("Agent configuration for '{}' sinkgroup '{}' sink not found: '{}', " + " sink not added", new Object[]{agentName, groupConf.getComponentName(), curSink} ); addError(curSink, INVALID_PROPERTY, ERROR); continue; } else { usedSinks.put(curSink, groupConf.getComponentName());
@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(); }
"Agent configuration for '{}' sinkgroup '{}' sink '{}' in use by another group: " + "'{}', sink not added", new Object[]{agentName, groupConf.getComponentName(), curSink, usedSinks.get(curSink)} ); addError(groupConf.getComponentName(), PROPERTY_PART_OF_ANOTHER_GROUP, ERROR); sinkIt.remove(); continue; LOGGER.warn("Agent configuration for '{}' sinkgroup '{}' sink not found: '{}', " + " sink not added", new Object[]{agentName, groupConf.getComponentName(), curSink} ); addError(curSink, INVALID_PROPERTY, ERROR); continue; } else { usedSinks.put(curSink, groupConf.getComponentName());
@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(); }