org.aktin.broker.admin.standalone.Configuration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of broker-admin Show documentation
Show all versions of broker-admin Show documentation
Administration frontend for the AKTIN broker and aggregator
The 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 extends DataSource> getJdbcDataSourceClass() throws ClassNotFoundException;
String getJdbcUrl();
/**
* local TCP port to listen to
* @return port number
*/
int getPort();
}