当前位置: 首页>>代码示例>>Java>>正文


Java NotebookServer类代码示例

本文整理汇总了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;
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:16,代码来源:ZeppelinServer.java

示例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/*");
}
 
开发者ID:apache,项目名称:zeppelin,代码行数:13,代码来源:ZeppelinServer.java

示例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;
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:6,代码来源:NotebookRestApi.java

示例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();
}
 
开发者ID:apache,项目名称:zeppelin,代码行数:7,代码来源:NotebookRestApi.java

示例5: NotebookRepoRestApi

import org.apache.zeppelin.socket.NotebookServer; //导入依赖的package包/类
public NotebookRepoRestApi(NotebookRepoSync noteRepos, NotebookServer notebookWsServer) {
  this.noteRepos = noteRepos;
  this.notebookWsServer = notebookWsServer;
}
 
开发者ID:apache,项目名称:zeppelin,代码行数:5,代码来源:NotebookRepoRestApi.java

示例6: InterpreterRestApi

import org.apache.zeppelin.socket.NotebookServer; //导入依赖的package包/类
public InterpreterRestApi(InterpreterSettingManager interpreterSettingManager,
    NotebookServer notebookWsServer) {
  this.interpreterSettingManager = interpreterSettingManager;
  this.notebookServer = notebookWsServer;
}
 
开发者ID:apache,项目名称:zeppelin,代码行数:6,代码来源:InterpreterRestApi.java


注:本文中的org.apache.zeppelin.socket.NotebookServer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。