use of com.cubrid.common.ui.cubrid.table.dialog.exp.ExportMonitor in project cubrid-manager by CUBRID.
the class ExportDataViewPart method updateOneTableData.
/**
* when one file begin, update table
*
* @param evt BeginOneFileEvent
*/
private void updateOneTableData(ExportDataBeginOneTableEvent evt) {
if (stop) {
return;
}
String tableName = evt.getTableName();
for (int i = 0; i < monitorList.size(); i++) {
ExportMonitor po = monitorList.get(i);
if (po.getTableName().equals(tableName)) {
po.setBeginTime(evt.getEventTime());
po.setStatus(ExportMonitor.STATUS_RUNNING);
tvProgress.refresh(monitorList);
break;
}
}
}
use of com.cubrid.common.ui.cubrid.table.dialog.exp.ExportMonitor in project cubrid-manager by CUBRID.
the class ExportDataViewPart method updateTableData.
private void updateTableData(ExportDataSuccessEvent evt) {
if (stop) {
return;
}
String tableName = "";
ExportDataSuccessEvent event = (ExportDataSuccessEvent) evt;
tableName = event.getTableName();
for (ExportMonitor po : monitorList) {
if (po.getTableName().equals(tableName)) {
po.setElapsedTime(evt.getEventTime() - po.getBeginTime());
po.setParseCount(po.getParseCount() + event.getSuccessCount());
po.setStatus(ExportMonitor.STATUS_RUNNING);
tvProgress.refresh(monitorList);
break;
}
}
}
Aggregations