public ExtractorTO(Extractor extractor)
        {
            if (extractor == null)
            {
                return;
            }
            if (extractor.Configuration != null)
            {
                this.configuration = new ExtractorConfigurationTO(extractor.Configuration);
            }

            this.hostname      = extractor.HostName;
            this.listeningPort = extractor.ListeningPort;
            this.siteCode      = extractor.SiteCode;
            this.timestamp     = extractor.Timestamp.ToString();
            this.vistaFile     = extractor.VistaFile;
        }
 public ExtractorConfigurationTOLite(ExtractorConfigurationTO config)
 {
     this.siteCode  = config.siteCode;
     this.vistaFile = config.queryConfigurations.rootNode.value.file;
     this.batchId   = config.batchId;
 }