public JavaManager(IElasticsearchServiceSettings settings )
     : base(settings,settings.JavaInstaller)
 {
     if (!string.IsNullOrWhiteSpace(settings.JavaDownloadType) && settings.JavaDownloadType == "storage")
     {
         _installer = new StorageArtifact(settings.JavaDownloadURL, settings.JavaInstaller, settings.StorageAccount);
     }
     else
     {
         _installer = new WebArtifact(settings.JavaDownloadURL, settings.JavaInstaller);
     }
 }
        public ElasticsearchManager(IElasticsearchServiceSettings settings, string dataPath, string bridgeName)
            : base(settings,settings.ElasticsearchInstaller)
        {
            _InstallRoot = settings.ElasticsearchDirectory;
            _DataPath = dataPath;
            _BridgePipeName = bridgeName;

            //Maybe there is a less noisy way to do this?
            if (!string.IsNullOrWhiteSpace(settings.ElasticsearchDownloadType) && settings.ElasticsearchDownloadType == "storage")
            {
                _installer = new StorageArtifact(settings.ElasticsearchDownloadURL, settings.ElasticsearchInstaller, settings.StorageAccount);
            }
            else
            {
                _installer = new WebArtifact(settings.ElasticsearchDownloadURL, settings.ElasticsearchInstaller);
            }

            _PackagePluginPath = Path.Combine(settings.RootDirectory,"plugins");
            _TemplateConfigFile = Path.Combine(settings.RootDirectory,"config",ELASTICSEARCH_CONFIG_FILE);
            _TemplateLogConfigFile = Path.Combine(settings.RootDirectory, "config", ELASTICSEARCH_LOG_CONFIG_FILE);

            _ElasticRoot = Path.Combine(_InstallRoot, Path.GetFileNameWithoutExtension(_installer.Name));
            _PluginRoot = Path.Combine(_ElasticRoot, ELASTICSEARCH_PLUGIN_DIR);
        }