appl.parallel.server
Interface PartitionDataServer

All Superinterfaces:
DataServer, Remote
All Known Implementing Classes:
PartitionDataManager

public interface PartitionDataServer
extends Remote, DataServer

Manages data and partitions on servers. The method descriptions for details.

Author:
Dominik Appl
See Also:
PartitionDataManager

Method Summary
 void addMultiDataInfos(HashMap<String,MultiDataInfo> toTransferMultiDataObjects)
          Adds MultiDataInfos to the server.
 void addPartitionInfos(Vector<SinglePartitionInfo> singlePartitionInfos)
          Adds PartitionInfos to the server.
 MultiDataInfo getMultiDataInfo(String name)
           
 MultiDataObject getMultiDataObject(String name)
           
 DataPartition getPartition(int id, Rectangle bounds)
          gets the data with the id of a SplittableRessource
 SinglePartitionInfo getPartitionInfo(int rootID)
           
 void unloadToSource(int rootID)
          Unloads the specified resource to the source it was loaded from
 void updateBaseParameter(HashMap<String,Object> newParameters)
          Adds or updates BaseParameters
 void updateFromNeighbors(int rootID)
          requests an update for the neighborhood region for the given resource
 void updatePartition(int id, DataPartition updateData, Rectangle bounds)
          sets the data with the id of a SplittableRessource
 
Methods inherited from interface appl.parallel.client.DataServer
addData, getData, removeData
 

Method Detail

getPartition

DataPartition getPartition(int id,
                           Rectangle bounds)
                           throws RemoteException
gets the data with the id of a SplittableRessource

Specified by:
getPartition in interface DataServer
Parameters:
id - the ID of a the base data
bounds - the bounds of the partition to retrieve (using global coordinates)
Returns:
the partition
Throws:
RemoteException

updatePartition

void updatePartition(int id,
                     DataPartition updateData,
                     Rectangle bounds)
                     throws RemoteException
sets the data with the id of a SplittableRessource

Specified by:
updatePartition in interface DataServer
Parameters:
id - the ID of a the base data
bounds - the locatition where the partition is to be updated (using global coordinates)
updateData - the updateData (which may only a partitial update, depending on the bounds set with the last parameter)
Throws:
RemoteException

unloadToSource

void unloadToSource(int rootID)
                    throws RemoteException
Unloads the specified resource to the source it was loaded from

Parameters:
rootID - the id of the resource
Throws:
RemoteException

updateFromNeighbors

void updateFromNeighbors(int rootID)
                         throws RemoteException
requests an update for the neighborhood region for the given resource

Parameters:
rootID -
Throws:
RemoteException

updateBaseParameter

void updateBaseParameter(HashMap<String,Object> newParameters)
                         throws RemoteException
Adds or updates BaseParameters

Throws:
RemoteException

addPartitionInfos

void addPartitionInfos(Vector<SinglePartitionInfo> singlePartitionInfos)
                       throws RemoteException
Adds PartitionInfos to the server. They are submitted in a vector to avoid multiple remote calls.

Parameters:
singlePartitionInfos -
Throws:
RemoteException

addMultiDataInfos

void addMultiDataInfos(HashMap<String,MultiDataInfo> toTransferMultiDataObjects)
                       throws RemoteException
Adds MultiDataInfos to the server.

Parameters:
toTransferMultiDataObjects -
Throws:
RemoteException

getMultiDataInfo

MultiDataInfo getMultiDataInfo(String name)
                               throws RemoteException
Parameters:
name - the name of the associated multi data
Returns:
the MultiDataInfo info
Throws:
RemoteException

getMultiDataObject

MultiDataObject getMultiDataObject(String name)
                                   throws RemoteException
Parameters:
name - the name of the multiDataObject
Returns:
the MultiDataObject associated with that name
Throws:
RemoteException

getPartitionInfo

SinglePartitionInfo getPartitionInfo(int rootID)
                                     throws RemoteException
Parameters:
rootID - the id of the according partition
Returns:
the the PartitionInfo
Throws:
RemoteException