|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataServer
A DataServer
shares resources over a network. For
SplittableResource
s it allows also the retrieval of
DataPartition
s. The data is retrieved using a unique id identifying
the resource.
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 |
---|
DataPartition getPartition(int id, Rectangle bounds) throws RemoteException
id
- the ID
of a the base
databounds
- the bounds of the partition to retrieve (using global
coordinates)
RemoteException
void updatePartition(int id, DataPartition updateData, Rectangle bounds) throws RemoteException
id
- the ID
of a the base
databounds
- 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)
RemoteException
DataPartition getData(int id) throws RemoteException
id
- the id of the partition
RemoteException
- if the connection to the server failsvoid addData(DataPartition partition) throws RemoteException
partition
- the partition to add
RemoteException
void removeData(int id) throws RemoteException
id
- id of the partition to remove
RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |