Examples of RunnableSourceManager


Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.RunnableSourceManager

    file = new File(fileName);

    // Build the task object.
    task = new PbfReader(file, workers);

    return new RunnableSourceManager(taskConfig.getId(), task, taskConfig.getPipeArgs());
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.RunnableSourceManager

      file = new File(fileName);
     
      // Build the task object.
      task = new FastXmlReader(file, enableDateParsing, compressionMethod);
     
      return new RunnableSourceManager(taskConfig.getId(), task, taskConfig.getPipeArgs());
    }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.RunnableSourceManager

    file = new File(fileName);
   
    // Build the task object.
    task = new XmlReader(file, enableDateParsing, compressionMethod);
   
    return new RunnableSourceManager(taskConfig.getId(), task, taskConfig.getPipeArgs());
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.RunnableSourceManager

   
    // Get the task arguments.
    loginCredentials = getDatabaseLoginCredentials(taskConfig);
    preferences = getDatabasePreferences(taskConfig);
   
    return new RunnableSourceManager(
      taskConfig.getId(),
      new ApidbCurrentReader(loginCredentials, preferences),
      taskConfig.getPipeArgs()
    );
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.RunnableSourceManager

    // Get the task arguments.
    loginCredentials = getDatabaseLoginCredentials(taskConfig);
    preferences = getDatabasePreferences(taskConfig);
    snapshotInstant = getDateArgument(taskConfig, ARG_SNAPSHOT_INSTANT, new Date());
   
    return new RunnableSourceManager(
      taskConfig.getId(),
      new ApidbReader(loginCredentials, preferences, snapshotInstant),
      taskConfig.getPipeArgs()
    );
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.RunnableSourceManager

    top = getDoubleArgument(taskConfig, ARG_TOP, DEFAULT_TOP);
    bottom = getDoubleArgument(taskConfig, ARG_BOTTOM, DEFAULT_BOTTOM);
    url = getStringArgument(taskConfig, ARG_URL, XmlConstants.DEFAULT_URL);
       
    // Create and return the task and associated manager.
    return new RunnableSourceManager(
      taskConfig.getId(),
      new XmlDownloader(left, right, top, bottom, url),
      taskConfig.getPipeArgs()
    );
    }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.RunnableSourceManager

            // TODO Auto-generated catch block
            e.printStackTrace();
            return null;
        }

        return new RunnableSourceManager(taskConfig.getId(), task, taskConfig
                .getPipeArgs());
    }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.RunnableSourceManager

  /**
   * {@inheritDoc}
   */
  @Override
  protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) {
    return new RunnableSourceManager(taskConfig.getId(), new EmptyReader(), taskConfig.getPipeArgs());
  }
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.