Examples of DbRestoreProcess


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

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

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

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

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

   
    CouchDb couchDb = CommandSupport.createCouchDb(gs, atlasProperties);
   
    DbRestoreListener listener = new RestoreListener(gs.getOutStream());
   
    DbRestoreProcess restoreProcess = new DbRestoreProcess(couchDb, dumpDir);
    restoreProcess.setListener(listener);
    if( docIds.size() < 1 ) {
      restoreProcess.setAllDocs(true);
    } else {
      for(String docId : docIds) {
        restoreProcess.addDocId(docId);
      }
    }
    restoreProcess.restore();
  }
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.