Package org.apache.flume.channel

Examples of org.apache.flume.channel.DefaultChannelFactory


        new PropertiesFileConfigurationProvider();

    provider.setNodeName("host1");
    provider.setConfigurationAware(new DummyNodeConfigurationAware());

    provider.setChannelFactory(new DefaultChannelFactory());
    provider.setSourceFactory(new DefaultSourceFactory());
    provider.setSinkFactory(new DefaultSinkFactory());

    provider.setFile(TESTFILE);
    provider.load();
View Full Code Here


  public AbstractConfigurationProvider(String agentName) {
    super();
    this.agentName = agentName;
    this.sourceFactory = new DefaultSourceFactory();
    this.sinkFactory = new DefaultSinkFactory();
    this.channelFactory = new DefaultChannelFactory();

    channelCache = new HashMap<Class<? extends Channel>, Map<String, Channel>>();
  }
View Full Code Here

  public AbstractConfigurationProvider(String agentName) {
    super();
    this.agentName = agentName;
    this.sourceFactory = new DefaultSourceFactory();
    this.sinkFactory = new DefaultSinkFactory();
    this.channelFactory = new DefaultChannelFactory();

    channelCache = new HashMap<Class<? extends Channel>, Map<String, Channel>>();
  }
View Full Code Here

  @Test
  public void testPropertyRead() throws Exception {
    PropertiesFileConfigurationProvider provider = new PropertiesFileConfigurationProvider();

    provider.setChannelFactory(new DefaultChannelFactory());
    provider.setSourceFactory(new DefaultSourceFactory());
    provider.setSinkFactory(new DefaultSinkFactory());

    provider.setFile(TESTFILE);
    provider.load();
View Full Code Here

  }

  public Application() {
    sourceFactory = new DefaultSourceFactory();
    sinkFactory = new DefaultSinkFactory();
    channelFactory = new DefaultChannelFactory();
  }
View Full Code Here

  }

  public Application() {
    sourceFactory = new DefaultSourceFactory();
    sinkFactory = new DefaultSinkFactory();
    channelFactory = new DefaultChannelFactory();
  }
View Full Code Here

  @Test
  public void testPropertyRead() throws Exception {
    PropertiesFileConfigurationProvider provider = new PropertiesFileConfigurationProvider();

    provider.setChannelFactory(new DefaultChannelFactory());
    provider.setSourceFactory(new DefaultSourceFactory());
    provider.setSinkFactory(new DefaultSinkFactory());

    provider.setFile(TESTFILE);
    provider.load();
View Full Code Here

  private JsonFileConfigurationProvider provider;

  @Before
  public void setUp() {
    ChannelFactory channelFactory = new DefaultChannelFactory();
    SourceFactory sourceFactory = new DefaultSourceFactory();
    SinkFactory sinkFactory = new DefaultSinkFactory();

    channelFactory.register("memory", MemoryChannel.class);

    sourceFactory.register("seq", SequenceGeneratorSource.class);
    sourceFactory.register("netcat", NetcatSource.class);

    sinkFactory.register("null", NullSink.class);
View Full Code Here

TOP

Related Classes of org.apache.flume.channel.DefaultChannelFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.