class DTK::Client::TaskStatus::StreamMode
Constants
- WaitWhenNoResults
Public Instance Methods
get_and_render(opts = {})
click to toggle source
# File lib/task_status/stream_mode.rb, line 24 def get_and_render(opts = {}) Element.get_and_render_task_start(self, opts) Element.get_and_render_stages(self, {:wait => WaitWhenNoResults}.merge(opts)) Response::Ok.new() end
post_call(*args)
click to toggle source
Calls superclass method
# File lib/task_status/stream_mode.rb, line 32 def post_call(*args) super end
Private Instance Methods
post_body(opts = {})
click to toggle source
This uses a cursor based interface to the server
start_index: START_INDEX end_index: END_INDEX
convention is start_position = 0 and end_position = 0 means top level task with start time
Calls superclass method
# File lib/task_status/stream_mode.rb, line 42 def post_body(opts = {}) ret = super(opts) ret.merge(:start_index => opts[:start_index], :end_index => opts[:end_index]) end