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;
}
Aggregations