Search in sources :

Example 1 with QueryWebInterfaceServlet

use of org.apache.asterix.api.http.server.QueryWebInterfaceServlet in project asterixdb by apache.

the class CCApplication method setupQueryWebServer.

protected HttpServer setupQueryWebServer(ExternalProperties externalProperties) throws Exception {
    HttpServer queryWebServer = new HttpServer(webManager.getBosses(), webManager.getWorkers(), externalProperties.getQueryWebInterfacePort());
    IHyracksClientConnection hcc = getHcc();
    queryWebServer.setAttribute(HYRACKS_CONNECTION_ATTR, hcc);
    queryWebServer.addServlet(new QueryWebInterfaceServlet(appCtx, queryWebServer.ctx(), new String[] { "/*" }));
    return queryWebServer;
}
Also used : IHyracksClientConnection(org.apache.hyracks.api.client.IHyracksClientConnection) QueryWebInterfaceServlet(org.apache.asterix.api.http.server.QueryWebInterfaceServlet) HttpServer(org.apache.hyracks.http.server.HttpServer)

Aggregations

QueryWebInterfaceServlet (org.apache.asterix.api.http.server.QueryWebInterfaceServlet)1 IHyracksClientConnection (org.apache.hyracks.api.client.IHyracksClientConnection)1 HttpServer (org.apache.hyracks.http.server.HttpServer)1