computer
Class Computer

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by computer.Computer
All Implemented Interfaces:
Server2Computer, java.io.Serializable, java.rmi.Remote

public class Computer
extends java.rmi.server.UnicastRemoteObject
implements Server2Computer

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
Computer(Computer2Server server)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void registerListener(RemoteListener remoteListener)
          registers a listener on a computer
 void resetQueue()
          Resets the adaptive queue on the computer.
 void startThreads()
           
 void stop()
          Stops the computers
 void updateShared(Shared shared)
          send a shared update to the computer
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Computer

public Computer(Computer2Server server)
         throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

resetQueue

public void resetQueue()
                throws java.rmi.RemoteException
Description copied from interface: Server2Computer
Resets the adaptive queue on the computer. Called when a task is completed and a result is generated.

Specified by:
resetQueue in interface Server2Computer
Throws:
java.rmi.RemoteException - RMI Exception

stop

public void stop()
          throws java.rmi.RemoteException
Description copied from interface: Server2Computer
Stops the computers

Specified by:
stop in interface Server2Computer
Throws:
java.rmi.RemoteException - RMI Exception

startThreads

public void startThreads()

registerListener

public void registerListener(RemoteListener remoteListener)
                      throws java.rmi.RemoteException
Description copied from interface: Server2Computer
registers a listener on a computer

Specified by:
registerListener in interface Server2Computer
Parameters:
remoteListener - the listener to register
Throws:
java.rmi.RemoteException - RMI Exception

updateShared

public void updateShared(Shared shared)
                  throws java.rmi.RemoteException
Description copied from interface: Server2Computer
send a shared update to the computer

Specified by:
updateShared in interface Server2Computer
Parameters:
shared - the new shared object
Throws:
java.rmi.RemoteException - RMI Exception

main

public static void main(java.lang.String[] args)