Class: Fairy::WC::PostFilter

Inherits:
IOFilter show all
Defined in:
lib/fairy/client/wc.rb

Defined Under Namespace

Modules: Interface

Instance Method Summary collapse

Methods inherited from Filter

#backend, #backend=, #backend_class, #def_pool_variable

Constructor Details

#initialize(fairy, opts = nil) ⇒ PostFilter

Returns a new instance of PostFilter.



64
65
66
67
# File 'lib/fairy/client/wc.rb', line 64

def initialize(fairy, opts = nil)
  super
  @to_desc = nil
end

Instance Method Details

#backend_class_nameObject



69
70
71
# File 'lib/fairy/client/wc.rb', line 69

def backend_class_name
  "CWC::CPostFilter"
end

#input=(job) ⇒ Object



80
81
82
83
84
85
86
# File 'lib/fairy/client/wc.rb', line 80

def input=(job)
  @input = job
  backend.input=job.backend

  backend.wait_all_output_finished
  @vfile.create_vfile
end

#output(vfn) ⇒ Object



73
74
75
76
77
78
# File 'lib/fairy/client/wc.rb', line 73

def output(vfn)
  @descripter = vfn
  @vfile = VFile.new
  @vfile.vfile_name = vfn
  backend.output(@vfile)
end