use of org.apache.skywalking.apm.collector.server.jetty.JettyHandler in project incubator-skywalking by apache.
the class NamingJettyHandlerRegisterService method register.
@Override
public void register(ServerHandler namingHandler) {
if (!(namingHandler instanceof JettyHandler)) {
throw new IllegalArgumentException("NamingJettyHandlerRegisterService support JettyHandler only.");
}
JettyManagerService managerService = moduleManager.find(JettyManagerModule.NAME).getService(JettyManagerService.class);
managerService.addHandler(this.host, this.port, (JettyHandler) namingHandler);
}
Aggregations