|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappl.parallel.spmd.AbstractSPMDTask
public abstract class AbstractSPMDTask
This class may be used as the superclass to all SPMDTasks
which should be executed on servers using the SPMD-paradigm. Subclasses
should override the init()
and the run(Object...)
method,
but never the initialize()
method.
The Task provides access to the SPMDClientInterface
and the
AdvancedSPMDClientInterface
.
Notice that the init()
method is called exactly one time before
execution for every instance (in multithreading there are multiple parallel
instances of the same task, running on different parts of the resource).
Field Summary | |
---|---|
protected AdvancedSPMDServerInterface |
serverController
|
Constructor Summary | |
---|---|
AbstractSPMDTask()
|
Method Summary | |
---|---|
AdvancedSPMDServerInterface |
getAdvancedSPMDServerController()
Gives access the AdvancedSPMDServerInterface for advanced parallel
programming, including performance optimizations like preloading. |
SPMDServerInterface |
getSPMDServerController()
Gives access the SPMDServerInterface for parallel programming. |
void |
incomingUpdate(WritableGrid outgoingGrid,
Rectangle location)
Currently not used. |
abstract void |
init()
Use this method to implement if you want t |
void |
initialize()
Initializes the task. |
boolean |
isInitialized()
|
void |
outgoingUpdate(WritableGrid incomingGrid,
Rectangle location)
Currently not used. |
abstract Object |
run(Object... parameters)
Starts the task with the given parameters. |
void |
setSPMDServerController(AdvancedSPMDServerInterface controller)
Associates the given SPMDController with the task. |
boolean |
supportsMultiThreading()
returns false. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient AdvancedSPMDServerInterface serverController
Constructor Detail |
---|
public AbstractSPMDTask()
Method Detail |
---|
public void incomingUpdate(WritableGrid outgoingGrid, Rectangle location)
SPMDTask
incomingUpdate
in interface SPMDTask
public void outgoingUpdate(WritableGrid incomingGrid, Rectangle location)
SPMDTask
outgoingUpdate
in interface SPMDTask
public abstract Object run(Object... parameters)
SPMDTask
run
in interface SPMDTask
public SPMDServerInterface getSPMDServerController()
SPMDTask
SPMDServerInterface
for parallel programming.
getSPMDServerController
in interface SPMDTask
public AdvancedSPMDServerInterface getAdvancedSPMDServerController()
SPMDTask
AdvancedSPMDServerInterface
for advanced parallel
programming, including performance optimizations like preloading.
getAdvancedSPMDServerController
in interface SPMDTask
public void setSPMDServerController(AdvancedSPMDServerInterface controller)
SPMDTask
XuluServer
.
setSPMDServerController
in interface SPMDTask
public abstract void init()
public final void initialize()
SPMDTask
initialize
in interface SPMDTask
public boolean isInitialized()
isInitialized
in interface SPMDTask
SPMDTask.initialize()
must be
calledpublic boolean supportsMultiThreading()
supportsMultiThreading
in interface SPMDTask
SPMDTask.supportsMultiThreading()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |