|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.raytracer.network.JobProducer
public class JobProducer
A JobProducer object is used to produce and send jobs to a network node.
| Field Summary | |
|---|---|
static String |
helpText
|
| Constructor Summary | |
|---|---|
JobProducer(String[] args)
|
|
| Method Summary | |
|---|---|
String |
getHost()
|
void |
init(String sceneURI,
int w,
int h,
int ssw,
int ssh,
int jobSize,
long jobId,
double pw,
double ph,
double fl,
double clx,
double cly,
double clz,
double cdx,
double cdy,
double cdz,
double pri)
Constructs a new JobProducer object. |
static void |
main(String[] args)
Constructs a JobProducer object and uses it to produce and send jobs described by the command line arguments. |
void |
sendAllJobs()
Sends all jobs to the server. |
void |
sendJobs(int total)
Sends some jobs to the server. |
String |
sendTask()
|
void |
setServer(String host,
int port)
Sets the hostname and port of the server (network node) to send jobs to. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String helpText
| Constructor Detail |
|---|
public JobProducer(String[] args)
| Method Detail |
|---|
public static void main(String[] args)
args - See field JobProducer.helpText.
public void init(String sceneURI,
int w,
int h,
int ssw,
int ssh,
int jobSize,
long jobId,
double pw,
double ph,
double fl,
double clx,
double cly,
double clz,
double cdx,
double cdy,
double cdz,
double pri)
sceneURI - URI of XML scene file to render.w - Width of image.h - Height of image.ssw - Supersample width.ssh - Supersample height.jobSize - Number of pixels to render per job.jobId - Unique id to use for jobs.public String getHost()
public String sendTask()
public void sendJobs(int total)
throws IOException
total - Number of jobs to send.
IOException - If an IOException is thrown by NetworkClient.sendJob
public void sendAllJobs()
throws IOException
IOException - If an IOException is thrown by NetworkClient.sendJob
public void setServer(String host,
int port)
host - Hostname of server.port - Port of server.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||