|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SPMDServerInterface
Using this interface the programmer can access the parallel functionality on server side.
The programmer should subclass AbstractSPMDTask
and use its method AbstractSPMDTask.getSPMDServerController()
to
access the parallel control.
Method Summary | |
---|---|
void |
destroyMultiPartition(String name,
int idx)
Removes the partition from memory. |
void |
destroyPartition(String name)
Removes the partition from memory. |
Object |
getBaseParameter(String parameterName)
Returns the base parameter with the specified id. |
Rectangle |
getGlobalBounds(DataPartition partition)
Gives back the global bounds, which are the bounds of all partitions over all servers. |
Rectangle |
getLocalBounds()
Gives back the area which is available for local access (including Neighborhood) |
Rectangle |
getLocalBounds(DataPartition partition)
Gives back the area which is available for local access (including Neighborhood) |
int |
getLocalCalcMaxX()
Convenience method. |
int |
getLocalCalcMaxY()
Convenience method. |
int |
getLocalCalcMinX()
Convenience method. |
int |
getLocalCalcMinY()
Convenience method. |
Rectangle |
getLocalCalculationBounds()
Gives back the area which is actively used for read/write (in contrast to neighborhood area, which is often accessed will be accessed read only). |
Rectangle |
getLocalCalculationBounds(DataPartition partition)
Gives back the area which is actively used for read/write (in contrast to neighborhood area, which is often accessed will be accessed read only). |
MultiDataObject |
getMultiData(String name)
Gives back a MultiDataObject. |
DataPartition[] |
getMultiPartition(String name)
Gets the array of DataPartitions which were
submitted on client side via
SPMDClientController.addToMultiDataSplitControl(Object[], String)
All resources are retrieved from the data source and given back. |
DataPartition |
getMultiPartition(String name,
int idx)
Gets a DataPartition which was submitted on client side via
SPMDClientController.addToMultiDataSplitControl(Object[], String) . |
DataPartition |
getPartition(String name)
The whole DataPartition available for this task. |
Method Detail |
---|
Object getBaseParameter(String parameterName)
parameterName
- the name of the parameter specified on client side
SPMDClientInterface.addBaseParameter(Object, String)
Rectangle getLocalCalculationBounds(DataPartition partition)
partition
- a partition for which the the bounds are requested
Rectangle getLocalBounds(DataPartition partition)
partition
- a partition for which the the bounds are requested
Rectangle
will be (0,0)Rectangle getGlobalBounds(DataPartition partition)
partition
- partition for which the bounds are queried
Rectangle getLocalCalculationBounds()
SPMDClientController.addToSplitControl(Object, String)
,
SPMDClientController.setReferenceResource(Object)
Rectangle getLocalBounds()
Rectangle
will be (0,0)SPMDClientController.addToSplitControl(Object, String)
,
SPMDClientController.setReferenceResource(Object)
DataPartition getPartition(String name)
DataPartition
available for this task. In contrast to
getLocalCalculationBounds()
the neighborhood is included!
name
- the name of the splittable
SPMDClientController.addToSplitControl(Object, String)
DataPartition[] getMultiPartition(String name)
DataPartitions
which were
submitted on client side via
SPMDClientController.addToMultiDataSplitControl(Object[], String)
All resources are retrieved from the data source and given back. If you
only need a specific resource you can use
getMultiPartition(String, int)
to avoid loading all data.
name
- the name of the splittable
SPMDClientController.addToMultiDataSplitControl(Object[], String)
,
getMultiPartition(String, int)
MultiDataObject getMultiData(String name)
GridList
and
MultiGrid
types. See MultiDataObject
for more details.
name
- the name associated with the object on client side
DataPartition getMultiPartition(String name, int idx)
DataPartition
which was submitted on client side via
SPMDClientController.addToMultiDataSplitControl(Object[], String)
.
Only the grid with the index is returned. All other partitions are NOT
retrieved.
name
- the name of the splittableidx
-
SPMDClientController.addToMultiDataSplitControl(Object[], String)
,
getMultiPartition(String)
int getLocalCalcMinX()
getLocalCalculationBounds()
returns
SPMDServerController.getLocalCalculationBounds()
,
SPMDServerController.getLocalCalcMinX()
,
SPMDServerController.getLocalCalcMaxX()
,
SPMDServerController.getLocalCalcMinY()
,
SPMDServerController.getLocalCalcMaxY()
int getLocalCalcMinY()
getLocalCalculationBounds()
returns
SPMDServerController.getLocalCalculationBounds()
,
SPMDServerController.getLocalCalcMinX()
,
SPMDServerController.getLocalCalcMaxX()
,
SPMDServerController.getLocalCalcMinY()
,
SPMDServerController.getLocalCalcMaxY()
int getLocalCalcMaxX()
getLocalCalculationBounds()
returns
SPMDServerController.getLocalCalculationBounds()
,
SPMDServerController.getLocalCalcMinX()
,
SPMDServerController.getLocalCalcMaxX()
,
SPMDServerController.getLocalCalcMinY()
,
SPMDServerController.getLocalCalcMaxY()
int getLocalCalcMaxY()
getLocalCalculationBounds()
returns
SPMDServerController.getLocalCalculationBounds()
,
SPMDServerController.getLocalCalcMinX()
,
SPMDServerController.getLocalCalcMaxX()
,
SPMDServerController.getLocalCalcMinY()
,
SPMDServerController.getLocalCalcMaxY()
void destroyPartition(String name)
System.gc()
afterwards
name
- the name of the partition to removevoid destroyMultiPartition(String name, int idx)
System.gc()
afterwards
name
- the name of the multidataidx
- the index of the partition to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |