nenok.alloc
Interface Allocator

All Known Implementing Classes:
Multiway, Random

public interface Allocator

This is the basic interface for the node processor allocation strategy.

Version:
$LastChangedRevision: 553 $
$LastChangedDate: 2008-03-26 14:18:45 +0100 (Mi, 26 Mrz 2008) $
Author:
Marc Pouly

Method Summary
 void allocate(Node node)
          Dynamic allocation procedure.
 String getName()
           
 

Method Detail

allocate

void allocate(Node node)
              throws RemoteException
Dynamic allocation procedure. Allocates a processor to the node given as argument. This method is called from the collect algorithm for each node strictly before any computations are executed onto this node. Note: Static allocation is not possible with this method. To do so, we recomment to implement a corresponding constructor and to provide an empty implementation of this method.

Parameters:
node - The current node to which a processor needs to be allocated.
Throws:
RemoteException - Communication exception caused by accessing processors.

getName

String getName()
Returns:
The name of this processor allocation model.