Class: Refinery::Processor
- Inherits:
-
Thread
- Object
- Thread
- Refinery::Processor
- Includes:
- Configurable, Loggable
- Defined in:
- lib/refinery/processor.rb
Overview
This class is used to monitor all of the threads for a single processor.
Instance Attribute Summary collapse
-
#daemons ⇒ Object
readonly
Returns the value of attribute daemons.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
-
#initialize(server, key, settings = {}) ⇒ Processor
constructor
Initialize the processor.
Methods included from Loggable
Methods included from Configurable
Constructor Details
#initialize(server, key, settings = {}) ⇒ Processor
Initialize the processor.
14 15 16 17 18 19 20 21 22 |
# File 'lib/refinery/processor.rb', line 14 def initialize(server, key, settings={}) @server = server @key = key @settings = settings @daemons = [] super do execute end end |
Instance Attribute Details
#daemons ⇒ Object (readonly)
Returns the value of attribute daemons.
11 12 13 |
# File 'lib/refinery/processor.rb', line 11 def daemons @daemons end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
9 10 11 |
# File 'lib/refinery/processor.rb', line 9 def key @key end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
8 9 10 |
# File 'lib/refinery/processor.rb', line 8 def server @server end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
10 11 12 |
# File 'lib/refinery/processor.rb', line 10 def settings @settings end |