server
Interface ServerInterface

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

public interface ServerInterface
extends java.rmi.Remote

ServerInterface defines the remote methods that class Server provides. The point of defining this interface is so the actual implementation of the server class need not (and typically does not) exist on the client machine.


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

Method Detail

receiveClientInput

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.

Throws:
java.rmi.RemoteException

compute

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.

Throws:
java.rmi.RemoteException

getServerOutput

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

Throws:
java.rmi.RemoteException