public JavaManager(ICassandraServiceSettings 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 CassandraManager(ICassandraServiceSettings settings, string dataPath)
            : base(settings,settings.CassandraInstaller)
        {
            _InstallRoot = settings.CassandraDirectory;
            _DataPath = dataPath;

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

            _PackageLibPath = Path.Combine(settings.RootDirectory,"lib");
            _TemplateConfigFile = Path.Combine(settings.RootDirectory,"conf",CASSANDRA_CONFIG_FILE);
        }