server
Interface RemoteServerInterface

All Superinterfaces:
java.rmi.Remote

public interface RemoteServerInterface
extends java.rmi.Remote

ServerInterface defines the remote methods that class Server provides.


Method Summary
 void compute()
          Perform some computation using the client input.
 java.lang.Object getServerOutput()
          Return comutation results back to the client, when the client calls for it.
 void receiveClientInput(ClientDataInterface clientData)
          Receive some input from the client.
 

Method Detail

receiveClientInput

public void receiveClientInput(ClientDataInterface clientData)
                        throws java.rmi.RemoteException
Receive some input from the client. Store a local copy for computation use. Also, display the data in the server's display window.

compute

public void compute()
             throws java.rmi.RemoteException
Perform some computation using the client input. In this case, we simply add 1 to the numeric input value.

getServerOutput

public java.lang.Object getServerOutput()
                                 throws java.rmi.RemoteException
Return comutation results back to the client, when the client calls for it.