Package com.findwise.hydra.mongodb

Examples of com.findwise.hydra.mongodb.MongoConnector.connect()


        if (cmd.getJarFile() != null) {
            File f = new File(cmd.getJarFile().getFilename());

            MongoDBConnectionConfig conf = new MongoDBConnectionConfig(cmd.getJarFile().getPipelinename(), cmd.getHost(), "", "");
            MongoConnector mdc =new MongoConnector(conf.getConfiguration());
            mdc.connect();

            log.info("Uploading jar file");
            File file = new File(cmd.getJarFile().getFilename());
            mdc.getPipelineWriter().save(cmd.getJarFile().getId(), file.getName(), new FileInputStream(f));
        }
View Full Code Here


            PipelineConfiguration pipelineConfig = jsonReader.fromJson(cmd.getConfig());
            List<Stage> stages = stageFactory.createStages(pipelineConfig);

            MongoDBConnectionConfig conf = new MongoDBConnectionConfig(pipelineConfig.getPipelineName(), cmd.getHost(), "", "");
            MongoConnector mdc =new MongoConnector(conf.getConfiguration());
            mdc.connect();

            Pipeline pipeline = mdc.getPipelineReader().getPipeline();
            for (Stage stage : stages) {
                if (cmd.getStageNames() != null) {
                    if (cmd.getStageNames().contains(stage.getName())) {
View Full Code Here

      conf.setDatabasePassword(cmd.getOptionValue("password"));
    }
   
    MongoConnector mdc = new MongoConnector(conf);

    mdc.connect();
   

    if (cmd.hasOption("a")) {
      add(mdc, cmd);
    }
View Full Code Here

        DatabaseConfiguration.DATABASE_URL_PARAM, coreConfiguration.getDatabaseUrl(),
        DatabaseConfiguration.DATABASE_NAMESPACE, coreConfiguration.getNamespace());
   
    DatabaseConnector<MongoType> backing = new MongoConnector(coreConfiguration);
    try {
      backing.connect();
    } catch (IOException e) {
      logger.error("Unable to start", e);
      return;
    }
View Full Code Here

public class StraightPipelineSetup {
  public static void main(String[] args) throws Exception {
    MongoConnector mdc = new MongoConnector(new TestConfiguration());

    mdc.connect();
   
    Object outId = addFile(mdc, "hydra-out-jar-with-dependencies.jar");
    Object basicId = addFile(mdc, "basic-stages-jar-with-dependencies.jar");
   
   
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.