client
Class Client2

java.lang.Object
  |
  +--client.Client2

public class Client2
extends java.lang.Object

Class Client2 is a simple illustration of a client that communicates with a remote server using RMI, where the server is running on a Windows machine.

The execution of the Client main method procedes as follows:

  1. Set up a Java security manager if there isn't one already running on the client machine.
  2. Establish communication with the server named "RemoteServer2", running on the remote host named "thyme2.csc.calpoly.edu".
  3. Call the following methods on the remote server
    1. receiveClientInput
    2. compute
    3. getServerOutput
  4. Print the resulting server output to stdout.
The actual computation is very simple -- a client data value of 20 is sent to the server, to which the server simply adds 2, resulting in an output of 22. See the RemoteServer2 class for a description of the server that this client uses.


Constructor Summary
Client2()
           
 
Method Summary
static void main(java.lang.String[] args)
          Establish communication with server and have it do some computation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Client2

public Client2()
Method Detail

main

public static void main(java.lang.String[] args)
Establish communication with server and have it do some computation.