|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Functions that all parallel programs must implement. After a job is submitted, the following happens:
initJob---run on the machine coordinating the startup
of the job; not guaranteed to be a node involved in the
computation.Job objects gets sent out to the compute nodes.getCommunicator---should allocated an object and
return it. This method should not be expect to be able to print,
access files, etc.initSys---run to perform internal initialisation.initNode---perform any initialisation needed on the
node before the job starts running.run---run the job.
| Method Summary | |
Communicator |
getCommunicator()
Allocate and return an object for use in communicating between nodes and to inject control into the system from external sources. |
void |
initJob()
Perform any global initialisation needed by the program. |
void |
initNode(java.lang.String[] args)
Perform node-specific initialisation prior to actually starting the program on that node. |
void |
initSys(Cluster cluster)
Perform system-specific initialisation prior to running any other code on the compute node. |
void |
kill()
Permanently stop executing a job. |
java.lang.String |
name()
Get the name of the program. |
void |
resume()
Resume executing a previously suspended job. |
void |
run()
Begin executing the job. |
void |
suspend()
Temporarily halt execution of the job. |
| Method Detail |
public java.lang.String name()
public void initJob()
public void initSys(Cluster cluster)
cluster - a Cluster objectpublic void initNode(java.lang.String[] args)
args - the argument list passed to the job by the front endpublic Communicator getCommunicator()
public void run()
public void suspend()
public void resume()
public void kill()
run method
should exit.
|
Java Distributed Computational Framework v0.1 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||