|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.nukernel.jdcf.AbstractProgram
The recommended way to write a program is by extending this class.
Code which does not extend this class is not guaranteed to work
across releases. If you implement program directly, you assume
responsiblity for handing Cluster objects, and the like.
| Field Summary | |
protected Cluster |
cluster
|
| Constructor Summary | |
AbstractProgram()
|
|
| 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 |
suspend()
Temporarily halt execution of the job. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected Cluster cluster
| Constructor Detail |
public AbstractProgram()
| Method Detail |
public java.lang.String name()
public void initJob()
public final 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 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 | |||||||