computer
Class Computer
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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 |
Computer
public Computer(Computer2Server server)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
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)