Package org.springframework.xd.test.fixtures

Examples of org.springframework.xd.test.fixtures.PartitionedJdbcHdfsJob


    jdbcSink.columns(PartitionedJdbcHdfsJob.DEFAULT_COLUMN_NAMES);
    String data0 = "{\"id\":1,\"name\":\"Sven\"}";
    String data1 = "{\"id\":2,\"name\":\"Anna\"}";
    String data2 = "{\"id\":3,\"name\":\"Nisse\"}";
    jdbcSink.getJdbcTemplate().getDataSource();
    PartitionedJdbcHdfsJob job = jobs.partitionedJdbcHdfsJob();
    // Use a trigger to send data to JDBC
    stream("dataSender", sources.http() + XD_DELIMITER
        + jdbcSink);
    sources.http(getContainerHostForSource("dataSender")).postData(data0);
    sources.http(getContainerHostForSource("dataSender")).postData(data1);
    sources.http(getContainerHostForSource("dataSender")).postData(data2);

    job(job.toDSL());
    waitForXD();
    jobLaunch();
    waitForXD(2000);
    // Evaluate the results of the test.
    String dir = JdbcHdfsJob.DEFAULT_DIRECTORY + "/";
View Full Code Here

TOP

Related Classes of org.springframework.xd.test.fixtures.PartitionedJdbcHdfsJob

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.