Navigation Menu

Skip to content

Commit

Permalink
Add skeleton of system.absorb-data command
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 10, 2015
1 parent fba8a42 commit aaf8754
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/droonga/plugins/system.rb
Expand Up @@ -25,3 +25,4 @@ module System
end

require "droonga/plugins/system/status"
require "droonga/plugins/system/absorb_data"
36 changes: 36 additions & 0 deletions lib/droonga/plugins/system/absorb_data.rb
@@ -0,0 +1,36 @@
# Copyright (C) 2015 Droonga Project
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1 as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

require "droonga/plugin"

module Droonga
module Plugins
module System
class AbsorbDataHandler < Droonga::Handler
action.synchronous = true

def handle(message)
true
end
end

define_single_step do |step|
step.name = "system.absorb-data"
step.handler = AbsorbDataHandler
step.collector = Collectors::Or
end
end
end
end

0 comments on commit aaf8754

Please sign in to comment.