Package com.asakusafw.vocabulary.batch

Examples of com.asakusafw.vocabulary.batch.Work


        BatchClass batch = analyze.getBatchClass();
        Collection<Work> works = batch.getDescription().getWorks();

        assertThat(works.size(), is(1));
        Work work = works.iterator().next();
        assertThat(work.getDeclaring(), is(batch.getDescription()));
        assertThat(work.getDependencies().size(), is(0));
        assertThat(work.getDescription(), is((Object) new JobFlowWorkDescription(JobFlow1.class)));
    }
View Full Code Here


@Batch(name = "join")
public class JoinBatch extends BatchDescription {

    @Override
    protected void describe() {
        Work first = run(FirstJobFlow.class).soon();
        Work second = run(SecondJobFlow.class).after(first);
        Work side = run(SideJobFlow.class).after(first);
        run(JoinJobFlow.class).after(second, side);
    }
View Full Code Here

@Batch(name = "ordered")
public class OrderedBatch extends BatchDescription {

    @Override
    protected void describe() {
        Work first = run(FirstJobFlow.class).soon();
        run(SecondJobFlow.class).after(first);
    }
View Full Code Here

@Batch(name = "diamond")
public class DiamondBatch extends BatchDescription {

    @Override
    protected void describe() {
        Work first = run(FirstFlow.class).soon();
        Work left = run(LeftFlow.class).after(first);
        Work right = run(RightFlow.class).after(first);
        run(LastFlow.class).after(left, right);
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.vocabulary.batch.Work

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.