examples.grid.mathProblemDistributed
Class ServerAndWorker
java.lang.Object
examples.grid.mathProblemDistributed.ServerAndWorker
public class ServerAndWorker
- extends java.lang.Object
Convenience call to start both the server and a worker at once. Only for
demonstration purposes. Normally, you would start the server and the
worker(s) separately and possibly on different hosts!
This class can be used to start-up any JGAP grid, because the individual
data is only kept with the JGAPClient! The JGAPClient distributes any data
(including classes) necessary to the workers via the server.
- Since:
- 3.2
Method Summary |
static void |
main(java.lang.String[] args)
Convenience (demo) start of both the server and a worker. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerAndWorker
public ServerAndWorker()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Convenience (demo) start of both the server and a worker.
- Parameters:
args
- might not work here in this simple example as distinct options
between server and worker could lead to parsing errors.
- Throws:
java.lang.Exception
- Since:
- 3.2