appl.parallel.server
Interface SPMDResource
- All Superinterfaces:
- ComputingResource, Remote
- All Known Implementing Classes:
- XuluServer
public interface SPMDResource
- extends ComputingResource
The resources participating in a SPMD computation need to implement this
interface.
- Author:
- Dominik Appl
runSPMDModelTask
Object[] runSPMDModelTask(String SPMDTaskName,
int referenceID,
Object... parameters)
throws RemoteException
- Executes the given Task.
- Parameters:
SPMDTaskName
- name of the taskclass to be executedreferenceID
- the ID of the Grid which should be the reference resourceparameters
- parameters for the given Task
- Returns:
- an object array containing the results for possibly multiple
executions (when using multithreading with multi-core cpus)
- Throws:
RemoteException
- if the connection fails- See Also:
SPMDClientController.setReferenceResource(Object)
createDataServer
PartitionDataServer createDataServer(String[] IPs)
throws RemoteException
- Parameters:
IPs
- the IP addresses of all other participating servers. They MUST
have the same index as their according partition in the
SplitMap
has.
- Returns:
- creates a new
PartitionDataServer
on this resource and
returns it
- Throws:
RemoteException