public string Clean() { double time_cleaning = Performance.Measure(fhirStoreAdministration.Clean) + Performance.Measure(fhirIndex.Clean); string message = String.Format( "Database was succesfully cleaned. \nTime spent:" + "\nCleaning: {0}sec.", time_cleaning); return(message); }
/// <summary> /// Reinitializes the (database of) the server to its initial state /// </summary> /// <returns></returns> /// <remarks>Quite a destructive operation, mostly useful in debugging situations</remarks> public string Initialize() { //Note: also clears the counters collection, so id generation starts anew and //clears all stored binaries at Amazon S3. double time_cleaning = Performance.Measure(fhirStoreAdministration.Clean) + Performance.Measure(fhirIndex.Clean); double time_loading = Performance.Measure(importLimitedExamples); double time_storing = Performance.Measure(storeExamples); string message = String.Format( "Database was succesfully re-initialized. \nTime spent:" + "\nCleaning: {0}sec \nLoading examples: {1}sec, \nStoring: {2}sec", time_cleaning, time_loading, time_storing); return(message); }