|
From: Doug C. <cu...@ap...> - 2008-03-31 22:15:14
|
Ning Li wrote: > It is a single propagator per host. But the question is, when should the > synchronizer be started? Hosts will both (1) respond to RPCs and (2) have a control loop. So maybe we should have them implement Runnable. The RPC listener could be started at the beginning of the run() implementation, and stopped when it exits. Then programs (like unit tests) can manage them using the Runnable API & Thread.interrupt(). They can also have a main() method that runs them in the foreground, for command-line use. Does that work? Doug |