search for: taskrunn

Displaying 3 results from an estimated 3 matches for "taskrunn".

Did you mean: taskrunner
2007 Jan 21
1
A Thread / Mock question
Hi! What I''m trying at the moment is to build specifications for some background thread code. What I want is a class Task and a class TaskRunner. The TaskRunner should run a task in a background thread. It should also indicate the status of the running task when calling the running? method. That''s basically, what I came up with so far: class TaskRunner def initialize @is_running = false end def running?...
2007 Jan 25
0
mocking methods that receive blocks - back to mocking Thread again
.... It really makes only sense in the context of using Thread. I finally came up with this code, that should now test all important aspects of running a task in a background thread (to keep it simple, I left out the exception handling). see http://pastie.caboo.se/35559 or end of mail. It seems, TaskRunner is now very well covered by the specs - if you find a way to break TaskRunner without breaking the specs, please let me know. Unfortunately the specifications seem to be a little bit hard to read now. Any suggestions for improvements? bye, Tobias class TaskRunner def initialize @...
2013 Feb 08
1
ClassNotFoundException when running distributed job using rJava package
...o.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at spark.JavaDeserializationStream.readObject(JavaSerializer.scala:23) at spark.JavaSerializerInstance.deserialize(JavaSerializer.scala:45) at spark.executor.Executor$TaskRunner.run(Executor.scala:93) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) I think R is unable to find the classpath. But I have speci...