Search in sources :

Example 1 with Acceptor

use of com.yahoo.jrt.Acceptor in project vespa by vespa-engine.

the class RpcServer method run.

public void run() {
    log.log(LogLevel.INFO, "Rpc server listening on port " + spec.port());
    try {
        Acceptor acceptor = supervisor.listen(spec);
        isRunning = true;
        supervisor.transport().join();
        acceptor.shutdown().join();
    } catch (ListenFailedException e) {
        stop();
        throw new RuntimeException("Could not listen at " + spec, e);
    }
}
Also used : Acceptor(com.yahoo.jrt.Acceptor) ListenFailedException(com.yahoo.jrt.ListenFailedException)

Aggregations

Acceptor (com.yahoo.jrt.Acceptor)1 ListenFailedException (com.yahoo.jrt.ListenFailedException)1