Package com.odiago.flumebase.flume

Examples of com.odiago.flumebase.flume.EmbeddedFlumeConfig


   */
  public LocalEnvironment(Configuration conf) {
    this(conf,
        new HashSymbolTable(new BuiltInSymbolTable()),
        new HashMap<String, MemoryOutputElement>(),
        new EmbeddedFlumeConfig(conf));
  }
View Full Code Here


      w.write("line3\n");
    } finally {
      w.close();
    }

    EmbeddedFlumeConfig flumeConf = getFlumeConfig();
    String nodeSource = "text(\"" + sourceFilename + "\")";
    flumeConf.start();
    flumeConf.spawnLogicalNode(SRC_NODE, nodeSource, "console");

    StreamBuilder streamBuilder = new StreamBuilder("inputstream");
    streamBuilder.setSource(SRC_NODE);
    streamBuilder.setSourceType(StreamSourceType.Node);
    streamBuilder.setLocal(false);
View Full Code Here

    final String SRC_NODE = "srcnode";
    File sourceFile = File.createTempFile("records-", ".txt");
    sourceFile.deleteOnExit();
    String sourceFilename = sourceFile.getAbsolutePath();

    EmbeddedFlumeConfig flumeConf = getFlumeConfig();
    String nodeSource = "tail(\"" + sourceFilename + "\")";
    flumeConf.start();
    flumeConf.spawnLogicalNode(SRC_NODE, nodeSource, "console");

    StreamBuilder streamBuilder = new StreamBuilder("inputstream");
    streamBuilder.setSource(SRC_NODE);
    streamBuilder.setSourceType(StreamSourceType.Node);
    streamBuilder.setLocal(false);
View Full Code Here

  @BeforeMethod
  public void setUp() {
    mSymbolTable = new HashSymbolTable(new BuiltInSymbolTable());
    mConf = new Configuration();
    mOutputs = Collections.synchronizedMap(new HashMap<String, MemoryOutputElement>());
    mFlumeConfig = new EmbeddedFlumeConfig(mConf);
    mEnvironment = new LocalEnvironment(mConf, mSymbolTable, mOutputs, mFlumeConfig);
  }
View Full Code Here

TOP

Related Classes of com.odiago.flumebase.flume.EmbeddedFlumeConfig

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.