Package com.asakusafw.windgate.core

Examples of com.asakusafw.windgate.core.ParameterList


        } finally {
            output.close();
        }

        List<String> results = new ArrayList<String>();
        MockSshHadoopFsMirror resource = new MockSshHadoopFsMirror(new Configuration(), profile, new ParameterList());
        try {
            ProcessScript<Text> proc = p("p", "dummy", "", "INVALID", "");
            resource.prepare(script(proc));
            SourceDriver<Text> driver = resource.createSource(proc);
            try {
View Full Code Here


        } finally {
            output.close();
        }

        List<String> results = new ArrayList<String>();
        MockSshHadoopFsMirror resource = new MockSshHadoopFsMirror(new Configuration(), profile, new ParameterList());
        try {
            ProcessScript<Text> proc = p("p", "dummy", "testing-1", "INVALID", "");
            resource.prepare(script(proc));
            SourceDriver<Text> driver = resource.createSource(proc);
            try {
View Full Code Here

        } finally {
            output.close();
        }

        List<String> results = new ArrayList<String>();
        MockSshHadoopFsMirror resource = new MockSshHadoopFsMirror(new Configuration(), profile, new ParameterList());
        try {
            assertThat(RuntimeContext.get().canExecute(resource), is(true));
            ProcessScript<Text> proc = p("p", "dummy", "testing-1", "INVALID", "");
            resource.prepare(script(proc));
            SourceDriver<Text> driver = resource.createSource(proc);
View Full Code Here

            File profilePath = new File(
                    context.getFrameworkHomePath(),
                    MessageFormat.format(PATTERN_PROFILE, profile)).getAbsoluteFile();
            Map<String, String> variables = new HashMap<String, String>(context.getEnvironmentVariables());
            variables.put("WINDGATE_PROFILE", profile);
            ParameterList contextParameters = new ParameterList(variables);
            ProfileContext profileContext = new ProfileContext(classLoader, contextParameters);

            URI uri = profilePath.toURI();
            Properties properties = CommandLineUtil.loadProperties(uri, classLoader);
            return GateProfile.loadFrom(CommandLineUtil.toName(uri), properties, profileContext);
View Full Code Here

            WindGateImporterDescription description,
            TestContext context) throws IOException {
        ProcessScript<?> process = WindGateTestHelper.createProcessScript(
                description.getModelType(),
                description);
        ParameterList parameterList = new ParameterList(context.getArguments());
        ResourceManipulator manipulator =
            WindGateTestHelper.createResourceManipulator(context, description, parameterList);
        manipulator.cleanupSource(process);
    }
View Full Code Here

            WindGateImporterDescription description,
            TestContext context) throws IOException {
        ProcessScript<V> process = WindGateTestHelper.createProcessScript(
                definition.getModelClass(),
                description);
        ParameterList parameterList = new ParameterList(context.getArguments());
        ResourceManipulator manipulator =
            WindGateTestHelper.createResourceManipulator(context, description, parameterList);
        DrainDriver<V> driver = manipulator.createDrainForSource(process);
        return new WindGateOutput<V>(WindGateTestHelper.prepare(driver));
    }
View Full Code Here

            WindGateExporterDescription description,
            TestContext context) throws IOException {
        ProcessScript<?> process = WindGateTestHelper.createProcessScript(
                description.getModelType(),
                description);
        ParameterList parameterList = new ParameterList(context.getArguments());
        ResourceManipulator manipulator =
            WindGateTestHelper.createResourceManipulator(context, description, parameterList);
        manipulator.cleanupDrain(process);
    }
View Full Code Here

            WindGateExporterDescription description,
            TestContext context) throws IOException {
        ProcessScript<V> process = WindGateTestHelper.createProcessScript(
                definition.getModelClass(),
                description);
        ParameterList parameterList = new ParameterList(context.getArguments());
        ResourceManipulator manipulator =
            WindGateTestHelper.createResourceManipulator(context, description, parameterList);
        DrainDriver<V> driver = manipulator.createDrainForDrain(process);
        return new WindGateOutput<V>(WindGateTestHelper.prepare(driver));
    }
View Full Code Here

            WindGateExporterDescription description,
            TestContext context) throws IOException {
        ProcessScript<V> process = WindGateTestHelper.createProcessScript(
                definition.getModelClass(),
                description);
        ParameterList parameterList = new ParameterList(context.getArguments());
        ResourceManipulator manipulator =
            WindGateTestHelper.createResourceManipulator(context, description, parameterList);
        SourceDriver<V> driver = manipulator.createSourceForDrain(process);
        return new WindGateSource<V>(WindGateTestHelper.prepare(driver), definition);
    }
View Full Code Here

        if (instance instanceof WindGateImporterDescription) {
            WindGateImporterDescription description = (WindGateImporterDescription) instance;
            ProcessScript<T> process = WindGateTestHelper.createProcessScript(
                    definition.getModelClass(),
                    description);
            ParameterList parameterList = new ParameterList(context.getArguments());
            ResourceManipulator manipulator =
                WindGateTestHelper.createResourceManipulator(context, description, parameterList);
            SourceDriver<T> driver = manipulator.createSourceForSource(process);
            return new WindGateSource<T>(WindGateTestHelper.prepare(driver), definition);
        } else if (instance instanceof WindGateExporterDescription) {
            WindGateExporterDescription description = (WindGateExporterDescription) instance;
            ProcessScript<T> process = WindGateTestHelper.createProcessScript(
                    definition.getModelClass(),
                    description);
            ParameterList parameterList = new ParameterList(context.getArguments());
            ResourceManipulator manipulator =
                WindGateTestHelper.createResourceManipulator(context, description, parameterList);
            SourceDriver<T> driver = manipulator.createSourceForDrain(process);
            return new WindGateSource<T>(WindGateTestHelper.prepare(driver), definition);
        } else {
View Full Code Here

TOP

Related Classes of com.asakusafw.windgate.core.ParameterList

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.