appl.parallel.client
Interface DataServer

All Superinterfaces:
Remote
All Known Subinterfaces:
PartitionDataServer
All Known Implementing Classes:
ClientDataServer, PartitionDataManager

public interface DataServer
extends Remote

A DataServer shares resources over a network. For SplittableResources it allows also the retrieval of DataPartitions. The data is retrieved using a unique id identifying the resource.

Author:
Dominik Appl

Method Summary
 void addData(DataPartition partition)
          Adds a Partition to the server
 DataPartition getData(int id)
          Returns the whole Partition with the given ID
 DataPartition getPartition(int id, Rectangle bounds)
          gets the data with the id of a SplittableRessource
 void removeData(int id)
          Removes the partition with the specified id.
 void updatePartition(int id, DataPartition updateData, Rectangle bounds)
          sets the data with the id of a SplittableRessource
 

Method Detail

getPartition

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

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

Parameters:
id - the ID of a the base data
bounds - the location 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

getData

DataPartition getData(int id)
                      throws RemoteException
Returns the whole Partition with the given ID

Parameters:
id - the id of the partition
Returns:
the partition
Throws:
RemoteException - if the connection to the server fails

addData

void addData(DataPartition partition)
             throws RemoteException
Adds a Partition to the server

Parameters:
partition - the partition to add
Throws:
RemoteException

removeData

void removeData(int id)
                throws RemoteException
Removes the partition with the specified id.

Parameters:
id - id of the partition to remove
Throws:
RemoteException