Package org.apache.flume.sink

Examples of org.apache.flume.sink.DefaultSinkFactory


    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

    private PhoenixSink sink;
  
  
    @Test
    public void testSinkCreation() {
        SinkFactory factory = new DefaultSinkFactory ();
        Sink sink = factory.create("PhoenixSink__", "org.apache.phoenix.flume.sink.PhoenixSink");
        Assert.assertNotNull(sink);
        Assert.assertTrue(PhoenixSink.class.isInstance(sink));
    }
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 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

private SinkFactory sinkFactory;

  @Before
  public void setUp() {
    sinkFactory = new DefaultSinkFactory();
  }
View Full Code Here

  private SinkFactory sinkFactory;

  @Before
  public void setUp() {
    sinkFactory = new DefaultSinkFactory();
  }
View Full Code Here

    }
  }

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

  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

TOP

Related Classes of org.apache.flume.sink.DefaultSinkFactory

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.