use of com.cubrid.common.ui.spi.progress.CommonTaskExec in project cubrid-manager by CUBRID.
the class ConfigParaHelp method performGetHAConf.
/**
* Perform the task of get ha.conf
*
* @param serverInfo the CubridServer
* @return the List<String>
*/
public static List<String> performGetHAConf(ServerInfo serverInfo) {
List<String> confContent = new ArrayList<String>();
CommonTaskExec taskExcutor = new CommonTaskExec(com.cubrid.cubridmanager.ui.host.Messages.getHaConfTaskRunning);
GetHAConfParameterTask getHAConfParameterTask = new GetHAConfParameterTask(serverInfo);
taskExcutor.addTask(getHAConfParameterTask);
new ExecTaskWithProgress(taskExcutor).busyCursorWhile();
if (taskExcutor.isSuccess()) {
confContent = getHAConfParameterTask.getConfContents();
}
return confContent;
}
use of com.cubrid.common.ui.spi.progress.CommonTaskExec in project cubrid-manager by CUBRID.
the class ConfigParaHelp method performGetCmConf.
/**
* Perform the task of get cm.conf
*
* @param serverInfo the CubridServer
* @return the List<String>
*/
public static List<String> performGetCmConf(ServerInfo serverInfo) {
List<String> confContent = new ArrayList<String>();
CommonTaskExec taskExcutor = new CommonTaskExec(com.cubrid.cubridmanager.ui.host.Messages.getCmConfTaskRunning);
GetCMConfParameterTask getCMConfParameterTask = new GetCMConfParameterTask(serverInfo);
taskExcutor.addTask(getCMConfParameterTask);
new ExecTaskWithProgress(taskExcutor).busyCursorWhile();
if (taskExcutor.isSuccess()) {
confContent = getCMConfParameterTask.getConfContents();
}
return confContent;
}
use of com.cubrid.common.ui.spi.progress.CommonTaskExec in project cubrid-manager by CUBRID.
the class ConfigParaHelp method performGetCubridConf.
/**
* Perform the task of get cubrid.conf
*
* @param serverInfo the CubridServer
* @return the List<String>
*/
public static List<String> performGetCubridConf(ServerInfo serverInfo) {
List<String> confContent = new ArrayList<String>();
CommonTaskExec taskExcutor = new CommonTaskExec(com.cubrid.cubridmanager.ui.host.Messages.getCubridConfTaskRunning);
GetCubridConfParameterTask getCubridConfParameterTask = new GetCubridConfParameterTask(serverInfo);
taskExcutor.addTask(getCubridConfParameterTask);
new ExecTaskWithProgress(taskExcutor).busyCursorWhile();
if (taskExcutor.isSuccess()) {
confContent = getCubridConfParameterTask.getConfContents();
}
return confContent;
}
use of com.cubrid.common.ui.spi.progress.CommonTaskExec in project cubrid-manager by CUBRID.
the class ConfigParaHelp method performImportBrokerConf.
/**
* Perform the import task for cubrid_broker.conf
*
* @param serverInfo the CubridserverInfo
* @param confParamList the List<String>
*/
public static void performImportBrokerConf(ServerInfo serverInfo, List<String> confParamList) {
CommonTaskExec taskExcutor = new CommonTaskExec(Messages.setBrokerConfParametersTaskName);
SetBrokerConfParameterTask task = new SetBrokerConfParameterTask(serverInfo);
task.setConfContents(confParamList);
taskExcutor.addTask(task);
new ExecTaskWithProgress(taskExcutor).busyCursorWhile();
if (taskExcutor.isSuccess()) {
CommonUITool.openInformationBox(Messages.titleSuccess, Messages.restartBrokerMsg);
task.finish();
}
}
use of com.cubrid.common.ui.spi.progress.CommonTaskExec in project cubrid-manager by CUBRID.
the class ConfigParaHelp method performGetBrokerConf.
/**
* Perform the task of get cubrid_broker.conf
*
* @param serverInfo the CubridServer
* @return the List<String>
*/
public static List<String> performGetBrokerConf(ServerInfo serverInfo) {
List<String> confContent = new ArrayList<String>();
CommonTaskExec taskExcutor = new CommonTaskExec(com.cubrid.cubridmanager.ui.host.Messages.getBrokerConfTaskRunning);
GetBrokerConfParameterTask getBrokerConfParameterTask = new GetBrokerConfParameterTask(serverInfo);
taskExcutor.addTask(getBrokerConfParameterTask);
new ExecTaskWithProgress(taskExcutor).busyCursorWhile();
if (taskExcutor.isSuccess()) {
confContent = getBrokerConfParameterTask.getConfContents();
}
return confContent;
}
Aggregations