Class OpenWFE::JournalReplay::ExpoolState
In: lib/openwfe/expool/journal_replay.rb
Parent: Object

Methods

new   to_s  

Included Modules

FeiMixin

Attributes

date  [RW] 
dynamic  [RW] 
offset  [RW] 
participants  [RW] 
static  [RW] 

Public Class methods

[Source]

     # File lib/openwfe/expool/journal_replay.rb, line 279
279:                 def initialize (offset, date, static, dynamic, participants)
280: 
281:                     @offset = offset
282:                     @date = date
283:                     @static = static
284:                     @dynamic = dynamic
285:                     @participants = participants
286:                 end

Public Instance methods

[Source]

     # File lib/openwfe/expool/journal_replay.rb, line 288
288:                 def to_s
289: 
290:                     s = " ===== offset : #{@offset}  #{@date} =====\n"
291: 
292:                     s << "\n"
293:                     s << "static :\n"
294:                     @static.each do |e|
295:                         s << " - #{e[0]}   #{extract_fei(e[2]).to_short_s}\n"
296:                     end
297: 
298:                     s << "\n"
299:                     s << "dynamic :\n"
300:                     @dynamic.each do |e|
301:                         s << " - #{e[0]}   #{extract_fei(e[2]).to_short_s}\n"
302:                     end
303: 
304:                     #s << "\n"
305:                     #s <<  "participants :\n"
306:                     #@participants.each do |fei, v|
307:                     #    s << " - #{fei.to_short_s}\n"
308:                     #end
309: 
310:                     s
311:                 end

[Validate]