Figure 19.4 Classes depicted with thick borders are specializations of the
interface MyServerInterface . Both interfaces extend interface java.rmi.
Remote . When a remote client invokes this method, an instance of MyService
is created within MyServer and is registered as a remote object with the
Naming.bind() mechanism of RMI. The URL of MyService object is returned to
the client that uses it to get a reference to the remote service.
Class DActivity is the superclass of every remote control service. It imple-
ments methods to set and get the URL of the service, to start and stop it and
to execute it as an independent thread of control. Every concrete service
should implement three basic methods: init() is invoked when the service is
created, step() is invoked repeatedly while the service is running, quit() is
invoked before the service terminates its execution.
public abstract class DActivity