Package org.apache.flume

Examples of org.apache.flume.SourceRunner


     */
    protected FlumeEmbeddedManager(final String name, final String shortName, final FlumeNode node) {
        super(name);
        this.node = node;
        this.shortName = shortName;
        final SourceRunner runner = node.getConfiguration().getSourceRunners().get(SOURCE_NAME);
        if (runner == null || runner.getSource() == null) {
            throw new IllegalStateException("No Source has been created for Appender " + shortName);
        }
        source  = (Log4jEventSource) runner.getSource();
    }
View Full Code Here


     */
    protected FlumeEmbeddedManager(final String name, final String shortName, final FlumeNode node) {
        super(name);
        this.node = node;
        this.shortName = shortName;
        final SourceRunner runner = node.getConfiguration().getSourceRunners().get(SOURCE_NAME);
        if (runner == null || runner.getSource() == null) {
            throw new IllegalStateException("No Source has been created for Appender " + shortName);
        }
        source  = (Log4jEventSource) runner.getSource();
    }
View Full Code Here

    EventBus eventBus = new EventBus("test-event-bus");

    MaterializedConfiguration materializedConfiguration = new
        SimpleMaterializedConfiguration();

    SourceRunner sourceRunner = mockLifeCycle(SourceRunner.class);
    materializedConfiguration.addSourceRunner("test", sourceRunner);

    SinkRunner sinkRunner = mockLifeCycle(SinkRunner.class);
    materializedConfiguration.addSinkRunner("test", sinkRunner);
View Full Code Here

     */
    protected FlumeEmbeddedManager(final String name, final String shortName, final FlumeNode node) {
        super(name);
        this.node = node;
        this.shortName = shortName;
        final SourceRunner runner = node.getConfiguration().getSourceRunners().get(SOURCE_NAME);
        if (runner == null || runner.getSource() == null) {
            throw new IllegalStateException("No Source has been created for Appender " + shortName);
        }
        source  = (Log4jEventSource) runner.getSource();
    }
View Full Code Here

        LifecycleState.START_OR_ERROR, 5000);

    Assert.assertTrue("Matched a known state", reached);
    Assert.assertEquals(LifecycleState.START, node.getLifecycleState());

    SourceRunner n1 = SourceRunner.forSource(new SequenceGeneratorSource());

    node.getNodeManager().add(n1);

    node.stop();
    reached = LifecycleController.waitForOneOf(node,
View Full Code Here

     */
    protected FlumeEmbeddedManager(String name, String shortName, FlumeNode node) {
        super(name);
        this.node = node;
        this.shortName = shortName;
        SourceRunner runner = node.getConfiguration().getSourceRunners().get(SOURCE_NAME);
        if (runner == null || runner.getSource() == null) {
            throw new IllegalStateException("No Source has been created for Appender " + shortName);
        }
        source  = (Log4jEventSource) runner.getSource();
    }
View Full Code Here

     */
    protected FlumeEmbeddedManager(final String name, final String shortName, final FlumeNode node) {
        super(name);
        this.node = node;
        this.shortName = shortName;
        final SourceRunner runner = node.getConfiguration().getSourceRunners().get(SOURCE_NAME);
        if (runner == null || runner.getSource() == null) {
            throw new IllegalStateException("No Source has been created for Appender " + shortName);
        }
        source  = (Log4jEventSource) runner.getSource();
    }
View Full Code Here

     */
    protected FlumeEmbeddedManager(String name, String shortName, FlumeNode node) {
        super(name);
        this.node = node;
        this.shortName = shortName;
        SourceRunner runner = node.getConfiguration().getSourceRunners().get(SOURCE_NAME);
        if (runner == null || runner.getSource() == null) {
            throw new IllegalStateException("No Source has been created for Appender " + shortName);
        }
        source  = (Log4jEventSource) runner.getSource();
    }
View Full Code Here

     */
    protected FlumeEmbeddedManager(final String name, final String shortName, final FlumeNode node) {
        super(name);
        this.node = node;
        this.shortName = shortName;
        final SourceRunner runner = node.getConfiguration().getSourceRunners().get(SOURCE_NAME);
        if (runner == null || runner.getSource() == null) {
            throw new IllegalStateException("No Source has been created for Appender " + shortName);
        }
        source  = (Log4jEventSource) runner.getSource();
    }
View Full Code Here

     */
    protected FlumeEmbeddedManager(String name, String shortName, FlumeNode node) {
        super(name);
        this.node = node;
        this.shortName = shortName;
        SourceRunner runner = node.getConfiguration().getSourceRunners().get(SOURCE_NAME);
        if (runner == null || runner.getSource() == null) {
            throw new IllegalStateException("No Source has been created for Appender " + shortName);
        }
        source  = (Log4jEventSource) runner.getSource();
    }
View Full Code Here

TOP

Related Classes of org.apache.flume.SourceRunner

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.