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

org.aktin.broker.admin.standalone.Configuration Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
package org.aktin.broker.admin.standalone;

import java.io.IOException;
import java.nio.file.Path;

import javax.sql.DataSource;

import org.aktin.broker.server.auth.AuthProvider;

public interface Configuration {

	// configuration to specify external class implementing HeaderAuthentication
	AuthProvider getAuthProvider() throws IOException;

	long getWebsocketIdleTimeoutMillis();

	Path getBasePath();

	//default String getDatabasePath() {return getBasePath().resolve("broker").toString();}
	default String getAggregatorDataPath() {return getBasePath().resolve("aggregator-data").toString();}
	default String getBrokerDataPath()  {return getBasePath().resolve("broker-data").toString();}
	default String getTempDownloadPath() {return getBasePath().resolve("download-temp").toString();}

	Class getJdbcDataSourceClass() throws ClassNotFoundException;
	String getJdbcUrl();

	/**
	 * local TCP port to listen to
	 * @return port number
	 */
	int getPort();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy