Class: Droonga::Plugins::System::AbsorbDataHandler::DataAbsorber

Inherits:
AsyncCommand::AsyncHandler show all
Defined in:
lib/droonga/plugins/system/absorb_data.rb

Defined Under Namespace

Classes: EmptyBody, EmptyResponse

Instance Method Summary collapse

Methods inherited from AsyncCommand::AsyncHandler

#initialize

Constructor Details

This class inherits a constructor from Droonga::Plugins::AsyncCommand::AsyncHandler

Instance Method Details

#startObject



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/droonga/plugins/system/absorb_data.rb', line 47

def start
  logger.trace("start: start")
  on_start

  count_total_n_objects do |n_objects|
    @n_initial_objects = n_objects
    logger.info("initially #{n_objects} objects exist in the dataset")
    do_absorb do
      ensure_completely_restored do
        on_finish
        logger.trace("start: finish")
      end
    end
  end

  logger.trace("start: done")
end