mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
change variable name
This commit is contained in:
parent
f311f34aa6
commit
6573c1c68b
4 changed files with 8 additions and 8 deletions
|
|
@ -345,7 +345,7 @@ public class JDBCInterpreter extends Interpreter {
|
|||
|
||||
public void setAccountOfCredential(String propertyKey, InterpreterContext interpreterContext) {
|
||||
UsernamePassword usernamePassword = getUsernamePassword(interpreterContext,
|
||||
interpreterContext.getReplGroupName());
|
||||
interpreterContext.getReplName());
|
||||
if (usernamePassword != null && notExistAccountInProperty()) {
|
||||
propertiesMap.get(propertyKey).setProperty("user", usernamePassword.getUsername());
|
||||
propertiesMap.get(propertyKey).setProperty("password", usernamePassword.getPassword());
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public class InterpreterContext {
|
|||
}
|
||||
|
||||
private final String noteId;
|
||||
private final String replGroupName;
|
||||
private final String replName;
|
||||
private final String paragraphTitle;
|
||||
private final String paragraphId;
|
||||
private final String paragraphText;
|
||||
|
|
@ -61,7 +61,7 @@ public class InterpreterContext {
|
|||
|
||||
public InterpreterContext(String noteId,
|
||||
String paragraphId,
|
||||
String replGroupName,
|
||||
String replName,
|
||||
String paragraphTitle,
|
||||
String paragraphText,
|
||||
AuthenticationInfo authenticationInfo,
|
||||
|
|
@ -74,7 +74,7 @@ public class InterpreterContext {
|
|||
) {
|
||||
this.noteId = noteId;
|
||||
this.paragraphId = paragraphId;
|
||||
this.replGroupName = replGroupName;
|
||||
this.replName = replName;
|
||||
this.paragraphTitle = paragraphTitle;
|
||||
this.paragraphText = paragraphText;
|
||||
this.authenticationInfo = authenticationInfo;
|
||||
|
|
@ -91,8 +91,8 @@ public class InterpreterContext {
|
|||
return noteId;
|
||||
}
|
||||
|
||||
public String getReplGroupName() {
|
||||
return replGroupName;
|
||||
public String getReplName() {
|
||||
return replName;
|
||||
}
|
||||
|
||||
public String getParagraphId() {
|
||||
|
|
|
|||
|
|
@ -479,7 +479,7 @@ public class RemoteInterpreter extends Interpreter {
|
|||
return new RemoteInterpreterContext(
|
||||
ic.getNoteId(),
|
||||
ic.getParagraphId(),
|
||||
ic.getReplGroupName(),
|
||||
ic.getReplName(),
|
||||
ic.getParagraphTitle(),
|
||||
ic.getParagraphText(),
|
||||
gson.toJson(ic.getAuthenticationInfo()),
|
||||
|
|
|
|||
|
|
@ -487,7 +487,7 @@ public class RemoteInterpreterServer
|
|||
return new InterpreterContext(
|
||||
ric.getNoteId(),
|
||||
ric.getParagraphId(),
|
||||
ric.getReplGroupName(),
|
||||
ric.getReplName(),
|
||||
ric.getParagraphTitle(),
|
||||
ric.getParagraphText(),
|
||||
gson.fromJson(ric.getAuthenticationInfo(), AuthenticationInfo.class),
|
||||
|
|
|
|||
Loading…
Reference in a new issue