Class djm.dynamic.SlaveImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--djm.DJMRemoteObjectImpl
|
+--djm.dynamic.SlaveImpl
- public abstract class SlaveImpl
- extends djm.DJMRemoteObjectImpl
- implements Slave, java.lang.Runnable
Slave tasks are created by extending this class. Master tasks are
created by extending MasterImpl. Note that a slave's life cycle is
patterned after that of an applet.
- See Also:
- Serialized Form
Field Summary
|
Master
|
master
This is a reference to the master which created the slave.
|
static java.io.PrintWriter
|
out
Used instead of System.out so that applets can redirect io. |
Fields inherited from class djm.DJMRemoteObjectImpl |
args |
Constructor Summary
|
SlaveImpl()
Create a new slave. |
Methods inherited from class djm.DJMRemoteObjectImpl |
getOID, run |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
master
public Master master
- This is a reference to the master which created the slave.
Slaves typically call request() on the master in order to
request work once they are running.
out
public static java.io.PrintWriter out
- Used instead of System.out so that applets can redirect io.
SlaveImpl
public SlaveImpl()
throws java.rmi.RemoteException
- Create a new slave.
init
public void init()
- Initialize this slave. This method is called when the slave is
created.
The default implementation does nothing.
start
public void start()
- Start this slave. Slaves work main work is done here (or
started from here).
The default implementation does nothing.
stop
public void stop()
- Stop this slave.
The default implementation does nothing.
destroy
public void destroy()
- Destroy this slave. This method is called when the slave is about to
be shutdown. The default implementation does nothing.
setArgs
public final void setArgs(java.lang.Object[] args)
- Do not use. This method is public as an
implementation side effect.
- Overrides:
- setArgs in class djm.DJMRemoteObjectImpl
startSlave
public final void startSlave()
- Description copied from interface:
Do not use directly. Public by implementation side effect.
- Specified by:
- startSlave in interface Slave
destroySlave
public final void destroySlave()
- Description copied from interface:
Do not use directly. Public by implementation side effect.
- Specified by:
- destroySlave in interface Slave
run
public void run()
- Description copied from interface:
- Specified by:
- run() in interface java.lang.Runnable
- Overrides:
- run in class djm.DJMRemoteObjectImpl