|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlbg.peer.workflow.JobDescriptor
public class JobDescriptor
Contains the description of all tasks to be in this Job Peer-side
| Field Summary | |
|---|---|
long |
submissionTime
|
| Constructor Summary | |
|---|---|
JobDescriptor()
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.String[] classnames,
byte[][] bytecodes)
Adds classes that will be required later. |
void |
add(java.lang.String[] ids,
GridData[][] datas)
Adds datas that will be required later. |
void |
add(TaskDescriptor taskdesc)
Adds a TaskDescriptor to to this JobDescriptor. |
void |
add(TaskDescriptor taskdesc,
java.lang.String[] classnames,
byte[][] bytecodes,
java.lang.String[] ids,
GridData[][] datas)
Convenience method to add everything needed for a TaskDescriptor at once |
void |
convert(GridDataManager manager)
Convert all stored datas. |
long |
getSubmissionTime()
|
void |
setSubmissionTime()
|
java.lang.String |
toString()
String representation of the class descriptor, showing numbers of tasks and classes |
Task[] |
toTasks(java.lang.String consumer_peer_id,
int job_id,
int bot_id)
Makes Tasks from the current description. Calls to this method are always run completely (i.e. |
Workflow |
workflow()
Gets Job workflow. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public long submissionTime
| Constructor Detail |
|---|
public JobDescriptor()
| Method Detail |
|---|
public void add(java.lang.String[] classnames,
byte[][] bytecodes)
throws GridException
classnames - Fully qualified (package.class) class namesbytecodes - Bytecodes for the corresponding classnames
GridException
public void add(java.lang.String[] ids,
GridData[][] datas)
throws GridException
ids - IDs of needed data'sdatas - Options for the matching data's
GridException
public void add(TaskDescriptor taskdesc)
throws GridException
taskdesc - The TaskDescriptor to add
GridException
public void add(TaskDescriptor taskdesc,
java.lang.String[] classnames,
byte[][] bytecodes,
java.lang.String[] ids,
GridData[][] datas)
throws GridException
taskdesc - The TaskDescriptor to addclassnames - Fully qualified (package.class) class namesbytecodes - Bytecodes for the corresponding classnamesids - IDs of needed data'sdatas - Options for the mathing data's
GridException
public void setSubmissionTime()
throws GridException
GridExceptionpublic long getSubmissionTime()
public Task[] toTasks(java.lang.String consumer_peer_id,
int job_id,
int bot_id)
throws GridException
consumer_peer_id - ID of the Task ownerjob_id - Job ID for the Tasksbot_id - BoT ID for the Tasks
GridException
public void convert(GridDataManager manager)
throws GridException
manager - The data manager
GridException - if some data cannot be sharedpublic Workflow workflow()
public java.lang.String toString()
toString in class java.lang.Object
|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.