use of org.talend.repository.hadoopcluster.conf.RetrieveRemoteConfsService in project tbd-studio-se by Talend.
the class HadoopImportRemoteOptionPage method addListener.
private void addListener() {
selectClusterButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
try {
IRetrieveConfsJobService retrieveJobServer = connectionForm.getRetrieveJobService();
if (retrieveJobServer != null) {
retrieveJobServer.setDistributionVersion(distriVersion);
retrieveJobServer.setSelectedCluster(getSelectedCluster());
confsService = (IRetrieveConfsService) retrieveJobServer;
} else if (configurator != null) {
HadoopCluster cluster = configurator.getCluster(getSelectedCluster());
confsService = new RetrieveRemoteConfsService(cluster);
}
if (confsService != null) {
servicesTableComp.setServices(confsService.getAllServices());
}
} catch (Exception ex) {
ExceptionHandler.process(ex);
}
}
});
}
Aggregations