示例#1
0
 public Stream getEtlStages(String downstreamBatchId)
 {
     try
     {
         EtlDownstreamStageArray result = new OrchestratorDao().getEtlStagesBySite(downstreamBatchId);
         String jsonString = gov.va.medora.utils.JsonUtils.Serialize <EtlDownstreamStageArray>(result);
         return(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(jsonString)));
     }
     catch (Exception exc)
     {
         String jsonString = gov.va.medora.utils.JsonUtils.Serialize <EtlDownstreamStageArray>(new EtlDownstreamStageArray()
         {
             fault = new FaultTO(exc)
         });
         return(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(jsonString)));
     }
 }
示例#2
0
 public Stream getReport(String siteId, String vistaFile, String batchId)
 {
     try
     {
         ReportTO report     = new OrchestratorDao().getExtractorReport(siteId, vistaFile, batchId);
         String   jsonString = gov.va.medora.utils.JsonUtils.Serialize <ReportTO>(report);
         return(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(jsonString)));
     }
     catch (Exception exc)
     {
         String jsonString = gov.va.medora.utils.JsonUtils.Serialize <ReportTO>(new ReportTO()
         {
             fault = new FaultTO(exc)
         });
         return(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(jsonString)));
     }
 }
示例#3
0
 public Stream getExtractorsLite()
 {
     try
     {
         IList <Extractor> extractors = new OrchestratorDao().getExtractors();
         String            jsonString = gov.va.medora.utils.JsonUtils.Serialize <ExtractorArrayLite>(new ExtractorArrayLite(extractors));
         return(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(jsonString)));
     }
     catch (Exception exc)
     {
         String jsonString = gov.va.medora.utils.JsonUtils.Serialize <ExtractorArrayLite>(new ExtractorArrayLite()
         {
             fault = new FaultTO(exc)
         });
         return(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(jsonString)));
     }
 }
示例#4
0
 public Stream getLastRunCompletedTime()
 {
     try
     {
         String result     = new OrchestratorDao().getLastRunCompletedTime();
         String jsonString = gov.va.medora.utils.JsonUtils.Serialize <TextTO>(new TextTO()
         {
             text = result
         });
         return(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(jsonString)));
     }
     catch (Exception exc)
     {
         String jsonString = gov.va.medora.utils.JsonUtils.Serialize <TextTO>(new TextTO()
         {
             fault = new FaultTO(exc)
         });
         return(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(jsonString)));
     }
 }