|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--net.jini.entry.AbstractEntry
|
+--com.nukernel.jdcf.Job
This class represents jobs (aka programs) in the form in which they are passed to the system by the front end and shipped about inside the system.
| Field Summary | |
java.util.Vector |
allocatedNodes
Nodes on which the computation is actually running. |
java.lang.String[] |
args
Arguments given to the job by the front end. |
Communicator |
comm
The object used for internode communication. |
java.lang.String |
description
A user-supplied text description of what the job is doing. |
boolean |
init
|
net.jini.space.JavaSpace |
js
A Jini service similar to a tuple-space in Linda that is stores objects and is also used for coordination. |
java.lang.String |
label
A front-end generated, globally unique identifier by which one may refer to the job. |
java.io.PrintStream |
out
|
Program |
prog
An object containing the code to be run in the computation. |
java.util.Vector |
requestedNodes
Nodes on which the job submitter requested the job be run. |
java.lang.Object |
result
|
SubmissionFailedException |
sfe
Used internally for interthread communication while submitting the job to the system. |
java.lang.String |
space
The name of the JavaSpace which the job should use. |
java.lang.Integer |
status
The current state (running, etc.) of the job. |
static java.lang.Integer |
STATUS_COMPLETE
The job has finished executing and its output has been collected. |
static java.lang.Integer |
STATUS_READY
The job is waiting to be run. |
static java.lang.Integer |
STATUS_RUNNING
The job is running. |
| Constructor Summary | |
Job()
Default constructor. |
|
Job(Program prog,
java.lang.String space,
int desiredNodes,
java.lang.String description,
java.lang.String[] args)
Build a parallel job. |
|
| Method Summary | |
void |
kill()
Request that the job abort execution. |
void |
resume()
Restart a suspended job. |
void |
serviceIDNotify(net.jini.core.lookup.ServiceID id)
|
java.lang.Object |
status()
Obtain from the running computation, a representation of its current status. |
void |
submit()
Submit a job for execution. |
void |
submit(java.io.PrintStream out)
|
void |
suspend()
Request that the job temporarily stop executing. |
void |
update()
Update internal job state from the JavaSpace. |
void |
watch()
Receive console output from the running job and block until the job terminates. |
| Methods inherited from class net.jini.entry.AbstractEntry |
equals,
equals,
hashCode,
hashCode,
toString,
toString |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.Integer STATUS_READY
public static final java.lang.Integer STATUS_RUNNING
public static final java.lang.Integer STATUS_COMPLETE
public java.lang.String description
public java.lang.String space
public java.lang.String label
public java.lang.String[] args
public java.lang.Integer status
public java.util.Vector allocatedNodes
public java.util.Vector requestedNodes
public java.lang.Object result
public Program prog
public net.jini.space.JavaSpace js
public transient Communicator comm
public transient SubmissionFailedException sfe
public transient java.io.PrintStream out
public transient volatile boolean init
| Constructor Detail |
public Job()
public Job(Program prog,
java.lang.String space,
int desiredNodes,
java.lang.String description,
java.lang.String[] args)
prog - code object representing the programspace - name of the JavaSpace to be used for coordinationdesiredNodes - the number of nodes on which the computation should
be run, if possibledescription - a textual explanation of what the job is doingargs - command line arguments for the job| Method Detail |
public void submit()
throws SpaceNotFoundException,
SubmissionFailedException
public void submit(java.io.PrintStream out)
throws SpaceNotFoundException,
SubmissionFailedException
public java.lang.Object status()
throws java.rmi.RemoteException
public void suspend()
throws java.rmi.RemoteException
public void resume()
throws java.rmi.RemoteException
public void kill()
throws java.rmi.RemoteException
public void serviceIDNotify(net.jini.core.lookup.ServiceID id)
public void watch()
public void update()
|
Java Distributed Computational Framework v0.1 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||