use of com.artipie.http.MainSlice in project artipie by artipie.
the class VertxMain method start.
/**
* Starts the server.
*
* @return Port the servers listening on.
* @throws IOException In case of error reading settings.
*/
public int start() throws IOException {
final Settings settings = new SettingsFromPath(this.config).find(this.port);
final Metrics metrics = metrics(settings);
final int main = this.listenOn(new MainSlice(this.http, settings, metrics), metrics, this.port);
Logger.info(VertxMain.class, "Artipie was started on port %d", main);
this.startRepos(settings, metrics);
return main;
}
Aggregations