mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Align comments for readability
This commit is contained in:
parent
26cbbb825a
commit
52f42071d2
1 changed files with 69 additions and 68 deletions
|
|
@ -21,43 +21,43 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Zeppelin websocker massage template class.
|
||||
* Zeppelin websocket massage template class.
|
||||
*/
|
||||
public class Message {
|
||||
/**
|
||||
* Representation of event type.
|
||||
*/
|
||||
public static enum OP {
|
||||
GET_HOME_NOTE, // [c-s] load note for home screen
|
||||
GET_HOME_NOTE, // [c-s] load note for home screen
|
||||
|
||||
GET_NOTE, // [c-s] client load note
|
||||
// @param id note id
|
||||
GET_NOTE, // [c-s] client load note
|
||||
// @param id note id
|
||||
|
||||
NOTE, // [s-c] note info
|
||||
// @param note serlialized Note object
|
||||
NOTE, // [s-c] note info
|
||||
// @param note serlialized Note object
|
||||
|
||||
PARAGRAPH, // [s-c] paragraph info
|
||||
// @param paragraph serialized paragraph object
|
||||
PARAGRAPH, // [s-c] paragraph info
|
||||
// @param paragraph serialized paragraph object
|
||||
|
||||
PROGRESS, // [s-c] progress update
|
||||
// @param id paragraph id
|
||||
// @param progress percentage progress
|
||||
PROGRESS, // [s-c] progress update
|
||||
// @param id paragraph id
|
||||
// @param progress percentage progress
|
||||
|
||||
NEW_NOTE, // [c-s] create new notebook
|
||||
DEL_NOTE, // [c-s] delete notebook
|
||||
// @param id note id
|
||||
CLONE_NOTE, // [c-s] clone new notebook
|
||||
// @param id id of note to clone
|
||||
// @param name name fpor the cloned note
|
||||
IMPORT_NOTE, // [c-s] import notebook
|
||||
// @param object notebook
|
||||
NEW_NOTE, // [c-s] create new notebook
|
||||
DEL_NOTE, // [c-s] delete notebook
|
||||
// @param id note id
|
||||
CLONE_NOTE, // [c-s] clone new notebook
|
||||
// @param id id of note to clone
|
||||
// @param name name fpor the cloned note
|
||||
IMPORT_NOTE, // [c-s] import notebook
|
||||
// @param object notebook
|
||||
NOTE_UPDATE,
|
||||
|
||||
RUN_PARAGRAPH, // [c-s] run paragraph
|
||||
// @param id paragraph id
|
||||
// @param paragraph paragraph content.ie. script
|
||||
// @param config paragraph config
|
||||
// @param params paragraph params
|
||||
RUN_PARAGRAPH, // [c-s] run paragraph
|
||||
// @param id paragraph id
|
||||
// @param paragraph paragraph content.ie. script
|
||||
// @param config paragraph config
|
||||
// @param params paragraph params
|
||||
|
||||
COMMIT_PARAGRAPH, // [c-s] commit paragraph
|
||||
// @param id paragraph id
|
||||
|
|
@ -69,72 +69,73 @@ public class Message {
|
|||
CANCEL_PARAGRAPH, // [c-s] cancel paragraph run
|
||||
// @param id paragraph id
|
||||
|
||||
MOVE_PARAGRAPH, // [c-s] move paragraph order
|
||||
// @param id paragraph id
|
||||
// @param index index the paragraph want to go
|
||||
MOVE_PARAGRAPH, // [c-s] move paragraph order
|
||||
// @param id paragraph id
|
||||
// @param index index the paragraph want to go
|
||||
|
||||
INSERT_PARAGRAPH, // [c-s] create new paragraph below current paragraph
|
||||
// @param target index
|
||||
|
||||
COMPLETION, // [c-s] ask completion candidates
|
||||
// @param id
|
||||
// @param buf current code
|
||||
// @param cursor cursor position in code
|
||||
COMPLETION, // [c-s] ask completion candidates
|
||||
// @param id
|
||||
// @param buf current code
|
||||
// @param cursor cursor position in code
|
||||
|
||||
COMPLETION_LIST, // [s-c] send back completion candidates list
|
||||
// @param id
|
||||
// @param completions list of string
|
||||
COMPLETION_LIST, // [s-c] send back completion candidates list
|
||||
// @param id
|
||||
// @param completions list of string
|
||||
|
||||
LIST_NOTES, // [c-s] ask list of note
|
||||
RELOAD_NOTES_FROM_REPO, // [c-s] reload notes from repo
|
||||
LIST_NOTES, // [c-s] ask list of note
|
||||
RELOAD_NOTES_FROM_REPO, // [c-s] reload notes from repo
|
||||
|
||||
NOTES_INFO, // [s-c] list of note infos
|
||||
// @param notes serialized List<NoteInfo> object
|
||||
NOTES_INFO, // [s-c] list of note infos
|
||||
// @param notes serialized List<NoteInfo> object
|
||||
|
||||
PARAGRAPH_REMOVE,
|
||||
PARAGRAPH_CLEAR_OUTPUT,
|
||||
PARAGRAPH_APPEND_OUTPUT, // [s-c] append output
|
||||
PARAGRAPH_UPDATE_OUTPUT, // [s-c] update (replace) output
|
||||
PARAGRAPH_APPEND_OUTPUT, // [s-c] append output
|
||||
PARAGRAPH_UPDATE_OUTPUT, // [s-c] update (replace) output
|
||||
PING,
|
||||
AUTH_INFO,
|
||||
|
||||
ANGULAR_OBJECT_UPDATE, // [s-c] add/update angular object
|
||||
ANGULAR_OBJECT_REMOVE, // [s-c] add angular object del
|
||||
ANGULAR_OBJECT_UPDATE, // [s-c] add/update angular object
|
||||
ANGULAR_OBJECT_REMOVE, // [s-c] add angular object del
|
||||
|
||||
ANGULAR_OBJECT_UPDATED, // [c-s] angular object value updated,
|
||||
ANGULAR_OBJECT_UPDATED, // [c-s] angular object value updated,
|
||||
|
||||
ANGULAR_OBJECT_CLIENT_BIND, // [c-s] angular object updated from AngularJS z object
|
||||
ANGULAR_OBJECT_CLIENT_BIND, // [c-s] angular object updated from AngularJS z object
|
||||
|
||||
ANGULAR_OBJECT_CLIENT_UNBIND, // [c-s] angular object unbind from AngularJS z object
|
||||
ANGULAR_OBJECT_CLIENT_UNBIND, // [c-s] angular object unbind from AngularJS z object
|
||||
|
||||
LIST_CONFIGURATIONS, // [c-s] ask all key/value pairs of configurations
|
||||
CONFIGURATIONS_INFO, // [s-c] all key/value pairs of configurations
|
||||
// @param settings serialized Map<String, String> object
|
||||
LIST_CONFIGURATIONS, // [c-s] ask all key/value pairs of configurations
|
||||
CONFIGURATIONS_INFO, // [s-c] all key/value pairs of configurations
|
||||
// @param settings serialized Map<String, String> object
|
||||
|
||||
CHECKPOINT_NOTEBOOK, // [c-s] checkpoint notebook to storage repository
|
||||
// @param noteId
|
||||
// @param checkpointName
|
||||
CHECKPOINT_NOTEBOOK, // [c-s] checkpoint notebook to storage repository
|
||||
// @param noteId
|
||||
// @param checkpointName
|
||||
|
||||
LIST_REVISION_HISTORY, // [c-s] list revision history of the notebook
|
||||
// @param noteId
|
||||
NOTE_REVISION, // [c-s] get certain revision of note
|
||||
// @param noteId
|
||||
// @param revisionId
|
||||
LIST_REVISION_HISTORY, // [c-s] list revision history of the notebook
|
||||
// @param noteId
|
||||
NOTE_REVISION, // [c-s] get certain revision of note
|
||||
// @param noteId
|
||||
// @param revisionId
|
||||
|
||||
APP_APPEND_OUTPUT, // [s-c] append output
|
||||
APP_UPDATE_OUTPUT, // [s-c] update (replace) output
|
||||
APP_LOAD, // [s-c] on app load
|
||||
APP_STATUS_CHANGE, // [s-c] on app status change
|
||||
APP_APPEND_OUTPUT, // [s-c] append output
|
||||
APP_UPDATE_OUTPUT, // [s-c] update (replace) output
|
||||
APP_LOAD, // [s-c] on app load
|
||||
APP_STATUS_CHANGE, // [s-c] on app status change
|
||||
|
||||
LIST_NOTEBOOK_JOBS, // [c-s] get notebook job management infomations
|
||||
LIST_UPDATE_NOTEBOOK_JOBS, // [s-c] get job management informations
|
||||
LIST_NOTEBOOK_JOBS, // [c-s] get notebook job management infomations
|
||||
LIST_UPDATE_NOTEBOOK_JOBS, // [c-s] get job management informations for until unixtime
|
||||
UNSUBSCRIBE_UPDATE_NOTEBOOK_JOBS, // [c-s] unsubscribe job information for job management
|
||||
GET_INTERPRETER_BINDINGS, // [c-s] get interpreter bindings
|
||||
// @param noteID
|
||||
SAVE_INTERPRETER_BINDINGS, // [c-s] save interpreter bindings
|
||||
// @param noteID
|
||||
// @param selectedSettingIds
|
||||
INTERPRETER_BINDINGS // [s-c] interpreter bindings
|
||||
// @param unixTime
|
||||
GET_INTERPRETER_BINDINGS, // [c-s] get interpreter bindings
|
||||
// @param noteID
|
||||
SAVE_INTERPRETER_BINDINGS, // [c-s] save interpreter bindings
|
||||
// @param noteID
|
||||
// @param selectedSettingIds
|
||||
INTERPRETER_BINDINGS // [s-c] interpreter bindings
|
||||
}
|
||||
|
||||
public OP op;
|
||||
|
|
|
|||
Loading…
Reference in a new issue