Search in sources :

Example 1 with BackUpErrorLogList

use of com.cubrid.cubridmanager.core.cubrid.jobauto.model.errlog.BackUpErrorLogList in project cubrid-manager by CUBRID.

the class BackupErrLogDialog method loadData.

/**
	 * load the data
	 * 
	 * @param shell Shell
	 * @return boolean
	 */
public boolean loadData(Shell shell) {
    CommonQueryTask<BackUpErrorLogList> task = new CommonQueryTask<BackUpErrorLogList>(database.getServer().getServerInfo(), CommonSendMsg.getCommonSimpleSendMsg(), new BackUpErrorLogList());
    connect(-1, new SocketTask[] { task }, true, shell);
    if (task.getErrorMsg() != null) {
        return false;
    }
    List<BackUpErrorLog> allErrLogList = task.getResultModel().getErrorLogList();
    if (allErrLogList != null) {
        for (BackUpErrorLog backUpErrorLog : allErrLogList) {
            if (backUpErrorLog.getDbname().equals(database.getName())) {
                errorLogList.addError(backUpErrorLog);
            }
        }
    }
    return true;
}
Also used : CommonQueryTask(com.cubrid.cubridmanager.core.common.task.CommonQueryTask) BackUpErrorLogList(com.cubrid.cubridmanager.core.cubrid.jobauto.model.errlog.BackUpErrorLogList) BackUpErrorLog(com.cubrid.cubridmanager.core.cubrid.jobauto.model.errlog.BackUpErrorLog)

Aggregations

CommonQueryTask (com.cubrid.cubridmanager.core.common.task.CommonQueryTask)1 BackUpErrorLog (com.cubrid.cubridmanager.core.cubrid.jobauto.model.errlog.BackUpErrorLog)1 BackUpErrorLogList (com.cubrid.cubridmanager.core.cubrid.jobauto.model.errlog.BackUpErrorLogList)1