package uk.ac.ebi.biosamples;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class PipelinesProperties {
	
	@Value("${biosamples.pipelines.ncbi.file:biosample_set.xml.gz}")
	private String ncbiFile;

	@Value("${biosamples.pipelines.threadcount:1}")
	private int threadCount;

	@Value("${biosamples.pipelines.threadcount.max:32}")
	private int threadCountMax;

	@Value("${biosamples.pipelines.connectioncount.max:32}")
	private int connectionCountMax;
	
	@Value("${biosamples.pipelines.connectioncount.default:32}")
	private int connectionCountDefault;
	
	@Value("${biosamples.pipelines.connectioncount.ols:32}")
	private int connectionCountOls;
	
	@Value("${biosamples.pipelines.connectioncount.zooma:4}")
	private int connectionCountZooma;
	
	@Value("${biosamples.pipelines.zooma:http://wwwdev.ebi.ac.uk/spot/zooma}")
	private String zooma;
	
	@Value("${biosamples.pipelines.ncbi.domain:self.BiosampleImportNCBI}")
	private String ncbiDomain;
	
	@Value("${biosamples.pipelines.ena.domain:self.BiosampleImportENA}")
	private String enaDomain;
	
	@Value("${biosamples.pipelines.accession.domain:self.BiosampleImportAcccession}")
	private String accessionDomain;
	
	@Value("${biosamples.pipelines.curation.domain:self.BiosampleCuration}")
	private String curationDomain;
	
	public String getNcbiFile() {
		return ncbiFile;
	}
	public String getNcbiDomain() {
		return ncbiDomain;
	}
	public String getEnaDomain() {
		return enaDomain;
	}
	public String getAccessionDomain() {
		return accessionDomain;
	}
	public String getCurationDomain() {
		return curationDomain;
	}

	public int getThreadCount() {
		return threadCount;
	}

	public int getThreadCountMax() {
		return threadCountMax;
	}

	public int getConnectionCountMax() {
		return connectionCountMax;
	}

	public int getConnectionCountDefault() {
		return connectionCountDefault;
	}

	public int getConnectionCountOls() {
		return connectionCountOls;
	}

	public int getConnectionCountZooma() {
		return connectionCountZooma;
	}
	
	public String getZooma() {
		return zooma;
	}
}

@@ -779,9 +779,9 @@
 oma:
-4
+1
 %7D%22)%0A
@@ -859,16 +859,17 @@
 oma:http
+s
 ://wwwde

update zooma defaults