class Pione::Command::PioneTaskWorker
‘PioneTaskWorker` is a command that runs pione task worker agents.
Attributes
agent[R]
instance methods
tuple_space_server[R]
Public Class Methods
spawn(model, param={})
click to toggle source
Create a new process of ‘pione-task-worker` command.
@param [Rootage::Model] model @param [Hash] param @option param [Array<String>] :features
list of features that the task worker has
@option param [String] :tuple_space_id
ID of tuple space that the task worker works in
# File lib/pione/command/pione-task-worker.rb, line 17 def self.spawn(model, param={}) spawner = Spawner.new(model, "pione-task-worker") # debug options spawner.option_if(Global.debug_system, "--debug=system") spawner.option_if(Global.debug_ignored_exception, "--debug=ignored_exception") spawner.option_if(Global.debug_rule_engine, "--debug=rule_engine") spawner.option_if(Global.debug_communication, "--debug=communication") spawner.option_if(Global.debug_notification, "--debug=notification") # requisite options spawner.option_from(model, :front, "--parent-front", lambda {|val| val.uri}) spawner.option_from(param, :tuple_space_id, "--tuple-space-id") spawner.option_from(param, :features, "--features") # others spawner.option("--color", Global.color_enabled) spawner.option("--file-cache-method", System::FileCache.cache_method.name) spawner.option("--file-sliding", Global.file_sliding) spawner.spawn # this method returns child front end