Пример #1
0
 public void startDataPhase() {
   print("-- Start %s data phase", itemsName);
   dataStartTime = timer.readTimer();
   currentStartTime = dataStartTime;
   elapsedLastTime = dataStartTime;
   currentItems = 0;
   totalDataItems = 0;
   EventManager.send(dataset, new Event(BulkLoader.evStartDataBulkload, null));
 }
Пример #2
0
  public void finishDataPhase() {
    EventManager.send(dataset, new Event(BulkLoader.evFinishDataBulkload, null));
    dataFinishTime = timer.readTimer();
    dataTime = dataFinishTime - dataStartTime;

    print("-- Finish %s data phase", itemsName);
    if (totalDataItems > 0)
      print(
          "%,d %s loaded in %,.2f seconds [Rate: %,.2f per second]",
          totalDataItems, itemsName, dataTime / 1000.0F, 1000F * totalDataItems / dataTime);
  }
Пример #3
0
  public void finishLoad() {
    timer.endTimer();
    processFinishTime = timer.getTimeInterval();
    processTime = processFinishTime - processStartTime;

    print("-- Finish %s load", itemsName);
    if (totalDataItems > 0)
      print(
          "** Completed: %,d %s loaded in %,.2f seconds [Rate: %,.2f per second]",
          totalDataItems, itemsName, processTime / 1000.0F, 1000F * totalDataItems / processTime);

    EventManager.send(dataset, new Event(BulkLoader.evFinishBulkload, null));
  }
Пример #4
0
  public void finishIndexPhase() {
    EventManager.send(dataset, new Event(BulkLoader.evFinishIndexBulkload, null));
    indexFinishTime = timer.readTimer();
    indexTime = indexFinishTime - indexStartTime;

    print("-- Finish %s index phase", itemsName);
    if (totalIndexItems > 0) {
      if (indexTime > 0)
        print(
            "** %,d %s indexed in %,.2f seconds [Rate: %,.2f per second]",
            totalIndexItems, itemsName, indexTime / 1000.0F, 1000F * totalIndexItems / indexTime);
      else print("** %,d %s indexed", totalIndexItems, itemsName);
    }
  }
Пример #5
0
 // ---- Overall
 public void startLoad() {
   EventManager.send(dataset, new Event(BulkLoader.evStartBulkload, null));
   timer.startTimer();
   processStartTime = timer.readTimer();
 }
Пример #6
0
 public void startIndexPhase() {
   print("-- Start %s index phase", itemsName);
   indexStartTime = timer.readTimer();
   currentItems = 0;
   EventManager.send(dataset, new Event(BulkLoader.evStartIndexBulkload, null));
 }