public class NotebookServer extends org.eclipse.jetty.websocket.servlet.WebSocketServlet implements NotebookSocketListener, JobListenerFactory, org.apache.zeppelin.display.AngularObjectRegistryListener, org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcessListener
| Modifier and Type | Class and Description |
|---|---|
static class |
NotebookServer.ParagraphListenerImpl
Need description here.
|
| Constructor and Description |
|---|
NotebookServer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
angularObjectClientBind(NotebookSocket conn,
HashSet<String> userAndRoles,
Notebook notebook,
Message fromMessage)
Push the given Angular variable to the target
interpreter angular registry given a noteId
and a paragraph id
|
protected void |
angularObjectClientUnbind(NotebookSocket conn,
HashSet<String> userAndRoles,
Notebook notebook,
Message fromMessage)
Remove the given Angular variable to the target
interpreter(s) angular registry given a noteId
and an optional list of paragraph id(s)
|
void |
broadcastNote(Note note) |
void |
broadcastNoteList(org.apache.zeppelin.user.AuthenticationInfo subject) |
void |
broadcastReloadedNoteList(org.apache.zeppelin.user.AuthenticationInfo subject) |
boolean |
checkOrigin(javax.servlet.http.HttpServletRequest request,
String origin) |
void |
configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory) |
protected Message |
deserializeMessage(String msg) |
NotebookSocket |
doWebSocketConnect(javax.servlet.http.HttpServletRequest req,
String protocol) |
List<Map<String,String>> |
generateNotebooksInfo(boolean needsReload,
org.apache.zeppelin.user.AuthenticationInfo subject) |
ParagraphJobListener |
getParagraphJobListener(Note note) |
protected Note |
importNote(NotebookSocket conn,
HashSet<String> userAndRoles,
Notebook notebook,
Message fromMessage) |
void |
onAdd(String interpreterGroupId,
org.apache.zeppelin.display.AngularObject object) |
void |
onClose(NotebookSocket conn,
int code,
String reason) |
void |
onMessage(NotebookSocket conn,
String msg) |
void |
onOpen(NotebookSocket conn) |
void |
onOutputAppend(String noteId,
String paragraphId,
String output)
This callback is for the paragraph that runs on ZeppelinServer
|
void |
onOutputUpdated(String noteId,
String paragraphId,
String output)
This callback is for the paragraph that runs on ZeppelinServer
|
void |
onRemove(String interpreterGroupId,
String name,
String noteId,
String paragraphId) |
void |
onUpdate(String interpreterGroupId,
org.apache.zeppelin.display.AngularObject object) |
protected String |
serializeMessage(Message m) |
void |
unicastNoteList(NotebookSocket conn,
org.apache.zeppelin.user.AuthenticationInfo subject) |
destroy, init, servicedoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic void configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
configure in class org.eclipse.jetty.websocket.servlet.WebSocketServletpublic boolean checkOrigin(javax.servlet.http.HttpServletRequest request,
String origin)
public NotebookSocket doWebSocketConnect(javax.servlet.http.HttpServletRequest req, String protocol)
public void onOpen(NotebookSocket conn)
onOpen in interface NotebookSocketListenerpublic void onMessage(NotebookSocket conn, String msg)
onMessage in interface NotebookSocketListenerpublic void onClose(NotebookSocket conn, int code, String reason)
onClose in interface NotebookSocketListenerpublic List<Map<String,String>> generateNotebooksInfo(boolean needsReload, org.apache.zeppelin.user.AuthenticationInfo subject)
public void broadcastNote(Note note)
public void broadcastNoteList(org.apache.zeppelin.user.AuthenticationInfo subject)
public void unicastNoteList(NotebookSocket conn, org.apache.zeppelin.user.AuthenticationInfo subject)
public void broadcastReloadedNoteList(org.apache.zeppelin.user.AuthenticationInfo subject)
protected Note importNote(NotebookSocket conn, HashSet<String> userAndRoles, Notebook notebook, Message fromMessage) throws IOException
IOExceptionprotected void angularObjectClientBind(NotebookSocket conn, HashSet<String> userAndRoles, Notebook notebook, Message fromMessage) throws Exception
conn - notebook - fromMessage - Exceptionprotected void angularObjectClientUnbind(NotebookSocket conn, HashSet<String> userAndRoles, Notebook notebook, Message fromMessage) throws Exception
conn - notebook - fromMessage - Exceptionpublic void onOutputAppend(String noteId, String paragraphId, String output)
onOutputAppend in interface org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcessListenernoteId - paragraphId - output - output to appendpublic void onOutputUpdated(String noteId, String paragraphId, String output)
onOutputUpdated in interface org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcessListenernoteId - paragraphId - output - output to update (replace)public ParagraphJobListener getParagraphJobListener(Note note)
getParagraphJobListener in interface JobListenerFactorypublic void onAdd(String interpreterGroupId, org.apache.zeppelin.display.AngularObject object)
onAdd in interface org.apache.zeppelin.display.AngularObjectRegistryListenerpublic void onUpdate(String interpreterGroupId, org.apache.zeppelin.display.AngularObject object)
onUpdate in interface org.apache.zeppelin.display.AngularObjectRegistryListenerCopyright © 2013–2016 The Apache Software Foundation. All rights reserved.