Search in sources :

Example 11 with ExportMonitor

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;
        }
    }
}
Also used : ExportMonitor(com.cubrid.common.ui.cubrid.table.dialog.exp.ExportMonitor)

Example 12 with ExportMonitor

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;
        }
    }
}
Also used : ExportMonitor(com.cubrid.common.ui.cubrid.table.dialog.exp.ExportMonitor) ExportDataSuccessEvent(com.cubrid.common.ui.cubrid.table.event.ExportDataSuccessEvent)

Aggregations

ExportMonitor (com.cubrid.common.ui.cubrid.table.dialog.exp.ExportMonitor)12 ExportDataSuccessEvent (com.cubrid.common.ui.cubrid.table.event.ExportDataSuccessEvent)2