appl.parallel.data
Interface PartitionDataHandler

All Superinterfaces:
Cloneable, DataLoader, DataLoadHandler, DataUnloader, Serializable
All Known Implementing Classes:
AbstractDataHandler, XuluClientLoader, XuluGridSharedFileSystemLoader

public interface PartitionDataHandler
extends DataLoadHandler, Cloneable

Responsible for loading and unloading data partitions

Author:
Dominik Appl

Method Summary
 PartitionDataHandler clone()
           
 DataPartition load()
          On invocation the data is loaded and returned
 PartitionDataHandler newInstance(int rootID, ClientDataServer spmdClient, Rectangle partitionBounds, Rectangle unloadBounds)
           
 void setBasePartition(DataPartition data)
           
 void setRootID(int rootID)
           
 void setSPMDClient(ClientDataServer localSPMDClient)
          sets a local spmd client which MAY be used by the handler for local access
 void setUnloadBounds(Rectangle bounds)
          sets the bounds of the data to be unloaded so that not all data is unloaded to the destination.
 
Methods inherited from interface appl.data.DataLoader
getLoadInfo
 
Methods inherited from interface appl.data.DataUnloader
getUnloadInfo, unload
 

Method Detail

setUnloadBounds

void setUnloadBounds(Rectangle bounds)
sets the bounds of the data to be unloaded so that not all data is unloaded to the destination. This is for example useful if there is a neighborhood region which should not be uploaded to the destination.

Parameters:
bounds -

setBasePartition

void setBasePartition(DataPartition data)

setRootID

void setRootID(int rootID)

newInstance

PartitionDataHandler newInstance(int rootID,
                                 ClientDataServer spmdClient,
                                 Rectangle partitionBounds,
                                 Rectangle unloadBounds)
Parameters:
rootID - the id of the data
partitionBounds - the bounds of the partition to be retrieved on server side
unloadBounds - the bounds of the partition which is to be uploaded to the client after calculation
Returns:
the new instance

load

DataPartition load()
                   throws LoadingException
Description copied from interface: DataLoader
On invocation the data is loaded and returned

Specified by:
load in interface DataLoader
Returns:
the newly loaded object
Throws:
LoadingException - if for some reason the data could not be loaded

clone

PartitionDataHandler clone()

setSPMDClient

void setSPMDClient(ClientDataServer localSPMDClient)
sets a local spmd client which MAY be used by the handler for local access

Parameters:
localSPMDClient -