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);
}
}
Aggregations