Examples of HawtDBAggregationRepository


Examples of org.apache.camel.component.hawtdb.HawtDBAggregationRepository

            public void configure() throws Exception {
                // delete the data directory
                deleteDirectory("target/data");

                // create the hawtdb repo
                HawtDBAggregationRepository repo = new HawtDBAggregationRepository("repo1", "target/data/hawtdb.dat");

                // here is the Camel route where we aggregate
                from("direct:start")
                    .aggregate(header("id"), new MyAggregationStrategy())
                        // use our created hawtdb repo as aggregation repository
View Full Code Here

Examples of org.apache.camel.component.hawtdb.HawtDBAggregationRepository

        from("activemq:queue:foo")
            .transacted()
                .to("mock:input")
                //.log("Incoming ${header.group} with body ${body}")
                .aggregate(header("group"), new MyConcatAggregatationStrategy())
                    .aggregationRepository(new HawtDBAggregationRepository("events", "data/hawtdb.dat"))
                    .completionSize(10)
                    .log("Aggregated #${header.counter} ${header.group} with body ${body}")
                    .to("activemq:queue:out")
                    .to("mock:out");
View Full Code Here

Examples of org.apache.camel.component.hawtdb.HawtDBAggregationRepository

            public void configure() throws Exception {
                // delete the data directory
                deleteDirectory("target/data");

                // create the hawtdb repo
                HawtDBAggregationRepository repo = new HawtDBAggregationRepository("repo1", "target/data/hawtdb.dat");

                // here is the Camel route where we aggregate
                from("direct:start")
                    .aggregate(header("id"), new MyAggregationStrategy())
                        // use our created hawtdb repo as aggregation repository
View Full Code Here

Examples of org.apache.camel.component.hawtdb.HawtDBAggregationRepository

        from("activemq:queue:foo")
            .transacted()
                .to("mock:input")
                //.log("Incoming ${header.group} with body ${body}")
                .aggregate(header("group"), new MyConcatAggregatationStrategy())
                    .aggregationRepository(new HawtDBAggregationRepository("events", "target/data/hawtdb.dat"))
                    .completionSize(10)
                    .log("Aggregated #${header.counter} ${header.group} with body ${body}")
                    .to("activemq:queue:out")
                    .to("mock:out");
View Full Code Here

Examples of org.apache.camel.component.hawtdb.HawtDBAggregationRepository

            public void configure() throws Exception {
                // delete the data directory
                deleteDirectory("target/data");

                // create the hawtdb repo
                HawtDBAggregationRepository repo = new HawtDBAggregationRepository("repo1", "target/data/hawtdb.dat");

                // here is the Camel route where we aggregate
                from("direct:start")
                    .aggregate(header("id"), new MyAggregationStrategy())
                        // use our created hawtdb repo as aggregation repository
View Full Code Here

Examples of org.apache.camel.component.hawtdb.HawtDBAggregationRepository

            public void configure() throws Exception {
                // delete the data directory
                deleteDirectory("target/data");

                // create the hawtdb repo
                HawtDBAggregationRepository repo = new HawtDBAggregationRepository("repo1", "target/data/hawtdb.dat");

                // here is the Camel route where we aggregate
                from("direct:start")
                    .aggregate(header("id"), new MyAggregationStrategy())
                        // use our created hawtdb repo as aggregation repository
View Full Code Here

Examples of org.apache.camel.component.hawtdb.HawtDBAggregationRepository

        from("activemq:queue:foo")
            .transacted()
                .to("mock:input")
                //.log("Incoming ${header.group} with body ${body}")
                .aggregate(header("group"), new MyConcatAggregatationStrategy())
                    .aggregationRepository(new HawtDBAggregationRepository("events", "data/hawtdb.dat"))
                    .completionSize(10)
                    .log("Aggregated #${header.counter} ${header.group} with body ${body}")
                    .to("activemq:queue:out")
                    .to("mock:out");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.