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

Method Summary
 PartitionDataServer createDataServer(String[] IPs)
           
 Object[] runSPMDModelTask(String SPMDTaskName, int referenceID, Object... parameters)
          Executes the given Task.
 
Methods inherited from interface appl.parallel.ComputingResource
connect, disconnect, getResourceInformation, isAvailable, ping
 

Method Detail

runSPMDModelTask

Object[] runSPMDModelTask(String SPMDTaskName,
                          int referenceID,
                          Object... parameters)
                          throws RemoteException
Executes the given Task.

Parameters:
SPMDTaskName - name of the taskclass to be executed
referenceID - the ID of the Grid which should be the reference resource
parameters - 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