mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
noteId Preconditions
This commit is contained in:
parent
af8a2d8ca5
commit
f38231c3d8
1 changed files with 4 additions and 7 deletions
|
|
@ -947,16 +947,13 @@ public class InterpreterFactory implements InterpreterGroupFactory {
|
|||
}
|
||||
}
|
||||
|
||||
private boolean noteIdIsExist(String noteId) {
|
||||
return noteId == null ? false : true;
|
||||
}
|
||||
|
||||
public void restart(String settingId, String noteId) {
|
||||
Preconditions.checkNotNull(noteId);
|
||||
|
||||
InterpreterSetting intpsetting = interpreterSettings.get(settingId);
|
||||
Preconditions.checkNotNull(intpsetting);
|
||||
|
||||
if (noteIdIsExist(noteId) &&
|
||||
intpsetting.getOption().isProcess()) {
|
||||
|
||||
if (intpsetting.getOption().isProcess()) {
|
||||
intpsetting.closeAndRemoveInterpreterGroup(noteId);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue