Examples of DriverScript


Examples of com.asakusafw.windgate.core.DriverScript

     * @throws Exception if failed
     */
    @Test(expected = IOException.class)
    public void prepare_invalid_source() throws Exception {
        Map<String, String> conf = new HashMap<String, String>();
        DriverScript driverScript = new DriverScript("file", conf);

        FileResourceMirror resource = new FileResourceMirror(profile(), new ParameterList());
        try {
            ProcessScript<StringBuilder> a = process("a", driverScript, dummy());
            ProcessScript<StringBuilder> b = process("b", dummy(), driver("drain"));
View Full Code Here

Examples of com.asakusafw.windgate.core.DriverScript

     * @throws Exception if failed
     */
    @Test(expected = IOException.class)
    public void prepare_invalid_drain() throws Exception {
        Map<String, String> conf = new HashMap<String, String>();
        DriverScript driverScript = new DriverScript("file", conf);

        FileResourceMirror resource = new FileResourceMirror(profile(), new ParameterList());
        try {
            ProcessScript<StringBuilder> a = process("a", driver("source"), dummy());
            ProcessScript<StringBuilder> b = process("b", dummy(), driverScript);
View Full Code Here

Examples of com.asakusafw.windgate.core.DriverScript

    private DriverScript driver(String file) {
        Map<String, String> conf = new HashMap<String, String>();
        conf.put(FileProcess.FILE.key(), file);
        conf.put(StreamProcess.STREAM_SUPPORT.key(), StringBuilderSupport.class.getName());
        return new DriverScript("file", conf);
    }
View Full Code Here

Examples of com.asakusafw.windgate.core.DriverScript

        conf.put(StreamProcess.STREAM_SUPPORT.key(), StringBuilderSupport.class.getName());
        return new DriverScript("file", conf);
    }

    private DriverScript dummy() {
        return new DriverScript("dummy", Collections.<String, String>emptyMap());
    }
View Full Code Here

Examples of com.asakusafw.windgate.core.DriverScript

    private DriverScript driver(String file) {
        Map<String, String> conf = new HashMap<String, String>();
        conf.put(FileProcess.FILE.key(), file);
        conf.put(StreamProcess.STREAM_SUPPORT.key(), StringBuilderSupport.class.getName());
        return new DriverScript("file", conf);
    }
View Full Code Here

Examples of com.asakusafw.windgate.core.DriverScript

        conf.put(StreamProcess.STREAM_SUPPORT.key(), StringBuilderSupport.class.getName());
        return new DriverScript("file", conf);
    }

    private DriverScript dummy() {
        return new DriverScript("dummy", Collections.<String, String>emptyMap());
    }
View Full Code Here

Examples of com.asakusafw.windgate.core.DriverScript

        repo.createDrain(script);
    }

    private DriverScript driver(String name) {
        assert name != null;
        return new DriverScript(name, Collections.<String, String>emptyMap());
    }
View Full Code Here

Examples of com.asakusafw.windgate.core.DriverScript

    }

    private List<Path> getPath(ProcessScript<?> proc, DriverScript.Kind kind) throws IOException {
        assert proc != null;
        assert kind != null;
        DriverScript script = proc.getDriverScript(kind);
        String pathString = script.getConfiguration().get(FILE.key());
        if (pathString == null) {
            WGLOG.error("E01001",
                    getName(),
                    proc.getName(),
                    kind.prefix,
View Full Code Here

Examples of com.asakusafw.windgate.core.DriverScript

        Map<String, String> conf = new HashMap<String, String>();
        conf.put(JdbcProcess.TABLE.key(), "PAIR");
        conf.put(JdbcProcess.COLUMNS.key(), "KEY,VALUE");
        conf.put(JdbcProcess.JDBC_SUPPORT.key(), PairSupport.class.getName());

        ProcessScript<Pair> process = process(new DriverScript("jdbc", conf), dummy());

        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (1, 'Hello1, world!')");
        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (2, 'Hello2, world!')");
        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (3, 'Hello3, world!')");
View Full Code Here

Examples of com.asakusafw.windgate.core.DriverScript

        conf.put(JdbcProcess.TABLE.key(), "PAIR");
        conf.put(JdbcProcess.COLUMNS.key(), "KEY,VALUE");
        conf.put(JdbcProcess.CONDITION.key(), "KEY = 10");
        conf.put(JdbcProcess.JDBC_SUPPORT.key(), PairSupport.class.getName());

        ProcessScript<Pair> process = process(new DriverScript("jdbc", conf), dummy());

        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (1, 'Hello1, world!')");
        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (2, 'Hello2, world!')");
        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (3, 'Hello3, world!')");
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.