public class SinkProcessorFactory extends Object
Constructor and Description |
---|
SinkProcessorFactory() |
Modifier and Type | Method and Description |
---|---|
static SinkProcessor |
getProcessor(ComponentConfiguration conf,
List<Sink> sinks) |
static SinkProcessor |
getProcessor(Context context,
List<Sink> sinks)
Creates a sink processor and configures it using the provided context
|
public static SinkProcessor getProcessor(Context context, List<Sink> sinks)
Creates a sink processor and configures it using the provided context
context
- Context limited to that of the processor. Should include type
and any settings relevant to that processor type. Referer to javadoc for
specific sinksinks
- A non-null, non-empty list of sinks to be assigned to the
processorFlumeException
- Runtime exception thrown in the case of an invalid
processor configurationorg.apache.flume.SinkProcessorType
public static SinkProcessor getProcessor(ComponentConfiguration conf, List<Sink> sinks)
Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.