Parent

LogWorker

Attributes

log_file[RW]

(Not documented)

Public Instance Methods

process_request(p_data) click to toggle source

(Not documented)

    # File server/lib/log_worker.rb, line 15
15:   def process_request(p_data)
16:     log_data = p_data[:data]
17:     @log_file.info(log_data)
18:   end
process_response() click to toggle source

(Not documented)

    # File server/lib/log_worker.rb, line 20
20:   def process_response
21:     puts "Not implemented and needed"
22:   end
receive_data(p_data) click to toggle source

(Not documented)

    # File server/lib/log_worker.rb, line 8
 8:   def receive_data p_data
 9:     case p_data[:type]
10:     when :request: process_request(p_data)
11:     when :response: process_response(p_data)
12:     end
13:   end
worker_init() click to toggle source

(Not documented)

   # File server/lib/log_worker.rb, line 4
4:   def worker_init
5:     @log_file = Logger.new("#{RAILS_HOME}/log/backgroundrb_#{BDRB_CONFIG[:backgroundrb][:port]}.log")
6:   end

secsequence

--- SEC00044

seccomment

--- ""

attributes

--- 
- name: log_file
  rw: RW
  a_desc: ""

method_list

--- 
- methods: 
  - visibility: public
    aref: M000003
    name: process_request
    sourcecode: "    <span class=\"ruby-comment cmt\"># File server/lib/log_worker.rb, line 15</span>\n\
      15:   <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">process_request</span>(<span class=\"ruby-identifier\">p_data</span>)\n\
      16:     <span class=\"ruby-identifier\">log_data</span> = <span class=\"ruby-identifier\">p_data</span>[<span class=\"ruby-identifier\">:data</span>]\n\
      17:     <span class=\"ruby-ivar\">@log_file</span>.<span class=\"ruby-identifier\">info</span>(<span class=\"ruby-identifier\">log_data</span>)\n\
      18:   <span class=\"ruby-keyword kw\">end</span>"
    params: (p_data)
  - visibility: public
    aref: M000004
    name: process_response
    sourcecode: "    <span class=\"ruby-comment cmt\"># File server/lib/log_worker.rb, line 20</span>\n\
      20:   <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">process_response</span>\n\
      21:     <span class=\"ruby-identifier\">puts</span> <span class=\"ruby-value str\">&quot;Not implemented and needed&quot;</span>\n\
      22:   <span class=\"ruby-keyword kw\">end</span>"
    params: ()
  - visibility: public
    aref: M000002
    name: receive_data
    sourcecode: "    <span class=\"ruby-comment cmt\"># File server/lib/log_worker.rb, line 8</span>\n 8:   <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">receive_data</span> <span class=\"ruby-identifier\">p_data</span>\n 9:     <span class=\"ruby-keyword kw\">case</span> <span class=\"ruby-identifier\">p_data</span>[<span class=\"ruby-identifier\">:type</span>]\n\
      10:     <span class=\"ruby-keyword kw\">when</span> <span class=\"ruby-identifier\">:request</span><span class=\"ruby-operator\">:</span> <span class=\"ruby-identifier\">process_request</span>(<span class=\"ruby-identifier\">p_data</span>)\n\
      11:     <span class=\"ruby-keyword kw\">when</span> <span class=\"ruby-identifier\">:response</span><span class=\"ruby-operator\">:</span> <span class=\"ruby-identifier\">process_response</span>(<span class=\"ruby-identifier\">p_data</span>)\n\
      12:     <span class=\"ruby-keyword kw\">end</span>\n\
      13:   <span class=\"ruby-keyword kw\">end</span>"
    params: (p_data)
  - visibility: public
    aref: M000001
    name: worker_init
    sourcecode: "   <span class=\"ruby-comment cmt\"># File server/lib/log_worker.rb, line 4</span>\n\
      4:   <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">worker_init</span>\n\
      5:     <span class=\"ruby-ivar\">@log_file</span> = <span class=\"ruby-constant\">Logger</span>.<span class=\"ruby-identifier\">new</span>(<span class=\"ruby-node\">&quot;#{RAILS_HOME}/log/backgroundrb_#{BDRB_CONFIG[:backgroundrb][:port]}.log&quot;</span>)\n\
      6:   <span class=\"ruby-keyword kw\">end</span>"
    params: ()
  category: Instance
  type: Public

sectitle

--- 

[Validate]

Generated with the Darkfish Rdoc Generator.