|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.protocol.BundleWrapper
public class BundleWrapper
This class wraps a task bundle to express it in terms of DataLocation.
This allows the tasks data to be processed with the same semantics no matter where it is stored, comes from or goes to.
| Constructor Summary | |
|---|---|
BundleWrapper()
Default constructor. |
|
BundleWrapper(JPPFTaskBundle bundle)
Initialize this bundle wrapper with the specified task bundle. |
|
| Method Summary | |
|---|---|
void |
addTask(DataLocation task)
Add a task to this bundle wrapper. |
BundleWrapper |
copy()
Make a copy of this bundle wrapper. |
BundleWrapper |
copy(int nbTasks)
Make a copy of this bundle wrapper containing only the first nbTasks tasks it contains. |
JPPFTaskBundle |
getBundle()
Get the underlying task bundle. |
DataLocation |
getDataProvider()
Get the location of the data provider. |
List<DataLocation> |
getTasks()
Get the list of locations of the tasks. |
void |
merge(BundleWrapper other,
boolean after)
Merge this bundle wrapper with another. |
void |
setBundle(JPPFTaskBundle bundle)
Set the underlying task bundle. |
void |
setDataProvider(DataLocation dataProvider)
Get the location of the data provider. |
void |
setTasks(List<DataLocation> tasks)
Set the list of locations of the tasks. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BundleWrapper()
public BundleWrapper(JPPFTaskBundle bundle)
bundle - the underlying task bundle for this wrapper.| Method Detail |
|---|
public JPPFTaskBundle getBundle()
JPPFTaskBundle instance.public void setBundle(JPPFTaskBundle bundle)
bundle - a JPPFTaskBundle instance.public DataLocation getDataProvider()
JPPFTaskBundle instance.public void setDataProvider(DataLocation dataProvider)
dataProvider - a JPPFTaskBundle instance.public void addTask(DataLocation task)
task - the task to add.public List<DataLocation> getTasks()
DataLocation instances.public void setTasks(List<DataLocation> tasks)
tasks - a list of DataLocation instances.public BundleWrapper copy()
BundleWrapper instance.public BundleWrapper copy(int nbTasks)
nbTasks - the number of tasks to include in the copy.
BundleWrapper instance.
public void merge(BundleWrapper other,
boolean after)
other - the wrapper to merge with.after - determines whether the tasks from other should be added first or last.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||