Class: Refinery::Processor

Inherits:
Thread
  • Object
show all
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

Instance Method Summary collapse

Methods included from Loggable

#logger

Methods included from Configurable

#config, #config=

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

#daemonsObject (readonly)

Returns the value of attribute daemons.



11
12
13
# File 'lib/refinery/processor.rb', line 11

def daemons
  @daemons
end

#keyObject (readonly)

Returns the value of attribute key.



9
10
11
# File 'lib/refinery/processor.rb', line 9

def key
  @key
end

#serverObject (readonly)

Returns the value of attribute server.



8
9
10
# File 'lib/refinery/processor.rb', line 8

def server
  @server
end

#settingsObject (readonly)

Returns the value of attribute settings.



10
11
12
# File 'lib/refinery/processor.rb', line 10

def settings
  @settings
end