Package com.asakusafw.compiler.flow.ExternalIoCommandProvider

Examples of com.asakusafw.compiler.flow.ExternalIoCommandProvider.CommandContext


        }
    }

    private CommandContext createContext(JobflowModel model) {
        assert model != null;
        return new CommandContext(
                quote(PREFIX_APP_HOME),
                quote(EXPR_EXECUTION_ID),
                quote(EXPR_BATCH_ARGS));
    }
View Full Code Here


    private void dumpExporter(Context context, JobflowModel model) {
        assert context != null;
        assert model != null;
        List<ExternalIoCommandProvider> providers = model.getCompiled().getCommandProviders();
        CommandContext cmdContext = createContext(model);
        for (ExternalIoCommandProvider provider : providers) {
            List<Command> commands = provider.getExportCommand(cmdContext);
            for (Command cmd : commands) {
                context.put("# Export by {0}", provider.getName());
                context.put("echo \"Processing exporter sequence by {0}\"", provider.getName());
View Full Code Here

    private void dumpInitializer(Context context, JobflowModel model) {
        assert context != null;
        assert model != null;
        List<ExternalIoCommandProvider> providers = model.getCompiled().getCommandProviders();
        CommandContext cmdContext = createContext(model);
        for (ExternalIoCommandProvider provider : providers) {
            List<Command> commands = provider.getInitializeCommand(cmdContext);
            for (Command cmd : commands) {
                context.put("# Initializer by {0}", provider.getName());
                context.put("echo \"Processing {1} initializer sequence by {0}\"",
View Full Code Here

    private void dumpFinalizer(Context context, JobflowModel model, String indent) {
        assert context != null;
        assert model != null;
        List<ExternalIoCommandProvider> providers = model.getCompiled().getCommandProviders();
        CommandContext cmdContext = createContext(model);
        for (ExternalIoCommandProvider provider : providers) {
            List<Command> commands = provider.getFinalizeCommand(cmdContext);
            for (Command cmd : commands) {
                context.put("{0}# Finalizer by {1}",
                        indent,
View Full Code Here

TOP

Related Classes of com.asakusafw.compiler.flow.ExternalIoCommandProvider.CommandContext

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.