public void deleteDocFromSource() { try { bool error; string retMSG; SouceDocDeleted = CouchArchiverDeleteHelper.getInstance().Document_Delete(out retMSG, out error, JobAllocationHandlerMain.getSourceCouch(), vo.StorageID); } catch (Exception e) { log.Error(string.Format("Document delete failed for {0} source db{1}", storageID, JobAllocationHandlerMain.getSourceCouch().dbName), e); SouceDocDeleted = false; } }
public string getDocumentFromCouch() { string rDocument = null; try { bool error; string retMSG; rDocument = CouchArchiverGetHelper.getInstance().GetRawDocument(out retMSG, out error, JobAllocationHandlerMain.getSourceCouch(), vo); if (error) { GotDoc = false; } else { GotDoc = true; } exception = retMSG; } catch (Exception e) { GotDoc = false; exception = e.Message; log.Error(string.Format("Get Doc failed for {0}, archive skipped for {1}", vo.StorageID, vo.DocID), e); } return(rDocument); }