Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class djm.dynamic.MasterImpl

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--djm.dynamic.MasterImpl

public abstract class MasterImpl
extends java.rmi.server.UnicastRemoteObject
implements Master
Master tasks are created by extending this class. Slave tasks are created by extending SlaveImpl. Note that master tasks must implement request.

See Also:
Serialized Form

Field Summary
static java.io.PrintWriter out
          Used instead of System.out so that applets can redirect io.
 
Constructor Summary
MasterImpl()
          Creates a new master.
 
Method Summary
java.lang.Object registerSlave(Slave slave)
          Slaves call this to register themselves.
java.lang.Object request(int type, java.lang.Object req)
          Master tasks must implement this method.
java.lang.Object unregisterSlave(Slave slave)
          Slaves call this to unregister themselves.
 
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
 

Field Detail

out

public static java.io.PrintWriter out
Used instead of System.out so that applets can redirect io.
Constructor Detail

MasterImpl

public MasterImpl()
           throws java.rmi.RemoteException
Creates a new master.
Method Detail

registerSlave

public java.lang.Object registerSlave(Slave slave)
Slaves call this to register themselves. Default implementation simply returns null.
Specified by:
registerSlave in interface Master

unregisterSlave

public java.lang.Object unregisterSlave(Slave slave)
Slaves call this to unregister themselves. Default implementation simply returns null.
Specified by:
unregisterSlave in interface Master

request

public abstract java.lang.Object request(int type,
                               java.lang.Object req)
Master tasks must implement this method. This is the only method which must be implemented by master tasks.
Specified by:
request in interface Master

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD