|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
appl.parallel.client.ClientDataServer
public class ClientDataServer
This class is used for storing all data which is needed for parallelization
and may be requested remotely. On DataPartitions
the
request of partitions is supported. PartitionDataServer
s running on
XuluServer
s will typically use DataHandlers
for
retrieving the partitions.
PartitionDataServer
,
Serialized FormField Summary | |
---|---|
protected Logger |
LOG
|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
ClientDataServer(CommEventSink eventSink)
The standard Constructor (binds itself to the running registry) |
Method Summary | |
---|---|
void |
addData(DataPartition splittable)
DataPartitions can be added |
void |
close()
stops the client and removes it from the registry |
DataPartition |
getData(int baseID)
Returns the data identified by 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 partition,
Rectangle bounds)
sets the data with the id of a SplittableRessource |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Logger LOG
Constructor Detail |
---|
public ClientDataServer(CommEventSink eventSink) throws RemoteException
eventSink
- the sink is used for generating events
RemoteException
- if the connection failsMethod Detail |
---|
public DataPartition getData(int baseID) throws RemoteException
getData
in interface DataServer
baseID
- Id identifiying the data
RemoteException
- if the connection to the server failsSplittableResource.getRootID()
public void addData(DataPartition splittable)
addData
in interface DataServer
splittable
- the partition to addDataServer.addData(appl.parallel.spmd.split.DataPartition)
public void close()
public DataPartition getPartition(int id, Rectangle bounds) throws RemoteException
DataServer
getPartition
in interface DataServer
id
- the ID
of a the base
databounds
- the bounds of the partition to retrieve (using global
coordinates)
RemoteException
public void updatePartition(int id, DataPartition partition, Rectangle bounds) throws RemoteException
DataServer
updatePartition
in interface DataServer
id
- the ID
of a the base
datapartition
- the updateData (which may only a partitial update, depending
on the bounds set with the last parameter)bounds
- the location where the partition is to be updated (using
global coordinates)
RemoteException
public void removeData(int id)
DataServer
removeData
in interface DataServer
id
- id of the partition to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |