lib/hydra/message/runner_messages.rb in hydra-0.4.1 vs lib/hydra/message/runner_messages.rb in hydra-0.5.0
- old
+ new
@@ -6,36 +6,28 @@
def handle(worker, runner) #:nodoc:
worker.request_file(self, runner)
end
end
- # Message telling the Runner to run a file
- class RunFile < Hydra::Message
- attr_accessor :file
- def serialize #:nodoc:
- super(:file => @file)
- end
- def handle(runner) #:nodoc:
- runner.run_file(@file)
- end
- end
-
# Message for the Runner to respond with its results
class Results < Hydra::Message
+ # The output from running the test
attr_accessor :output
+ # The file that was run
attr_accessor :file
def serialize #:nodoc:
super(:output => @output, :file => @file)
end
def handle(worker, runner) #:nodoc:
worker.relay_results(self, runner)
end
end
- # Message to tell the Runner to shut down
- class Shutdown < Hydra::Message
- def handle(runner) #:nodoc:
- runner.stop
+ # Message a runner sends to a worker to verify the connection
+ class Ping < Hydra::Message
+ def handle(worker, runner) #:nodoc:
+ # We don't do anything to handle a ping. It's just to test
+ # the connectivity of the IO
end
end
end
end
end