zjffdu commented on a change in pull request #3297: [ZEPPELIN-3671] Add info
about running interpreters to API and JMX
URL: https://github.com/apache/zeppelin/pull/3297#discussion_r264284798
##########
File path:
zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java
##########
@@ -1851,6 +1855,48 @@ public void onSuccess(Note note, ServiceContext
context) throws IOException {
return connectionManager.getConnectedUsers();
}
+ @ManagedOperation
+ public List<Map<String, String>> getParagraphsInfo(String noteId) {
+ Note note = getNotebook().getNote(noteId);
+ return note.generateParagraphsInfo();
+ }
+
+ /**
+ * Extract info about running interpreters with additional paragraph info.
+ */
+ @ManagedOperation
+ public List<Map<String, String>> getRunningInterpretersParagraphInfo() {
Review comment:
Would `getRunningParagraphsInfo` be better ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services