Search in sources :

Example 1 with BaseSlice

use of com.artipie.http.BaseSlice in project artipie by artipie.

the class VertxMain method listenOn.

/**
 * Starts HTTP server listening on specified port.
 *
 * @param slice Slice.
 * @param metrics Metrics.
 * @param sport Server port.
 * @return Port server started to listen on.
 */
private int listenOn(final Slice slice, final Metrics metrics, final int sport) {
    final VertxSliceServer server = new VertxSliceServer(this.vertx, new BaseSlice(metrics, slice), sport);
    this.servers.add(server);
    return server.start();
}
Also used : BaseSlice(com.artipie.http.BaseSlice) VertxSliceServer(com.artipie.vertx.VertxSliceServer)

Aggregations

BaseSlice (com.artipie.http.BaseSlice)1 VertxSliceServer (com.artipie.vertx.VertxSliceServer)1