Package ca.carleton.gcrc.couch.app

Examples of ca.carleton.gcrc.couch.app.DbDumpProcess


   
    gs.getOutStream().println("Dumping to "+dumpDir.getAbsolutePath());
   
    DumpListener listener = new DumpListener( gs.getOutStream() );
   
    DbDumpProcess dumpProcess = new DbDumpProcess(couchDb, dumpDir);
    if( docIds.size() < 1 ) {
      dumpProcess.setAllDocs(true);
    } else {
      for(String docId : docIds) {
        if( docIdToFile.containsKey(docId) ){
          dumpProcess.addDocId(docId, docIdToFile.get(docId));
        } else {
          dumpProcess.addDocId(docId);
        }
      }
    }
    dumpProcess.setListener(listener);
    dumpProcess.dump();
  }
View Full Code Here


   
    CouchDb couchDb = CommandSupport.createCouchDb(gs, atlasProperties);
   
    DumpListener listener = new DumpListener( gs.getOutStream() );
   
    DbDumpProcess dumpProcess = new DbDumpProcess(couchDb, dumpDir);
    if( docIds.size() < 1 ) {
      dumpProcess.setAllDocs(true);
    } else {
      for(String docId : docIds) {
        dumpProcess.addDocId(docId);
      }
    }
    dumpProcess.setListener(listener);
    dumpProcess.dump();
  }
View Full Code Here

    // Get CouchDb client
    CouchDb couchDb = dumpSettings.createCouchDb();
   
    // Create dump process
    DumpListener listener = new DumpListener( dumpSettings.getOutStream() );
    DbDumpProcess dumpProcess = new DbDumpProcess(couchDb, dumpDir);
    List<String> docIds = dumpSettings.getDocIds();
    if( docIds.size() < 1 ) {
      dumpProcess.setAllDocs(true);
    } else {
      for(String docId : docIds) {
        dumpProcess.addDocId(docId);
      }
    }
    dumpProcess.setListener(listener);
    dumpProcess.dump();
  }
View Full Code Here

   
    gs.getOutStream().println("Dumping to "+dumpDir.getAbsolutePath());
   
    DumpListener listener = new DumpListener( gs.getOutStream() );
   
    DbDumpProcess dumpProcess = new DbDumpProcess(couchDb, dumpDir);
    if( docIds.size() < 1 ) {
      dumpProcess.setAllDocs(true);
    } else {
      for(String docId : docIds) {
        if( docIdToFile.containsKey(docId) ){
          dumpProcess.addDocId(docId, docIdToFile.get(docId));
        } else {
          dumpProcess.addDocId(docId);
        }
      }
    }
    dumpProcess.setListener(listener);
    dumpProcess.dump();
  }
View Full Code Here

   
    gs.getOutStream().println("Dumping to "+dumpDir.getAbsolutePath());
   
    DumpListener listener = new DumpListener( gs.getOutStream() );
   
    DbDumpProcess dumpProcess = new DbDumpProcess(couchDb, dumpDir);
    if( docIds.size() < 1 && false == selectSkeletonDocuments ) {
      dumpProcess.setAllDocs(true);
    } else {
      for(String docId : docIds) {
        if( docIdToFile.containsKey(docId) ){
          dumpProcess.addDocId(docId, docIdToFile.get(docId));
        } else {
          dumpProcess.addDocId(docId);
        }
      }
    }
    dumpProcess.setListener(listener);
    dumpProcess.dump();
  }
View Full Code Here

TOP

Related Classes of ca.carleton.gcrc.couch.app.DbDumpProcess

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.