|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappl.parallel.spmd.SPMDServerController
public class SPMDServerController
This class controls all the parallelization action on the server side and is
the counterpart to SPMDClientController
. It is accessed by the model
developer by retrieving the SPMDServerInterface
from a
SPMDTask
.
Field Summary | |
---|---|
protected int |
mapPosition
the partition position (used for splitmaps) |
Constructor Summary | |
---|---|
SPMDServerController(PartitionDataManager dataManager,
int referenceResouceID)
Creates a new instance |
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. |
void |
setLocalCalculationBounds(Rectangle newBounds)
This method sets new calculation bounds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int mapPosition
Constructor Detail |
---|
public SPMDServerController(PartitionDataManager dataManager, int referenceResouceID)
dataManager
- the partition data server responsible for managing the data on the serverreferenceResouceID
- the id of the reference resourceMethod Detail |
---|
public void setLocalCalculationBounds(Rectangle newBounds)
newBounds
- the new calculation boundspublic Object getBaseParameter(String parameterName)
SPMDServerInterface
getBaseParameter
in interface SPMDServerInterface
parameterName
- the name of the parameter specified on client side
SPMDClientInterface.addBaseParameter(Object, String)
public Rectangle getLocalCalculationBounds(DataPartition partition)
SPMDServerInterface
getLocalCalculationBounds
in interface SPMDServerInterface
partition
- a partition for which the the bounds are requested
public Rectangle getLocalBounds(DataPartition partition)
SPMDServerInterface
getLocalBounds
in interface SPMDServerInterface
partition
- a partition for which the the bounds are requested
Rectangle
will be (0,0)public Rectangle getGlobalBounds(DataPartition partition)
SPMDServerInterface
getGlobalBounds
in interface SPMDServerInterface
partition
- partition for which the bounds are queried
public Rectangle getLocalCalculationBounds()
SPMDServerInterface
getLocalCalculationBounds
in interface SPMDServerInterface
SPMDClientController.addToSplitControl(Object, String)
,
SPMDClientController.setReferenceResource(Object)
public Rectangle getLocalBounds()
SPMDServerInterface
getLocalBounds
in interface SPMDServerInterface
Rectangle
will be (0,0)SPMDClientController.addToSplitControl(Object, String)
,
SPMDClientController.setReferenceResource(Object)
public DataPartition getPartition(String name)
SPMDServerInterface
DataPartition
available for this task. In contrast to
SPMDServerInterface.getLocalCalculationBounds()
the neighborhood is included!
getPartition
in interface SPMDServerInterface
name
- the name of the splittable
SPMDClientController.addToSplitControl(Object, String)
public DataPartition[] getMultiPartition(String name)
SPMDServerInterface
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
SPMDServerInterface.getMultiPartition(String, int)
to avoid loading all data.
getMultiPartition
in interface SPMDServerInterface
name
- the name of the splittable
SPMDClientController.addToMultiDataSplitControl(Object[], String)
,
SPMDServerInterface.getMultiPartition(String, int)
public MultiDataObject getMultiData(String name)
SPMDServerInterface
GridList
and
MultiGrid
types. See MultiDataObject
for more details.
getMultiData
in interface SPMDServerInterface
name
- the name associated with the object on client side
public DataPartition getMultiPartition(String name, int idx)
SPMDServerInterface
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.
getMultiPartition
in interface SPMDServerInterface
name
- the name of the splittable
SPMDClientController.addToMultiDataSplitControl(Object[], String)
,
SPMDServerInterface.getMultiPartition(String)
public int getLocalCalcMinX()
SPMDServerInterface
SPMDServerInterface.getLocalCalculationBounds()
returns
getLocalCalcMinX
in interface SPMDServerInterface
getLocalCalculationBounds()
,
getLocalCalcMinX()
,
getLocalCalcMaxX()
,
getLocalCalcMinY()
,
getLocalCalcMaxY()
public int getLocalCalcMinY()
SPMDServerInterface
SPMDServerInterface.getLocalCalculationBounds()
returns
getLocalCalcMinY
in interface SPMDServerInterface
getLocalCalculationBounds()
,
getLocalCalcMinX()
,
getLocalCalcMaxX()
,
getLocalCalcMinY()
,
getLocalCalcMaxY()
public int getLocalCalcMaxX()
SPMDServerInterface
SPMDServerInterface.getLocalCalculationBounds()
returns
getLocalCalcMaxX
in interface SPMDServerInterface
getLocalCalculationBounds()
,
getLocalCalcMinX()
,
getLocalCalcMaxX()
,
getLocalCalcMinY()
,
getLocalCalcMaxY()
public int getLocalCalcMaxY()
SPMDServerInterface
SPMDServerInterface.getLocalCalculationBounds()
returns
getLocalCalcMaxY
in interface SPMDServerInterface
getLocalCalculationBounds()
,
getLocalCalcMinX()
,
getLocalCalcMaxX()
,
getLocalCalcMinY()
,
getLocalCalcMaxY()
public void destroyPartition(String name)
SPMDServerInterface
System.gc()
afterwards
destroyPartition
in interface SPMDServerInterface
name
- the name of the partition to removepublic void destroyMultiPartition(String name, int idx)
SPMDServerInterface
System.gc()
afterwards
destroyMultiPartition
in interface SPMDServerInterface
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 |