|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
system.Space
public class Space
Manages the Computer 'cloud' and handles the passing of Task and Result objects between the client and computers.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Fields inherited from interface api.Computer2Space |
---|
SERVICE_NAME |
Fields inherited from interface api.Client2Space |
---|
SERVICE_NAME |
Fields inherited from interface api.FFChatSpace |
---|
SERVICE_NAME |
Constructor Summary | |
---|---|
Space()
Constructor. |
Method Summary | |
---|---|
FFServerHandle |
getFFServer()
get a fast flux chat server reference |
FFServerHandle |
getRouter()
|
static void |
main(java.lang.String[] args)
Start up Space and register RMI service. |
void |
put(Task task)
Called remotely by a client to add a Task. |
java.lang.Long |
register(Computer computer,
java.net.InetSocketAddress address)
Called remotely by a Computer to register itself. |
void |
removeProxy(ComputerProxy proxy)
|
void |
startRegistry()
Create the registry and setup the bindings for the Client2Space and Computer2Space services. |
Task |
takeTask()
Get a task from the task queue. |
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 |
---|
public Space() throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
public Task takeTask() throws java.lang.InterruptedException
java.lang.InterruptedException
public void startRegistry() throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.Long register(Computer computer, java.net.InetSocketAddress address) throws java.rmi.RemoteException
register
in interface Computer2Space
java.rmi.RemoteException
public void removeProxy(ComputerProxy proxy)
public void put(Task task) throws java.rmi.RemoteException
put
in interface Client2Space
java.rmi.RemoteException
public FFServerHandle getFFServer() throws java.rmi.RemoteException
FFChatSpace
getFFServer
in interface FFChatSpace
java.rmi.RemoteException
public FFServerHandle getRouter()
getRouter
in interface Computer2Space
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |