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:/ncbi/biosamples_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:1}")
	private int connectionCountZooma;
	
	@Value("${biosamples.pipelines.zooma:https://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;
	
	@Value("${biosamples.pipelines.zooma.domain:self.BiosampleZooma}")
	private String zoomaDomain;
	
	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 String getZoomaDomain() {
		return zoomaDomain;
	}

	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;
	}
}

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:/ncbi/biosamples_set.xml.gz}")
	private String ncbiFile;

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

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

	@Value("${biosamples.pipelines.connectioncount.max:8}")
	private int connectionCountMax;
	
	@Value("${biosamples.pipelines.connectioncount.default:8}")
	private int connectionCountDefault;
	
	@Value("${biosamples.pipelines.connectioncount.ols:8}")
	private int connectionCountOls;
	
	@Value("${biosamples.pipelines.connectioncount.zooma:1}")
	private int connectionCountZooma;
	
	@Value("${biosamples.pipelines.zooma:https://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;
	
	@Value("${biosamples.pipelines.zooma.domain:self.BiosampleZooma}")
	private String zoomaDomain;
	
	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 String getZoomaDomain() {
		return zoomaDomain;
	}

	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;
	}
}

reduce default multithreading