Search in sources :

Example 1 with ApiServlet

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

the class CCApplication method setupWebServer.

protected HttpServer setupWebServer(ExternalProperties externalProperties) throws Exception {
    HttpServer webServer = new HttpServer(webManager.getBosses(), webManager.getWorkers(), externalProperties.getWebInterfacePort());
    IHyracksClientConnection hcc = getHcc();
    webServer.setAttribute(HYRACKS_CONNECTION_ATTR, hcc);
    webServer.addServlet(new ApiServlet(webServer.ctx(), new String[] { "/*" }, appCtx, ccExtensionManager.getCompilationProvider(AQL), ccExtensionManager.getCompilationProvider(SQLPP), getStatementExecutorFactory(), componentProvider));
    return webServer;
}
Also used : IHyracksClientConnection(org.apache.hyracks.api.client.IHyracksClientConnection) ShutdownApiServlet(org.apache.asterix.api.http.server.ShutdownApiServlet) VersionApiServlet(org.apache.asterix.api.http.server.VersionApiServlet) QueryResultApiServlet(org.apache.asterix.api.http.server.QueryResultApiServlet) UpdateApiServlet(org.apache.asterix.api.http.server.UpdateApiServlet) RebalanceApiServlet(org.apache.asterix.api.http.server.RebalanceApiServlet) QueryStatusApiServlet(org.apache.asterix.api.http.server.QueryStatusApiServlet) ClusterApiServlet(org.apache.asterix.api.http.server.ClusterApiServlet) ApiServlet(org.apache.asterix.api.http.server.ApiServlet) FullApiServlet(org.apache.asterix.api.http.server.FullApiServlet) QueryApiServlet(org.apache.asterix.api.http.server.QueryApiServlet) NodeControllerDetailsApiServlet(org.apache.asterix.api.http.server.NodeControllerDetailsApiServlet) ConnectorApiServlet(org.apache.asterix.api.http.server.ConnectorApiServlet) DdlApiServlet(org.apache.asterix.api.http.server.DdlApiServlet) ClusterControllerDetailsApiServlet(org.apache.asterix.api.http.server.ClusterControllerDetailsApiServlet) DiagnosticsApiServlet(org.apache.asterix.api.http.server.DiagnosticsApiServlet) HttpServer(org.apache.hyracks.http.server.HttpServer)

Aggregations

ApiServlet (org.apache.asterix.api.http.server.ApiServlet)1 ClusterApiServlet (org.apache.asterix.api.http.server.ClusterApiServlet)1 ClusterControllerDetailsApiServlet (org.apache.asterix.api.http.server.ClusterControllerDetailsApiServlet)1 ConnectorApiServlet (org.apache.asterix.api.http.server.ConnectorApiServlet)1 DdlApiServlet (org.apache.asterix.api.http.server.DdlApiServlet)1 DiagnosticsApiServlet (org.apache.asterix.api.http.server.DiagnosticsApiServlet)1 FullApiServlet (org.apache.asterix.api.http.server.FullApiServlet)1 NodeControllerDetailsApiServlet (org.apache.asterix.api.http.server.NodeControllerDetailsApiServlet)1 QueryApiServlet (org.apache.asterix.api.http.server.QueryApiServlet)1 QueryResultApiServlet (org.apache.asterix.api.http.server.QueryResultApiServlet)1 QueryStatusApiServlet (org.apache.asterix.api.http.server.QueryStatusApiServlet)1 RebalanceApiServlet (org.apache.asterix.api.http.server.RebalanceApiServlet)1 ShutdownApiServlet (org.apache.asterix.api.http.server.ShutdownApiServlet)1 UpdateApiServlet (org.apache.asterix.api.http.server.UpdateApiServlet)1 VersionApiServlet (org.apache.asterix.api.http.server.VersionApiServlet)1 IHyracksClientConnection (org.apache.hyracks.api.client.IHyracksClientConnection)1 HttpServer (org.apache.hyracks.http.server.HttpServer)1