|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.distr.Master
public abstract class Master
Represents an IMaster instance. Distributes work to IWorker instances. Allows to receive new tasks and send them to the workers when applicable.
| Constructor Summary | |
|---|---|
Master(RequestDispatcher a_dispatcher,
WorkerListener a_workerListener)
Constructor. |
|
| Method Summary | |
|---|---|
RequestDispatcher |
getDispatcher()
|
MasterInfo |
getMasterInfo()
|
WorkerListener |
getWorkerListener()
|
void |
sendToWorker(IWorker a_worker,
WorkerCommand a_command)
Sends a command to a worker. |
abstract void |
start()
Starts the master listener. |
void |
stop()
Stops the master from being working. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Master(RequestDispatcher a_dispatcher,
WorkerListener a_workerListener)
throws java.lang.Exception
a_dispatcher - the dispatcher to use for requests to workersa_workerListener - the listener to use for listening to worker
messages
java.lang.Exception| Method Detail |
|---|
public abstract void start()
throws java.lang.Exception
java.lang.Exceptionpublic void stop()
public MasterInfo getMasterInfo()
public void sendToWorker(IWorker a_worker,
WorkerCommand a_command)
throws java.io.IOException
a_worker - the worker to send the command toa_command - the command to send
java.io.IOExceptionpublic RequestDispatcher getDispatcher()
public WorkerListener getWorkerListener()
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||