本文整理汇总了Java中org.apache.zeppelin.socket.NotebookServer类的典型用法代码示例。如果您正苦于以下问题:Java NotebookServer类的具体用法?Java NotebookServer怎么用?Java NotebookServer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NotebookServer类属于org.apache.zeppelin.socket包,在下文中一共展示了NotebookServer类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setupNotebookServer
import org.apache.zeppelin.socket.NotebookServer; //导入依赖的package包/类
private static ServletContextHandler setupNotebookServer(ZeppelinConfiguration conf) {
notebookWsServer = new NotebookServer();
final ServletHolder servletHolder = new ServletHolder(notebookWsServer);
servletHolder.setInitParameter("maxTextMessageSize", "1024000");
final ServletContextHandler cxfContext = new ServletContextHandler(
ServletContextHandler.SESSIONS);
cxfContext.setSessionHandler(new SessionHandler());
cxfContext.setContextPath(conf.getServerContextPath());
cxfContext.addServlet(servletHolder, "/ws/*");
cxfContext.addFilter(new FilterHolder(CorsFilter.class), "/*",
EnumSet.allOf(DispatcherType.class));
return cxfContext;
}
示例2: setupNotebookServer
import org.apache.zeppelin.socket.NotebookServer; //导入依赖的package包/类
private static void setupNotebookServer(WebAppContext webapp,
ZeppelinConfiguration conf) {
notebookWsServer = new NotebookServer();
String maxTextMessageSize = conf.getWebsocketMaxTextMessageSize();
final ServletHolder servletHolder = new ServletHolder(notebookWsServer);
servletHolder.setInitParameter("maxTextMessageSize", maxTextMessageSize);
final ServletContextHandler context = new ServletContextHandler(
ServletContextHandler.SESSIONS);
webapp.addServlet(servletHolder, "/ws/*");
}
示例3: NotebookRestApi
import org.apache.zeppelin.socket.NotebookServer; //导入依赖的package包/类
public NotebookRestApi(Notebook notebook, NotebookServer notebookServer, SearchService search) {
this.notebook = notebook;
this.notebookServer = notebookServer;
this.notebookIndex = search;
}
示例4: NotebookRestApi
import org.apache.zeppelin.socket.NotebookServer; //导入依赖的package包/类
public NotebookRestApi(Notebook notebook, NotebookServer notebookServer, SearchService search) {
this.notebook = notebook;
this.notebookServer = notebookServer;
this.noteSearchService = search;
this.notebookAuthorization = notebook.getNotebookAuthorization();
}
示例5: NotebookRepoRestApi
import org.apache.zeppelin.socket.NotebookServer; //导入依赖的package包/类
public NotebookRepoRestApi(NotebookRepoSync noteRepos, NotebookServer notebookWsServer) {
this.noteRepos = noteRepos;
this.notebookWsServer = notebookWsServer;
}
示例6: InterpreterRestApi
import org.apache.zeppelin.socket.NotebookServer; //导入依赖的package包/类
public InterpreterRestApi(InterpreterSettingManager interpreterSettingManager,
NotebookServer notebookWsServer) {
this.interpreterSettingManager = interpreterSettingManager;
this.notebookServer = notebookWsServer;
}