All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.li2b2.shrine.broker.standalone.DefaultConfiguration Maven / Gradle / Ivy

Go to download

Standalone service to to run the AKTIN broker and aggregator together with an i2b2 query frontend.

The newest version!
package de.li2b2.shrine.broker.standalone;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class DefaultConfiguration implements Configuration{

	@Override
	public InputStream readOntologyXML() throws FileNotFoundException {
		return new FileInputStream("ontology.xml");
	}

	@Override
	public InputStream readAPIKeyProperties() throws FileNotFoundException {
		return new FileInputStream("api-keys.properties");
	}

	@Override
	public String getDatabasePath() {
		return "broker";
	}

	@Override
	public int getPort() {
		return 8080;
	}

	@Override
	public String getAggregatorDataPath() {
		return "aggregator-data";
	}
	@Override
	public String getBrokerDataPath() {
		return "broker-data";
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy