Skip to content

Commit 52f4207

Browse files
committed
Align comments for readability
1 parent 26cbbb8 commit 52f4207

File tree

1 file changed

+70
-69
lines changed
  • zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/socket

1 file changed

+70
-69
lines changed

zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/socket/Message.java

Lines changed: 70 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -21,43 +21,43 @@
2121
import java.util.Map;
2222

2323
/**
24-
* Zeppelin websocker massage template class.
24+
* Zeppelin websocket massage template class.
2525
*/
2626
public class Message {
2727
/**
2828
* Representation of event type.
2929
*/
3030
public static enum OP {
31-
GET_HOME_NOTE, // [c-s] load note for home screen
31+
GET_HOME_NOTE, // [c-s] load note for home screen
3232

33-
GET_NOTE, // [c-s] client load note
34-
// @param id note id
33+
GET_NOTE, // [c-s] client load note
34+
// @param id note id
3535

36-
NOTE, // [s-c] note info
37-
// @param note serlialized Note object
36+
NOTE, // [s-c] note info
37+
// @param note serlialized Note object
3838

39-
PARAGRAPH, // [s-c] paragraph info
40-
// @param paragraph serialized paragraph object
39+
PARAGRAPH, // [s-c] paragraph info
40+
// @param paragraph serialized paragraph object
4141

42-
PROGRESS, // [s-c] progress update
43-
// @param id paragraph id
44-
// @param progress percentage progress
45-
46-
NEW_NOTE, // [c-s] create new notebook
47-
DEL_NOTE, // [c-s] delete notebook
48-
// @param id note id
49-
CLONE_NOTE, // [c-s] clone new notebook
50-
// @param id id of note to clone
51-
// @param name name fpor the cloned note
52-
IMPORT_NOTE, // [c-s] import notebook
53-
// @param object notebook
42+
PROGRESS, // [s-c] progress update
43+
// @param id paragraph id
44+
// @param progress percentage progress
45+
46+
NEW_NOTE, // [c-s] create new notebook
47+
DEL_NOTE, // [c-s] delete notebook
48+
// @param id note id
49+
CLONE_NOTE, // [c-s] clone new notebook
50+
// @param id id of note to clone
51+
// @param name name fpor the cloned note
52+
IMPORT_NOTE, // [c-s] import notebook
53+
// @param object notebook
5454
NOTE_UPDATE,
5555

56-
RUN_PARAGRAPH, // [c-s] run paragraph
57-
// @param id paragraph id
58-
// @param paragraph paragraph content.ie. script
59-
// @param config paragraph config
60-
// @param params paragraph params
56+
RUN_PARAGRAPH, // [c-s] run paragraph
57+
// @param id paragraph id
58+
// @param paragraph paragraph content.ie. script
59+
// @param config paragraph config
60+
// @param params paragraph params
6161

6262
COMMIT_PARAGRAPH, // [c-s] commit paragraph
6363
// @param id paragraph id
@@ -69,72 +69,73 @@ public static enum OP {
6969
CANCEL_PARAGRAPH, // [c-s] cancel paragraph run
7070
// @param id paragraph id
7171

72-
MOVE_PARAGRAPH, // [c-s] move paragraph order
73-
// @param id paragraph id
74-
// @param index index the paragraph want to go
72+
MOVE_PARAGRAPH, // [c-s] move paragraph order
73+
// @param id paragraph id
74+
// @param index index the paragraph want to go
7575

7676
INSERT_PARAGRAPH, // [c-s] create new paragraph below current paragraph
7777
// @param target index
7878

79-
COMPLETION, // [c-s] ask completion candidates
80-
// @param id
81-
// @param buf current code
82-
// @param cursor cursor position in code
79+
COMPLETION, // [c-s] ask completion candidates
80+
// @param id
81+
// @param buf current code
82+
// @param cursor cursor position in code
8383

84-
COMPLETION_LIST, // [s-c] send back completion candidates list
85-
// @param id
86-
// @param completions list of string
84+
COMPLETION_LIST, // [s-c] send back completion candidates list
85+
// @param id
86+
// @param completions list of string
8787

88-
LIST_NOTES, // [c-s] ask list of note
89-
RELOAD_NOTES_FROM_REPO, // [c-s] reload notes from repo
88+
LIST_NOTES, // [c-s] ask list of note
89+
RELOAD_NOTES_FROM_REPO, // [c-s] reload notes from repo
9090

91-
NOTES_INFO, // [s-c] list of note infos
92-
// @param notes serialized List<NoteInfo> object
91+
NOTES_INFO, // [s-c] list of note infos
92+
// @param notes serialized List<NoteInfo> object
9393

9494
PARAGRAPH_REMOVE,
9595
PARAGRAPH_CLEAR_OUTPUT,
96-
PARAGRAPH_APPEND_OUTPUT, // [s-c] append output
97-
PARAGRAPH_UPDATE_OUTPUT, // [s-c] update (replace) output
96+
PARAGRAPH_APPEND_OUTPUT, // [s-c] append output
97+
PARAGRAPH_UPDATE_OUTPUT, // [s-c] update (replace) output
9898
PING,
9999
AUTH_INFO,
100100

101-
ANGULAR_OBJECT_UPDATE, // [s-c] add/update angular object
102-
ANGULAR_OBJECT_REMOVE, // [s-c] add angular object del
101+
ANGULAR_OBJECT_UPDATE, // [s-c] add/update angular object
102+
ANGULAR_OBJECT_REMOVE, // [s-c] add angular object del
103103

104-
ANGULAR_OBJECT_UPDATED, // [c-s] angular object value updated,
104+
ANGULAR_OBJECT_UPDATED, // [c-s] angular object value updated,
105105

106-
ANGULAR_OBJECT_CLIENT_BIND, // [c-s] angular object updated from AngularJS z object
106+
ANGULAR_OBJECT_CLIENT_BIND, // [c-s] angular object updated from AngularJS z object
107107

108-
ANGULAR_OBJECT_CLIENT_UNBIND, // [c-s] angular object unbind from AngularJS z object
108+
ANGULAR_OBJECT_CLIENT_UNBIND, // [c-s] angular object unbind from AngularJS z object
109109

110-
LIST_CONFIGURATIONS, // [c-s] ask all key/value pairs of configurations
111-
CONFIGURATIONS_INFO, // [s-c] all key/value pairs of configurations
112-
// @param settings serialized Map<String, String> object
110+
LIST_CONFIGURATIONS, // [c-s] ask all key/value pairs of configurations
111+
CONFIGURATIONS_INFO, // [s-c] all key/value pairs of configurations
112+
// @param settings serialized Map<String, String> object
113113

114-
CHECKPOINT_NOTEBOOK, // [c-s] checkpoint notebook to storage repository
115-
// @param noteId
116-
// @param checkpointName
114+
CHECKPOINT_NOTEBOOK, // [c-s] checkpoint notebook to storage repository
115+
// @param noteId
116+
// @param checkpointName
117117

118-
LIST_REVISION_HISTORY, // [c-s] list revision history of the notebook
119-
// @param noteId
120-
NOTE_REVISION, // [c-s] get certain revision of note
121-
// @param noteId
122-
// @param revisionId
118+
LIST_REVISION_HISTORY, // [c-s] list revision history of the notebook
119+
// @param noteId
120+
NOTE_REVISION, // [c-s] get certain revision of note
121+
// @param noteId
122+
// @param revisionId
123123

124-
APP_APPEND_OUTPUT, // [s-c] append output
125-
APP_UPDATE_OUTPUT, // [s-c] update (replace) output
126-
APP_LOAD, // [s-c] on app load
127-
APP_STATUS_CHANGE, // [s-c] on app status change
124+
APP_APPEND_OUTPUT, // [s-c] append output
125+
APP_UPDATE_OUTPUT, // [s-c] update (replace) output
126+
APP_LOAD, // [s-c] on app load
127+
APP_STATUS_CHANGE, // [s-c] on app status change
128128

129-
LIST_NOTEBOOK_JOBS, // [c-s] get notebook job management infomations
130-
LIST_UPDATE_NOTEBOOK_JOBS, // [s-c] get job management informations
129+
LIST_NOTEBOOK_JOBS, // [c-s] get notebook job management infomations
130+
LIST_UPDATE_NOTEBOOK_JOBS, // [c-s] get job management informations for until unixtime
131131
UNSUBSCRIBE_UPDATE_NOTEBOOK_JOBS, // [c-s] unsubscribe job information for job management
132-
GET_INTERPRETER_BINDINGS, // [c-s] get interpreter bindings
133-
// @param noteID
134-
SAVE_INTERPRETER_BINDINGS, // [c-s] save interpreter bindings
135-
// @param noteID
136-
// @param selectedSettingIds
137-
INTERPRETER_BINDINGS // [s-c] interpreter bindings
132+
// @param unixTime
133+
GET_INTERPRETER_BINDINGS, // [c-s] get interpreter bindings
134+
// @param noteID
135+
SAVE_INTERPRETER_BINDINGS, // [c-s] save interpreter bindings
136+
// @param noteID
137+
// @param selectedSettingIds
138+
INTERPRETER_BINDINGS // [s-c] interpreter bindings
138139
}
139140

140141
public OP op;

0 commit comments

Comments
 (0)