api
Interface Server2Computer

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
Computer

public interface Server2Computer
extends java.rmi.Remote

Interface for the Server to communicate with the Computer


Method Summary
 void registerListener(RemoteListener remoteListener)
          registers a listener on a computer
 void resetQueue()
          Resets the adaptive queue on the computer.
 void stop()
          Stops the computers
 void updateShared(Shared shared)
          send a shared update to the computer
 

Method Detail

updateShared

void updateShared(Shared shared)
                  throws java.rmi.RemoteException
send a shared update to the computer

Parameters:
shared - the new shared object
Throws:
java.rmi.RemoteException - RMI Exception

registerListener

void registerListener(RemoteListener remoteListener)
                      throws java.rmi.RemoteException
registers a listener on a computer

Parameters:
remoteListener - the listener to register
Throws:
java.rmi.RemoteException - RMI Exception

stop

void stop()
          throws java.rmi.RemoteException
Stops the computers

Throws:
java.rmi.RemoteException - RMI Exception

resetQueue

void resetQueue()
                throws java.rmi.RemoteException
Resets the adaptive queue on the computer. Called when a task is completed and a result is generated.

Throws:
java.rmi.RemoteException - RMI Exception