use of org.talend.core.hadoop.version.EAuthenticationMode in project tbd-studio-se by Talend.
the class StandardHCInfoForm method init.
@Override
public void init() {
if (isNeedFillDefaults()) {
fillDefaults();
}
if (isContextMode()) {
adaptFormToEditable();
}
EAuthenticationMode authMode = EAuthenticationMode.getAuthenticationByName(getConnection().getAuthMode(), false);
if (authMode != null) {
authenticationCombo.setText(authMode.getDisplayName());
} else {
authenticationCombo.select(0);
}
HadoopClusterConnection connection = getConnection();
namenodeUriText.setText(connection.getNameNodeURI());
jobtrackerUriText.setText(connection.getJobTrackerURI());
rmSchedulerText.setText(StringUtils.trimToEmpty(connection.getRmScheduler()));
jobHistoryText.setText(StringUtils.trimToEmpty(connection.getJobHistory()));
stagingDirectoryText.setText(StringUtils.trimToEmpty(connection.getStagingDirectory()));
useDNHostBtn.setSelection(connection.isUseDNHost());
useSparkPropertiesBtn.setSelection(connection.isUseSparkProperties());
useCustomConfBtn.setSelection(connection.isUseCustomConfs());
if (useClouderaNaviBtn != null) {
useClouderaNaviBtn.setSelection(connection.isUseClouderaNavi());
}
kerberosBtn.setSelection(connection.isEnableKerberos());
namenodePrincipalText.setText(connection.getPrincipal());
jtOrRmPrincipalText.setText(connection.getJtOrRmPrincipal());
jobHistoryPrincipalText.setText(connection.getJobHistoryPrincipal());
keytabBtn.setSelection(connection.isUseKeytab());
keytabPrincipalText.setText(connection.getKeytabPrincipal());
keytabText.setText(connection.getKeytab());
userNameText.setText(connection.getUserName());
groupText.setText(connection.getGroup());
//
maprTBtn.setSelection(connection.isEnableMaprT());
maprTPasswordText.setText(connection.getMaprTPassword());
maprTClusterText.setText(connection.getMaprTCluster());
maprTDurationText.setText(connection.getMaprTDuration());
setMaprTHomeDirBtn.setSelection(connection.isSetMaprTHomeDir());
setHadoopLoginBtn.setSelection(connection.isSetHadoopLogin());
preloadAuthentificationBtn.setSelection(connection.isPreloadAuthentification());
maprTHomeDirText.setText(connection.getMaprTHomeDir());
maprTHadoopLoginText.setText(connection.getMaprTHadoopLogin());
//
useWebHDFSSSLEncryptionBtn.setSelection(connection.isUseWebHDFSSSL());
webHDFSSSLTrustStorePath.setText(connection.getWebHDFSSSLTrustStorePath());
webHDFSSSLTrustStorePassword.setText(connection.getWebHDFSSSLTrustStorePassword());
setHadoopConfBtn.setSelection(Boolean.valueOf(HCParameterUtil.isOverrideHadoopConfs(connection)));
hadoopConfSpecificJarText.setText(Optional.ofNullable(connection.getParameters().get(ConnParameterKeys.CONN_PARA_KEY_HADOOP_CONF_SPECIFIC_JAR)).orElse(""));
needInitializeContext = true;
updateStatus(IStatus.OK, EMPTY_STRING);
onUseCustomConfBtnSelected(null);
onOverrideHadoopConfBtnSelected(null);
if ("SPARK".equals(((HadoopClusterConnectionImpl) this.connectionItem.getConnection()).getDistribution())) {
useCustomConfBtn.setEnabled(false);
useCustomConfBtn.setSelection(true);
setHadoopConfBtn.setEnabled(false);
setHadoopConfBtn.setSelection(true);
hadoopConfSpecificJarText.setEditable(true);
String sparkModeValue = getConnection().getParameters().get(ConnParameterKeys.CONN_PARA_KEY_SPARK_MODE);
if (sparkModeValue != null) {
sparkModeCombo.setText(getSparkModeByValue(sparkModeValue).getLabel());
} else {
sparkModeCombo.setText(ESparkMode.KUBERNETES.getLabel());
}
String providerValue = getConnection().getParameters().get(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_CLOUD_PROVIDER);
if (providerValue != null) {
cloudProviderCombo.setText(getDatabriksCloudProviderByVaule(providerValue).getProviderLableName());
} else {
cloudProviderCombo.setText(EDatabriksCloudProvider.AWS.getProviderLableName());
}
String runModeValue = getConnection().getParameters().get(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_RUN_MODE);
if (runModeValue != null) {
runSubmitCombo.setText(getDatabriksRunModeByValue(runModeValue).getRunModeLabel());
} else {
runSubmitCombo.setText(EDatabriksSubmitMode.CREATE_RUN_JOB.getRunModeLabel());
}
String endPoint = StringUtils.trimToEmpty(getConnection().getParameters().get(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_ENDPOINT));
endpointText.setText(endPoint);
String clusterId = StringUtils.trimToEmpty(getConnection().getParameters().get(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_CLUSTER_ID));
clusterIDText.setText(clusterId);
String token = StringUtils.trimToEmpty(EncryptionUtil.getValue(getConnection().getParameters().get(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_TOKEN), false));
tokenText.setText(token);
String folder = StringUtils.trimToEmpty(getConnection().getParameters().get(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_DBFS_DEP_FOLDER));
dbfsDepFolderText.setText(folder);
}
}
use of org.talend.core.hadoop.version.EAuthenticationMode in project tbd-studio-se by Talend.
the class StandardHCInfoForm method updateForm.
@Override
public void updateForm() {
HadoopClusterConnection connection = getConnection();
final DistributionVersion distributionVersion = getDistributionVersion();
if (distributionVersion.distribution.useCustom()) {
hideControl(customGroup, false);
String authModeName = connection.getAuthMode();
if (authModeName != null) {
EAuthenticationMode authMode = EAuthenticationMode.getAuthenticationByName(authModeName, false);
switch(authMode) {
case KRB:
kerberosBtn.setEnabled(true);
namenodePrincipalText.setEditable(kerberosBtn.isEnabled() && kerberosBtn.getSelection());
jtOrRmPrincipalText.setEditable(namenodePrincipalText.getEditable());
jobHistoryPrincipalText.setEditable(isJobHistoryPrincipalEditable());
keytabBtn.setEnabled(kerberosBtn.isEnabled() && kerberosBtn.getSelection());
keytabPrincipalText.setEditable(keytabBtn.isEnabled() && keytabBtn.getSelection());
keytabText.setEditable(keytabBtn.isEnabled() && keytabBtn.getSelection());
keytabPrincipalText.setHideWidgets(!(kerberosBtn.isEnabled() && kerberosBtn.getSelection() && keytabBtn.isEnabled() && keytabBtn.getSelection()));
keytabText.setVisible(kerberosBtn.isEnabled() && kerberosBtn.getSelection() && keytabBtn.isEnabled() && keytabBtn.getSelection());
userNameText.setEditable(false);
groupText.setEditable(false);
// userNameText.setHideWidgets(true);
userNameText.setVisible(false);
groupText.setHideWidgets(true);
hideKerberosControl(!kerberosBtn.getSelection());
hideMaprTicketControl(true);
maprTPasswordText.setEditable(false);
break;
case UGI:
kerberosBtn.setEnabled(true);
namenodePrincipalText.setEditable(kerberosBtn.isEnabled() && kerberosBtn.getSelection());
jtOrRmPrincipalText.setEditable(namenodePrincipalText.getEditable());
jobHistoryPrincipalText.setEditable(namenodePrincipalText.getEditable());
keytabBtn.setEnabled(kerberosBtn.isEnabled() && kerberosBtn.getSelection());
keytabPrincipalText.setEditable(keytabBtn.isEnabled() && keytabBtn.getSelection());
keytabText.setEditable(keytabBtn.isEnabled() && keytabBtn.getSelection());
keytabPrincipalText.setHideWidgets(!(kerberosBtn.isEnabled() && kerberosBtn.getSelection() && keytabBtn.isEnabled() && keytabBtn.getSelection()));
keytabText.setVisible(kerberosBtn.isEnabled() && kerberosBtn.getSelection() && keytabBtn.isEnabled() && keytabBtn.getSelection());
userNameText.setEditable(!(kerberosBtn.isEnabled() && kerberosBtn.getSelection()));
groupText.setEditable(true);
userNameText.setHideWidgets(kerberosBtn.isEnabled() && kerberosBtn.getSelection());
groupText.setHideWidgets(false);
hideKerberosControl(!kerberosBtn.getSelection());
// maprt
hideMaprTicketChildControl(!maprTBtn.getSelection());
maprTPasswordText.setEditable(maprTBtn.isEnabled() && (maprTBtn.getSelection() && !(kerberosBtn.isEnabled() && kerberosBtn.getSelection())));
break;
default:
kerberosBtn.setEnabled(false);
namenodePrincipalText.setEditable(false);
jtOrRmPrincipalText.setEditable(false);
jobHistoryPrincipalText.setEditable(false);
keytabBtn.setEnabled(false);
keytabPrincipalText.setEditable(false);
keytabText.setEditable(false);
userNameText.setEditable(true);
groupText.setEditable(false);
userNameText.setHideWidgets(false);
groupText.setHideWidgets(true);
hideKerberosControl(true);
hideMaprTicketControl(true);
maprTPasswordText.setEditable(false);
break;
}
}
} else {
hideControl(customGroup, true);
kerberosBtn.setEnabled(isCurrentHadoopVersionSupportSecurity());
namenodePrincipalText.setEditable(kerberosBtn.isEnabled() && kerberosBtn.getSelection());
jtOrRmPrincipalText.setEditable(namenodePrincipalText.getEditable());
jobHistoryPrincipalText.setEditable(isJobHistoryPrincipalEditable());
keytabBtn.setEnabled(kerberosBtn.isEnabled() && kerberosBtn.getSelection());
keytabPrincipalText.setEditable(keytabBtn.isEnabled() && keytabBtn.getSelection());
keytabText.setEditable(keytabBtn.isEnabled() && keytabBtn.getSelection());
keytabPrincipalText.setHideWidgets(!(kerberosBtn.isEnabled() && kerberosBtn.getSelection() && keytabBtn.isEnabled() && keytabBtn.getSelection()));
keytabText.setVisible(kerberosBtn.isEnabled() && kerberosBtn.getSelection() && keytabBtn.isEnabled() && keytabBtn.getSelection());
groupText.setEditable(isCurrentHadoopVersionSupportGroup());
userNameText.setEditable(!kerberosBtn.getSelection());
if (isCurrentHadoopVersionSupportGroup()) {
userNameText.setHideWidgets(kerberosBtn.getSelection());
} else {
userNameText.setVisible(!kerberosBtn.getSelection());
}
groupText.setHideWidgets(!isCurrentHadoopVersionSupportGroup());
hideKerberosControl(!kerberosBtn.getSelection());
// maprt
hideControl(maprTBtn, !isCurrentHadoopVersionSupportMapRTicket());
maprTBtn.setEnabled(isCurrentHadoopVersionSupportMapRTicket());
maprTPasswordText.setEditable(maprTBtn.isEnabled() && (maprTBtn.getSelection() && !(kerberosBtn.isEnabled() && kerberosBtn.getSelection())));
maprTClusterText.setEditable(maprTBtn.isEnabled() && maprTBtn.getSelection());
maprTDurationText.setEditable(maprTBtn.isEnabled() && maprTBtn.getSelection());
setMaprTHomeDirBtn.setEnabled(maprTBtn.isEnabled() && maprTBtn.getSelection());
setHadoopLoginBtn.setEnabled(maprTBtn.isEnabled() && maprTBtn.getSelection());
preloadAuthentificationBtn.setEnabled(maprTBtn.isEnabled() && maprTBtn.getSelection());
hideMaprTicketChildControl(!maprTBtn.getSelection());
}
updateMRRelatedContent();
updateConnectionContent();
hideWebHDFSControl(!isCurrentHadoopVersionSupportWebHDFS());
if (isContextMode()) {
adaptFormToEditable();
}
hideFieldsOnSparkMode();
}
use of org.talend.core.hadoop.version.EAuthenticationMode in project tbd-studio-se by Talend.
the class StandardHCInfoForm method addFieldsListeners.
@Override
protected void addFieldsListeners() {
authenticationCombo.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
String newAuthDisplayName = authenticationCombo.getText();
EAuthenticationMode newAuthMode = EAuthenticationMode.getAuthenticationByDisplayName(newAuthDisplayName);
String originalAuthName = getConnection().getAuthMode();
EAuthenticationMode originalAuthMode = EAuthenticationMode.getAuthenticationByName(originalAuthName, false);
if (newAuthMode != null && newAuthMode != originalAuthMode) {
if (EAuthenticationMode.UGI.equals(newAuthMode)) {
maprTBtn.setEnabled(true);
hideControl(maprTBtn, false);
if (maprTBtn.getSelection()) {
hideControl(maprTPCDCompposite, false);
hideControl(maprTSetComposite, false);
}
authMaprTComposite.layout();
authMaprTComposite.getParent().layout();
}
getConnection().setAuthMode(newAuthMode.getName());
updateForm();
checkFieldsValue();
}
}
});
namenodeUriText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setNameNodeURI(namenodeUriText.getText());
checkFieldsValue();
}
});
jobtrackerUriText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setJobTrackerURI(jobtrackerUriText.getText());
checkFieldsValue();
}
});
rmSchedulerText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setRmScheduler(rmSchedulerText.getText());
checkFieldsValue();
}
});
jobHistoryText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setJobHistory(jobHistoryText.getText());
checkFieldsValue();
}
});
stagingDirectoryText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setStagingDirectory(stagingDirectoryText.getText());
checkFieldsValue();
}
});
useDNHostBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
getConnection().setUseDNHost(useDNHostBtn.getSelection());
checkFieldsValue();
}
});
useSparkPropertiesBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
sparkPropertiesDialog.propertyButton.setEnabled(useSparkPropertiesBtn.getSelection());
getConnection().setUseSparkProperties(useSparkPropertiesBtn.getSelection());
checkFieldsValue();
}
});
useCustomConfBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
onUseCustomConfBtnSelected(e);
}
});
hadoopConfsButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
AbstractHadoopForm form = null;
if (parentForm instanceof AbstractHadoopForm) {
form = (AbstractHadoopForm) parentForm;
}
new HadoopContextConfConfigDialog(getShell(), form, (HadoopClusterConnectionItem) connectionItem).open();
}
});
if (useClouderaNaviBtn != null) {
useClouderaNaviBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
clouderaNaviButton.setEnabled(useClouderaNaviBtn.getSelection());
getConnection().setUseClouderaNavi(useClouderaNaviBtn.getSelection());
checkFieldsValue();
}
});
clouderaNaviButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
AbstractHadoopForm form = null;
if (parentForm instanceof AbstractHadoopForm) {
form = (AbstractHadoopForm) parentForm;
}
HadoopConfsUtils.openClouderaNaviWizard(form, (HadoopClusterConnectionItem) connectionItem, creation);
}
});
}
rmSchedulerText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setRmScheduler(rmSchedulerText.getText());
checkFieldsValue();
}
});
jobHistoryText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setJobHistory(jobHistoryText.getText());
checkFieldsValue();
}
});
stagingDirectoryText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setStagingDirectory(stagingDirectoryText.getText());
checkFieldsValue();
}
});
useDNHostBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
getConnection().setUseDNHost(useDNHostBtn.getSelection());
checkFieldsValue();
}
});
namenodePrincipalText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setPrincipal(namenodePrincipalText.getText());
checkFieldsValue();
}
});
jtOrRmPrincipalText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setJtOrRmPrincipal(jtOrRmPrincipalText.getText());
checkFieldsValue();
}
});
jobHistoryPrincipalText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
getConnection().setJobHistoryPrincipal(jobHistoryPrincipalText.getText());
checkFieldsValue();
}
});
userNameText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setUserName(userNameText.getText());
checkFieldsValue();
}
});
groupText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setGroup(groupText.getText());
checkFieldsValue();
}
});
kerberosBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
hideControl(authNodejtOrRmHistoryComposite, !kerberosBtn.getSelection());
hideControl(authKeytabComposite, !kerberosBtn.getSelection());
hideControl(maprTPasswordCompposite, kerberosBtn.getSelection() && maprTBtn.getSelection());
getConnection().setEnableKerberos(kerberosBtn.getSelection());
updateForm();
authGroup.layout();
authGroup.getParent().layout();
checkFieldsValue();
}
});
keytabBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
getConnection().setUseKeytab(keytabBtn.getSelection());
updateForm();
checkFieldsValue();
}
});
keytabPrincipalText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setKeytabPrincipal(keytabPrincipalText.getText());
checkFieldsValue();
}
});
keytabText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setKeytab(keytabText.getText());
checkFieldsValue();
}
});
maprTBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
hideControl(maprTPCDCompposite, !maprTBtn.getSelection());
hideControl(maprTSetComposite, !maprTBtn.getSelection());
hideControl(maprTPasswordCompposite, kerberosBtn.getSelection() && maprTBtn.getSelection());
getConnection().setEnableMaprT(maprTBtn.getSelection());
updateForm();
authGroup.layout();
authGroup.getParent().layout();
checkFieldsValue();
}
});
maprTPasswordText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setMaprTPassword(maprTPasswordText.getText());
checkFieldsValue();
}
});
maprTClusterText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setMaprTCluster(maprTClusterText.getText());
checkFieldsValue();
}
});
maprTDurationText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setMaprTDuration(maprTDurationText.getText());
checkFieldsValue();
}
});
setMaprTHomeDirBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
getConnection().setSetMaprTHomeDir(setMaprTHomeDirBtn.getSelection());
maprTHomeDirText.setText(getConnection().getMaprTHomeDir());
updateForm();
checkFieldsValue();
}
});
maprTHomeDirText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setMaprTHomeDir(maprTHomeDirText.getText());
checkFieldsValue();
}
});
setHadoopLoginBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
getConnection().setSetHadoopLogin(setHadoopLoginBtn.getSelection());
maprTHadoopLoginText.setText(getConnection().getMaprTHadoopLogin());
updateForm();
checkFieldsValue();
}
});
maprTHadoopLoginText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().setMaprTHadoopLogin(maprTHadoopLoginText.getText());
checkFieldsValue();
}
});
preloadAuthentificationBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
getConnection().setPreloadAuthentification(preloadAuthentificationBtn.getSelection());
updateForm();
checkFieldsValue();
}
});
setHadoopConfBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
onOverrideHadoopConfBtnSelected(e);
}
});
hadoopConfSpecificJarText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
onHadoopConfPathTextModified(e);
}
});
browseHadoopConfBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
onBrowseHadoopConfBtnSelected(e);
}
});
useWebHDFSSSLEncryptionBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
hideControl(webHDFSSSLEncryptionDetailComposite, !useWebHDFSSSLEncryptionBtn.getSelection());
getConnection().setUseWebHDFSSSL(useWebHDFSSSLEncryptionBtn.getSelection());
updateForm();
checkFieldsValue();
}
});
webHDFSSSLTrustStorePath.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
getConnection().setWebHDFSSSLTrustStorePath(webHDFSSSLTrustStorePath.getText());
checkFieldsValue();
}
});
webHDFSSSLTrustStorePassword.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
getConnection().setWebHDFSSSLTrustStorePassword(webHDFSSSLTrustStorePassword.getText());
checkFieldsValue();
}
});
if (sparkModeCombo != null) {
sparkModeCombo.getCombo().addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
hideFieldsOnSparkMode();
checkFieldsValue();
}
});
}
cloudProviderCombo.getCombo().addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
String providerLableName = cloudProviderCombo.getText();
getConnection().getParameters().put(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_CLOUD_PROVIDER, getDatabriksCloudProviderByName(providerLableName).getProviderValue());
checkFieldsValue();
}
});
runSubmitCombo.getCombo().addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
String runModeLableName = runSubmitCombo.getText();
getConnection().getParameters().put(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_RUN_MODE, getDatabriksRunModeByName(runModeLableName).getRunModeValue());
checkFieldsValue();
}
});
endpointText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().getParameters().put(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_ENDPOINT, endpointText.getText());
checkFieldsValue();
}
});
clusterIDText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().getParameters().put(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_CLUSTER_ID, clusterIDText.getText());
checkFieldsValue();
}
});
tokenText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().getParameters().put(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_TOKEN, EncryptionUtil.getValue(tokenText.getText(), true));
checkFieldsValue();
}
});
dbfsDepFolderText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(final ModifyEvent e) {
getConnection().getParameters().put(ConnParameterKeys.CONN_PARA_KEY_DATABRICKS_DBFS_DEP_FOLDER, dbfsDepFolderText.getText());
checkFieldsValue();
}
});
}
Aggregations