Search in sources :

Example 1 with JettyHandler

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);
}
Also used : JettyHandler(org.apache.skywalking.apm.collector.server.jetty.JettyHandler) JettyManagerService(org.apache.skywalking.apm.collector.jetty.manager.service.JettyManagerService)

Aggregations

JettyManagerService (org.apache.skywalking.apm.collector.jetty.manager.service.JettyManagerService)1 JettyHandler (org.apache.skywalking.apm.collector.server.jetty.JettyHandler)1