mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
change method name
This commit is contained in:
parent
03bdd05cb4
commit
e698e6f91c
1 changed files with 3 additions and 4 deletions
|
|
@ -856,9 +856,8 @@ public class InterpreterFactory implements InterpreterGroupFactory {
|
|||
}
|
||||
}
|
||||
|
||||
private boolean isSharedInterpreter(InterpreterSetting setting) {
|
||||
if (setting != null &&
|
||||
setting.getOption().isPerNoteProcess() == false &&
|
||||
private boolean interpreterIsShared(InterpreterSetting setting) {
|
||||
if (setting.getOption().isPerNoteProcess() == false &&
|
||||
setting.getOption().isPerNoteSession() == false){
|
||||
return true;
|
||||
}
|
||||
|
|
@ -868,7 +867,7 @@ public class InterpreterFactory implements InterpreterGroupFactory {
|
|||
public void restart(String settingId, boolean shouldBeCheckedIntpMode) {
|
||||
InterpreterSetting setting = interpreterSettings.get(settingId);
|
||||
|
||||
if (shouldBeCheckedIntpMode && isSharedInterpreter(setting)) {
|
||||
if (shouldBeCheckedIntpMode && interpreterIsShared(setting)) {
|
||||
throw new InterpreterException("Can't restart shared interpreter process.");
|
||||
}
|
||||
restart(settingId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue