Search in sources :

Example 1 with MainSlice

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;
}
Also used : NopMetrics(com.artipie.metrics.nop.NopMetrics) Metrics(com.artipie.metrics.Metrics) MainSlice(com.artipie.http.MainSlice)

Aggregations

MainSlice (com.artipie.http.MainSlice)1 Metrics (com.artipie.metrics.Metrics)1 NopMetrics (com.artipie.metrics.nop.NopMetrics)1