Package it.geosolutions.geobatch.task

Examples of it.geosolutions.geobatch.task.TaskExecutorConfiguration


    private File taskExecutor(File inputFile, File errorFile) throws IOException, ActionException {
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("--------------------- TaskExecutor - rasterization ----------------");
        }

        final TaskExecutorConfiguration teConfig = new TaskExecutorConfiguration("gdal_rasterize_id", "UNREDD_rasterize", "gdal_rasterize");
//        final EventObject ev;
//        ev = (EventObject) queue.peek();
//        String filename = ev.getSource().toString();
        if(LOGGER.isDebugEnabled())
            LOGGER.debug("Input file: " + inputFile);
        teConfig.setDefaultScript(inputFile.getAbsolutePath());
        teConfig.setErrorFile(errorFile.getAbsolutePath());
        teConfig.setExecutable(rasterizeConfig.getExecutable());
        if(LOGGER.isDebugEnabled())
            LOGGER.debug("gdal_rasterize executable file: " + rasterizeConfig.getExecutable());
        teConfig.setFailIgnored(false);
//                teConfig.setOutput(getOutput());
//                teConfig.setOutputName(getOutputName());
//                teConfig.setServiceID(getServiceID());
        teConfig.setTimeOut(120000l);
//                teConfig.setVariables(getVariables());
        teConfig.setConfigDir(configDir);
        teConfig.setXsl(rasterizeConfig.getTaskExecutorXslFileName());

        TaskExecutor tea = new TaskExecutor(teConfig);
//        tea.setRunningContext(tempDir.getAbsolutePath());
        tea.setTempDir(tempDir);
        tea.setConfigDir(configDir);
View Full Code Here

TOP

Related Classes of it.geosolutions.geobatch.task.TaskExecutorConfiguration

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.