}
return nextCrawlStartDate;
}
public String getSourceCrawlProcessStatus(int id) {
MongoDBCollection coll = new MongoDBCollection(db,"sources");
String query = String.format("{\"id\": %1$s}", id);
BasicDBObject docsearch = MongoDBHelper.JSON2BasicDBObject(query);
DBCursor cur = coll.getColl().find(docsearch);
if (cur.count()!=1) return null;
BasicDBObject doc = (BasicDBObject) cur.next();
return doc.getString("crawl_process_status");
}